/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo a {
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007bff;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1560066984-138dadb4c035') center/cover;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Section Styles */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.alt-bg {
  background-color: #f8f9fa;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 30px;
  text-align: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 20px;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #333;
}

/* Chat Styles */
#chat-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

#chat-box {
  height: 400px;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

#input-container {
  display: flex;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #eee;
}

#user-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  margin-right: 10px;
}

#send-button {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 80%;
}

.user-message {
  background: #007bff;
  color: white;
  margin-left: auto;
}

.ai-message {
  background: #e9ecef;
  color: #333;
}

/* Footer Styles */
.site-footer-bottom {
  background: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social a {
  color: white;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    margin-top: 20px;
    flex-direction: column;
    gap: 15px;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Navigation Toggle for Mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}

/* --- Appointment Section Styles --- */
.appointment-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  /* Light background */
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.appointment-section h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2.5rem;
  color: #333;
}

.appointment-section p {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
  font-size: 1.1rem;
}

.appointment-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Two columns */
  gap: 20px;
  /* Space between grid items */
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
  /* Reduced margin as gap handles spacing */
}

.form-group.full-width {
  grid-column: 1 / -1;
  /* Span across both columns */
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  /* Include padding and border in element's total width/height */
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  /* Highlight focus */
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
  resize: vertical;
  /* Allow vertical resize */
}

.appointment-form button[type="submit"] {
  padding: 12px 25px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.1s ease;
  width: auto;
  /* Adjust width as needed */
  display: inline-block;
  /* Allows centering if needed */
}

.appointment-form button[type="submit"]:hover {
  background-color: #0056b3;
}

.appointment-form button[type="submit"]:active {
  transform: scale(0.98);
}

.appointment-form button[type="submit"]:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Status Message Styling */
.form-status {
  grid-column: 1 / -1;
  /* Span full width */
  margin-top: 15px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  display: none;
  /* Hidden by default */
}

.form-status.success {
  background-color: #d4edda;
  /* Light green */
  color: #155724;
  /* Dark green */
  border: 1px solid #c3e6cb;
  display: block;
}

.form-status.error {
  background-color: #f8d7da;
  /* Light red */
  color: #721c24;
  /* Dark red */
  border: 1px solid #f5c6cb;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .appointment-form {
    grid-template-columns: 1fr;
    /* Stack to single column */
    padding: 20px;
  }

  /* No need for .full-width override as everything is single column now */
}

/* Set minimum date for date input (via JS is better for dynamic current date) */
/* You can also add basic validation styles */
input:invalid {
  border-color: #dc3545;
  /* Red border for invalid native validation */
}

.contact-form-container {
  flex: 1.5;
  min-width: 320px;
  /* background-color: #fff; */
  /* You might remove this if Jotform has its own bg */
  padding: 20px;
  /* Adjust padding around the Jotform embed if needed */
  /* border-radius: var(--border-radius-md); */
  /* Maybe remove border/shadow if Jotform looks better without */
  /* box-shadow: var(--shadow-light); */
  /* border: 1px solid var(--border-color); */
  /* You might need to set a min-height or let Jotform control it */
  /* min-height: 500px; */
}

/* You might need to target the iframe if Jotform uses one */
.contact-form-container iframe {
  /* Example: Ensure iframe takes full width */
  /* width: 100%; */
  /* min-height: 500px; */
  /* Set a min-height for the iframe */
  /* border: none; */
  /* Remove iframe border */
}