/* Book Appointment - React Style Matching */
:root {
  --primary-color: #FF6B35;
  --primary-hover: #E55A28;
  --border-medium: #ced4da;
}

html {
  scroll-behavior: smooth;
}

.appointment-with-me {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 2rem 1rem 4rem 1rem;
  overflow-x: hidden;
}

.book-appointment-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
  margin-bottom: 3rem;
}

.book-appointment-header {
  text-align: center;
  margin-bottom: 2rem;
}

.book-appointment-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #212529;
}

.book-appointment-header p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.agent-profile-card {
  background: white;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.agent-profile-card img {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 4px solid var(--primary-color, #FF6B35);
}

.agent-profile-card h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #212529;
  font-size: 1.75rem;
}

.agent-profile-card p {
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.agent-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.agent-rating .stars {
  color: var(--primary-color, #FF6B35);
  font-size: 1.125rem;
}

.agent-rating .review-text {
  color: #6c757d;
  font-size: 1.125rem;
}

.agent-description {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.agent-description p {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.date-time-card {
  background: white;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  max-width: 800px;
  margin: 0 auto 3rem auto;
  padding: 2rem;
  overflow: visible;
}

.date-time-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
}

.date-time-card h5 i {
  color: var(--primary-color, #FF6B35);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.date-card {
  background: white;
  border: 2px solid #ced4da;
  border-radius: 8px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: visible;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.date-card:hover {
  border-color: var(--primary-color, #FF6B35);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.date-card.selected {
  background: var(--primary-color, #FF6B35);
  border-color: var(--primary-color, #FF6B35);
  color: white;
}

.date-day {
  font-size: 1.875rem;
  font-weight: bold;
  line-height: 1.2;
}

.date-month {
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 0.5rem;
  opacity: 0.9;
  font-weight: 500;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.time-slot {
  background: white;
  border: 2px solid #ced4da;
  border-radius: 8px;
  padding: 0.875rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 1.375rem;
}

.time-slot:hover {
  border-color: var(--primary-color, #FF6B35);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.time-slot.selected {
  background: var(--primary-color, #FF6B35);
  border-color: var(--primary-color, #FF6B35);
  color: white;
}

.appointment-summary {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
}

.appointment-summary h6 {
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.appointment-summary .h5 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.appointment-summary .h5 span {
  color: var(--primary-color, #FF6B35);
}

.confirm-appointment-btn {
  font-size: 1.5rem !important;
  padding: 1rem 3rem;
  background-color: var(--primary-color, #FF6B35);
  border-color: var(--primary-color, #FF6B35);
  color: white;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.confirm-appointment-btn:hover {
  background-color: var(--primary-hover, #E55A28);
  border-color: var(--primary-hover, #E55A28);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.confirm-appointment-btn {
  font-size: 1.5rem !important;
}

@media (max-width: 767px) {
  .date-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.75rem;
  }
  
  .date-card {
    padding: 0.875rem 0.5rem;
    min-height: 75px;
  }
  
  .date-day {
    font-size: 1.5rem;
  }
  
  .date-month {
    font-size: 0.75rem;
    margin-top: 0.375rem;
  }
  
  .time-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .time-slot {
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
  }
  
  .date-month {
    font-size: 0.9375rem;
  }
  
  .date-time-card {
    padding: 1.5rem;
    overflow: visible;
  }
  
  .book-appointment-container {
    padding: 0 0.75rem 3rem 0.75rem;
    margin-bottom: 3rem;
  }

  .appointment-with-me {
    padding-bottom: 4rem;
  }
  
  .date-time-card {
    margin-bottom: 3rem;
  }
  
  #confirmation-container {
    margin-bottom: 3rem;
  }
  
  #contact-form-container {
    margin-bottom: 3rem;
  }
  
  .confirmation-icon {
    width: 80px;
    height: 80px;
  }
  
  .confirmation-icon i {
    font-size: 3rem;
  }
  
  .confirmation-title {
    font-size: 2rem;
  }
  
  .confirmation-message {
    font-size: 1.25rem;
  }
  
  .appointment-details-box {
    padding: 1.5rem;
  }
  
  .detail-item {
    font-size: 1.25rem;
  }
  
  .email-confirmation-note {
    font-size: 1.125rem;
  }
  
  .back-to-home-btn {
    font-size: 1.25rem;
  }
  
  .dropdown-item {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
  }
  
  .confirmation-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .custom-calendar-dropdown {
    width: 100%;
    max-width: 300px;
  }
  
  .calendar-dropdown-btn {
    width: 100%;
  }
  
  .calendar-dropdown-menu {
    width: 100%;
  }
  
  .back-to-home-btn {
    width: auto;
    max-width: 100%;
  }
  
  .calendar-dropdown-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .calendar-dropdown-menu {
    width: 100%;
    max-width: 300px;
  }
}

/* Inline Confirmation Section */
#confirmation-container {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.confirmation-content {
  text-align: center;
  padding: 2rem 0;
}

.confirmation-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color, #FF6B35);
  border-radius: 50%;
}

.confirmation-icon i {
  font-size: 4rem;
  color: white;
}

.confirmation-title {
  color: var(--primary-color, #FF6B35);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.confirmation-message {
  color: #6c757d;
  font-size: 1.375rem;
  margin-bottom: 2rem;
}

.confirmation-message strong {
  color: #212529;
  font-weight: 600;
}

.appointment-details-box {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 450px;
  text-align: left;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.375rem;
  color: #212529;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item i {
  color: var(--primary-color, #FF6B35);
  font-size: 1.5rem;
  width: 28px;
  text-align: center;
}

.email-confirmation-note {
  color: #6c757d;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.email-confirmation-note strong {
  color: #212529;
  font-weight: 600;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Custom Calendar Dropdown */
.custom-calendar-dropdown {
  position: relative;
  display: inline-block;
}

.calendar-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background-color: var(--primary-color, #FF6B35);
  border: none;
  border-radius: 0.375rem;
  color: white;
  font-size: 1.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto;
}

.calendar-dropdown-btn:hover {
  background-color: var(--primary-hover, #E55A28);
}

.calendar-dropdown-btn i.fa-calendar-plus-o {
  font-size: 1.75rem;
}

.calendar-dropdown-btn i.fa-chevron-down {
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

.calendar-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 2px;
  z-index: 1000;
  overflow: hidden;
}

.calendar-dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: #212529;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  background-color: white;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item i.fa-check {
  color: #6c757d;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropdown-item:hover i.fa-check {
  opacity: 1;
}

.dropdown-divider {
  height: 1px;
  background-color: #e9ecef;
  margin: 0.5rem 0;
}

.back-to-home-btn {
  font-size: 1.375rem;
  padding: 1rem 2.5rem;
  background-color: white;
  border: 2px solid var(--primary-color, #FF6B35);
  color: var(--primary-color, #FF6B35);
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: auto;
  max-width: none;
  display: inline-block;
}

.back-to-home-btn:hover {
  background-color: #f8f9fa;
  border-color: var(--primary-hover, #E55A28);
  color: var(--primary-hover, #E55A28);
}

/* Timezone selector - Modern compact design */
.time-header-with-timezone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timezone-selector-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.timezone-selector-compact:hover {
  border-color: var(--primary-color, #FF6B35);
  background-color: white;
}

.timezone-selector-compact i.fa-globe {
  color: var(--primary-color, #FF6B35);
  font-size: 1.125rem;
}

.timezone-dropdown-modern {
  font-size: 1rem !important;
  padding: 0.5rem 0.75rem !important;
  border: none !important;
  background-color: transparent !important;
  color: #212529 !important;
  font-weight: 500 !important;
  cursor: pointer;
  min-width: 200px;
}

.timezone-dropdown-modern:focus {
  outline: none !important;
  box-shadow: none !important;
}

.timezone-dropdown-modern.invalid {
  border-color: #f06548 !important;
}

/* Style the container when select is invalid */
.timezone-selector-compact:has(.timezone-dropdown-modern.invalid) {
  border-color: #f06548 !important;
  background-color: #fff5f5 !important;
}

/* Fallback for browsers that don't support :has() */
.timezone-selector-compact.invalid {
  border-color: #f06548 !important;
  background-color: #fff5f5 !important;
}

/* Standalone timezone selector */
.timezone-selector-standalone-wrapper {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  border: 2px dashed #dee2e6;
  transition: all 0.2s ease;
}

.timezone-selector-standalone-wrapper:hover {
  border-color: var(--primary-color, #FF6B35);
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timezone-selector-standalone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.timezone-selector-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #212529;
  font-weight: 600;
  font-size: 1.125rem;
}

.timezone-selector-label i.fa-globe {
  color: var(--primary-color, #FF6B35);
  font-size: 1.25rem;
}

.timezone-selector-standalone-wrapper .timezone-selector-compact {
  background-color: white;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 350px;
  justify-content: center;
}

.timezone-selector-standalone-wrapper .timezone-dropdown-modern {
  font-size: 1.125rem !important;
  min-width: 250px;
  width: 100%;
}

/* Mobile responsive for timezone selector */
@media (max-width: 767px) {
  .time-header-with-timezone {
    flex-direction: column;
    align-items: stretch;
  }

  .timezone-selector-compact {
    width: 100%;
    justify-content: center;
  }

  .timezone-dropdown-modern {
    flex: 1;
    min-width: auto;
  }

  .timezone-selector-standalone-wrapper .timezone-dropdown-modern {
    min-width: auto;
    width: 100%;
  }

  .timezone-selector-label {
    font-size: 1rem;
  }
}

/* Contact form styling */
#contact-form-container {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

#contact-form-container .form-control {
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

#contact-form-container label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
  font-size: 1.375rem;
}

#contact-form-container .form-control:focus {
  border-color: var(--primary-color, #FF6B35);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.back-to-calender {
  width: 30px;
  height: 30px;
  cursor: pointer;
  margin-bottom: 1rem;
}
