/* CSS Variables for consistent theming */
:root {
  /* Main Brand Colors (inspired by a fresh, clean dental clinic feel) */
  --primary-cavodental: #38b6ff; /* A bright, clean blue (your Canva color) */
  --secondary-cavodental: #0099e6; /* A slightly deeper, more vibrant blue for hover/secondary elements */
  --tertiary-cavodental: #e3f2fd; /* A very light blue for subtle backgrounds or alerts */

  /* Neutral Colors for Text and Backgrounds */
  --dark-text: #343a40; /* Dark, readable text */
  --medium-gray-text: #6c757d; /* Lighter gray for secondary text */
  --light-bg: #f8f9fa; /* Very light gray for section backgrounds */
  --white-color: #ffffff; /* Pure white for main backgrounds */
  --border-light: #e0e0e0; /* Light border color */

  /* Accent Color (for call-to-action like Shopee button) */
  --accent-color: #ff8c00; /* Bright orange */
  --accent-color-hover: #e67e00; /* Slightly darker orange for hover */

  /* Status Colors */
  --success-green: #28a745; /* For successful messages, if any */
  --error-red: #dc3545; /* For errors or booked slots */
  --light-error-bg: #f8d7da; /* Light background for error/booked alerts */

  /* Specific Booking Form Variables */
  --booking-bg-color: var(--white-color);
  --booking-shadow: 0 15px 45px rgba(0, 0, 0, 0.1); /* Slightly softer shadow */
  --input-border-color: var(--border-light);
  --input-focus-shadow: 0 0 0 0.25rem rgba(56, 182, 255, 0.25); /* Focus shadow based on primary-cavodental */
  
  --alert-info-bg: var(--tertiary-cavodental); /* Using the very light blue */
  --alert-info-color: var(--primary-cavodental); /* Using the primary blue for info text */
}

/* General Body and HTML Styling */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-text); /* Use dark-text */
  background-color: var(--light-bg); /* Use light-bg */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark-text); /* Use dark-text */
}

a {
  text-decoration: none;
  color: var(--primary-cavodental);
}

a:hover {
  color: var(--secondary-cavodental);
}

/* Navbar Styling */
.navbar {
  background-color: var(--primary-cavodental); /* Main blue */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1030;
}
.navbar-brand,
.nav-link {
  color: var(--white-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}
.navbar-brand span {
  color: var(--white-color);
}
.nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid var(--white-color);
  padding-bottom: 3px;
  margin-right: 20px; /* Adjust spacing as needed */
}
.nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section Styling */
.hero-section {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    url("images/dokter.jpg"); /* Ensure this path is correct */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white-color);
  padding: 100px 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: calc(100px + 70px); /* Adjust based on navbar height if needed */
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 15px;
}
.hero-content h1 {
  font-size: 3.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--white-color);
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.6;
}
.hero-section .btn-primary {
  background-color: var(--primary-cavodental);
  border-color: var(--primary-cavodental);
  padding: 15px 40px;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.hero-section .btn-primary:hover {
  background-color: var(--secondary-cavodental);
  border-color: var(--secondary-cavodental);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Booking Section Styling */
#booking-section {
  padding: 80px 0;
  background-color: var(--light-bg); /* Use light-bg */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px - 100px); /* Adjust based on footer/navbar */
}
.booking-container {
  background-color: var(--booking-bg-color);
  border-radius: 15px;
  box-shadow: var(--booking-shadow);
  overflow: hidden;
  max-width: 1100px;
  width: 100%;
  display: flex;
  min-height: 750px;
}
.form-column {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--booking-bg-color);
}
.form-column h3 {
  font-weight: 700;
  color: var(--primary-cavodental); /* Main blue */
  margin-bottom: 10px;
  text-align: center;
  font-size: 2.4rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-text); /* Use dark-text */
  font-size: 0.95rem;
}
.form-control,
.form-select {
  border-radius: 10px;
  padding: 12px 18px;
  border: 1px solid var(--input-border-color);
  transition: all 0.3s ease;
  font-size: 1rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-cavodental); /* Main blue */
  box-shadow: var(--input-focus-shadow);
  outline: none;
}
textarea.form-control {
  resize: vertical;
}
.image-column {
  flex: 1;
  background-image: url("images/images.jpeg"); /* Ensure this path is correct */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 350px;
}
.image-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(56, 182, 255, 0.2) 0%, /* Primary blue with opacity */
    rgba(56, 182, 255, 0.05) 100%
  );
}

/* Slot Selection Styling */
.slot-radio {
  display: none;
}
.slot-label {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid var(--primary-cavodental); /* Main blue */
  color: var(--primary-cavodental); /* Main blue */
  margin: 6px;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  font-weight: 500;
  background-color: var(--white-color);
  font-size: 0.95rem;
}
.slot-label:hover {
  background: var(--tertiary-cavodental); /* Light blue background on hover */
  color: var(--primary-cavodental); /* Main blue on hover */
}
.slot-radio:checked + .slot-label {
  background: var(--primary-cavodental); /* Main blue when checked */
  color: var(--white-color);
  box-shadow: 0 4px 12px rgba(56, 182, 255, 0.3); /* Shadow based on primary blue */
  border-color: var(--primary-cavodental);
}
.slot-disabled {
  background: var(--border-light) !important; /* Lighter background for disabled */
  color: var(--medium-gray-text) !important; /* Medium gray text */
  border-color: var(--border-light) !important;
  cursor: not-allowed;
  opacity: 0.7; /* Slightly less opaque for better readability of disabled */
  text-decoration: none !important; /* Ensure no strikethrough for disabled */
}
.slot-booked {
  background-color: var(--light-error-bg) !important; /* Light red background */
  color: var(--error-red) !important; /* Darker red text */
  border-color: var(--error-red) !important;
  cursor: not-allowed;
  opacity: 0.8;
  text-decoration: line-through; /* Strikethrough for booked */
}
.slot-booked:hover {
  background-color: var(--light-error-bg) !important;
  color: var(--error-red) !important;
}

.alert-info {
  background-color: var(--tertiary-cavodental); /* Light blue background */
  border-color: rgba(56, 182, 255, 0.3); /* Primary blue with opacity for border */
  color: var(--primary-cavodental); /* Primary blue for info text */
  border-radius: 10px;
  padding: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 15px;
}

/* Standardized Button Height */
.btn-fixed-height {
  padding: 14px 25px; /* Ini mengontrol tinggi tombol melalui padding vertikal */
  font-size: 1.1rem; /* Ini mengontrol ukuran teks tombol */
  border-radius: 10px;
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    transform 0.2s ease;
}
.btn-primary {
  background-color: var(--primary-cavodental);
  border-color: var(--primary-cavodental);
  padding: 14px 25px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    transform 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--secondary-cavodental);
  border-color: var(--secondary-cavodental);
  transform: translateY(-2px);
}i

.btn-dark {
  background-color: var(--dark-text); /* Use dark-text for dark button */
  border-color: var(--dark-text);
  padding: 14px 25px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    transform 0.2s ease;
}
.btn-dark:hover {
  background-color: #23272b; /* Slightly darker hardcoded value for hover */
  border-color: #1d2124; /* Slightly darker hardcoded value for hover */
  transform: translateY(-2px);
}

/* Modal Specific Styling */
.modal-content {
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.modal-header {
  border-bottom: 1px solid var(--border-light); /* Use light border */
  padding: 20px 25px;
  background-color: var(--tertiary-cavodental); /* Light blue background */
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.modal-title {
  font-weight: 600;
  color: var(--primary-cavodental); /* Main blue */
  font-size: 1.5rem;
}
.modal-body {
  padding: 30px 25px;
}
.modal-footer {
  border-top: 1px solid var(--border-light); /* Use light border */
  padding: 20px 25px;
}

/* Section Title Styling */
.section-title {
  color: var(--dark-text); /* Use dark-text */
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-cavodental); /* Main blue */
  border-radius: 2px;
}

/* Responsive Map Iframe */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  height: 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: none;
}

/* Shopee Button Styling */
.btn-shopee {
  background-color: var(--accent-color); /* Orange accent */
  color: var(--white-color);
  border: 1px solid var(--accent-color);
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}
.btn-shopee:hover {
  background-color: var(--accent-color-hover); /* Darker orange on hover */
  color: var(--white-color);
  border-color: var(--accent-color-hover);
}

/* Store Image Styling */
.store-info img {
  max-height: 100px;
  object-fit: cover;
  border: 1px solid var(--border-light); /* Use light border */
  border-radius: 8px; /* Added slight border radius for consistency */
}

.store-info p.lead {
  color: var(--dark-text); /* Use dark-text */
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Footer Styling */
.footer {
  background-color: var(--dark-text); /* Use dark-text for footer background */
  color: var(--light-bg); /* Use light-bg for footer text */
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
.footer a {
  color: var(--white-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer a:hover {
  color: var(--primary-cavodental); /* Main blue on hover */
}
.footer .social-icons a {
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.2s ease;
}
.footer .social-icons a:hover {
  color: var(--primary-cavodental); /* Main blue on hover */
}
.footer p {
  margin-bottom: 5px;
}
.footer .contact-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer .contact-info p i {
  margin-right: 8px;
  color: var(--primary-cavodental); /* Main blue for icons */
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-section {
    padding: 80px 0;
    min-height: 60vh;
    padding-top: calc(80px + 70px);
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-section .btn-primary {
    padding: 12px 30px;
    font-size: 1.1rem;
  }
  .booking-container {
    flex-direction: column;
    max-width: 600px;
    min-height: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  .form-column {
    padding: 30px 25px;
    order: 2;
  }
  .image-column {
    min-height: 280px;
    border-radius: 15px 15px 0 0;
    order: 1;
  }
  .form-column h3 {
    font-size: 2rem;
    margin-bottom: 25px;
  }
  .form-label {
    font-size: 0.9rem;
  }
  .form-control,
  .form-select,
  .btn-primary,
  .btn-dark {
    font-size: 1rem;
    padding: 10px 15px;
  }
  .slot-label {
    font-size: 0.85rem;
    padding: 8px 15px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
    min-height: 50vh;
    text-align: center;
    padding-top: calc(60px + 70px);
  }
  .hero-content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 40px 0;
    min-height: 40vh;
    padding-top: calc(40px + 70px);
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .booking-container {
    border-radius: 0;
    box-shadow: none;
  }
  .image-column {
    border-radius: 0;
  }
  .form-column {
    padding: 25px 20px;
  }
  .form-column h3 {
    font-size: 1.8rem;
  }
}