.book-demo-section {
  background: #F2F2F2;
  padding: 60px 40px;
  min-height: calc(100vh - 200px);
}

.book-demo-container {
  max-width: 1200px;
  margin: 0 auto;
}

.book-demo-content {
  display: flex;
  align-items: flex-start;
}

.book-demo-text {
  flex: 1;
  padding-top: 20px;
}

.book-demo-text h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.3;
  color: #002644;
  margin-bottom: 20px;
}

.book-demo-text h1 .highlight {
  color: #30C5FF;
}

.book-demo-text .description {
  font-size: 14px;
  color: #707070;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.benefits h3 {
  font-size: 16px;
  font-weight: 600;
  color: #002644;
  margin-bottom: 16px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #002644;
  margin-bottom: 12px;
  line-height: 1.5;
}

.benefits-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.book-demo-form-wrapper {
  flex: 1;
  max-width: 520px;
  border-radius: var(--border-radius);
}

.book-demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group input,
.form-group select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #D9D9D9;
  border-radius: var(--border-radius);
  font-size: 14px;
  color: #002644;
  background: white;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input[readonly] {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.8333 3.33334H4.16667C3.24619 3.33334 2.5 4.07953 2.5 5.00001V16.6667C2.5 17.5872 3.24619 18.3333 4.16667 18.3333H15.8333C16.7538 18.3333 17.5 17.5872 17.5 16.6667V5.00001C17.5 4.07953 16.7538 3.33334 15.8333 3.33334Z' stroke='%2330C5FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.3333 1.66666V4.99999' stroke='%2330C5FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.66666 1.66666V4.99999' stroke='%2330C5FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2.5 8.33334H17.5' stroke='%2330C5FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 45px;
}

.form-group input[readonly]:hover {
  border-color: #30C5FF;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #30C5FF;
}

.form-group input::placeholder {
  color: #999999;
}

.form-group input[type="date"] {
  color: #002644;
  cursor: pointer;
  position: relative;
}

.form-group input[type="date"]::-webkit-datetime-edit-text,
.form-group input[type="date"]::-webkit-datetime-edit-month-field,
.form-group input[type="date"]::-webkit-datetime-edit-day-field,
.form-group input[type="date"]::-webkit-datetime-edit-year-field {
  color: transparent;
}

.form-group input[type="date"]:focus::-webkit-datetime-edit-text,
.form-group input[type="date"]:focus::-webkit-datetime-edit-month-field,
.form-group input[type="date"]:focus::-webkit-datetime-edit-day-field,
.form-group input[type="date"]:focus::-webkit-datetime-edit-year-field {
  color: #002644;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 8px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  opacity: 0;
}

.form-group input[type="date"]:valid::-webkit-datetime-edit-text,
.form-group input[type="date"]:valid::-webkit-datetime-edit-month-field,
.form-group input[type="date"]:valid::-webkit-datetime-edit-day-field,
.form-group input[type="date"]:valid::-webkit-datetime-edit-year-field {
  color: #002644;
}

.time-input-wrapper {
  position: relative;
}

.time-loading {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #30C5FF;
  font-size: 12px;
  pointer-events: none;
  font-style: italic;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #002644;
  margin-bottom: 12px;
}

.calendar-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.calendar-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.calendar-popup-content {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 100%;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid #E0E0E0;
}

.calendar-popup-header span {
  font-size: 18px;
  font-weight: 600;
  color: #002644;
}

.calendar-close {
  background: none;
  border: none;
  color: #707070;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-close:hover {
  background: #F0F0F0;
  color: #002644;
}

/* Custom Calendar Styles */
.calendar-container {
  padding: 16px;
  background: white;
  position: relative;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0F0F0;
}

.calendar-title {
  font-size: 16px;
  font-weight: 600;
  color: #002644;
}

.calendar-nav {
  background: none;
  border: none;
  color: #30C5FF;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav:hover {
  background-color: #F0F9FF;
}

.calendar-nav:active {
  background-color: #E0F2FE;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #707070;
  padding: 8px 4px;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  min-height: 240px;
}

.calendar-date {
  aspect-ratio: 1;
  border: none;
  background: #F8F8F8;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #002644;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.calendar-date.empty {
  background: transparent;
  cursor: default;
}

.calendar-date.disabled {
  background: #F8F8F8;
  color: #CCCCCC;
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-date.unavailable {
  background: #F8F8F8;
  color: #999999;
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-date.available {
  background: #E8F7FF;
  color: #002644;
  border: 2px solid transparent;
}

.calendar-date.available:hover {
  background: #30C5FF;
  color: white;
  transform: scale(1.05);
}

.calendar-date.available::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #30C5FF;
  border-radius: 50%;
}

.calendar-date.available:hover::after {
  background: white;
}

.calendar-date.selected {
  background: #30C5FF !important;
  color: white !important;
  border: 2px solid #002644;
  font-weight: 700;
}

.calendar-date.selected::after {
  background: white !important;
}

.calendar-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  z-index: 10;
}

.calendar-loading span {
  color: #30C5FF;
  font-size: 14px;
  font-style: italic;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23002644' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  color: #002644;
  padding: 12px;
}

.form-group select option.timezone-header {
  color: #30C5FF;
  font-weight: 600;
  background: #F8F8F8;
}

.form-group select option:disabled {
  color: #999999;
}

.btn-submit {
  height: 48px;
  background: #30C5FF;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 4px;
}

.btn-submit:hover {
  background: #28b0e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(48, 197, 255, 0.3);
}

@media (max-width: 1024px) {
  .book-demo-content {
    flex-direction: column;
    gap: 40px;
  }

  .book-demo-text h1 {
    font-size: 32px;
  }

  .book-demo-form-wrapper {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .book-demo-section {
    padding: 40px 20px;
  }

  .book-demo-text {
    padding-top: 0;
  }

  .book-demo-text h1 {
    font-size: 26px;
  }

  .book-demo-text .description {
    font-size: 13px;
  }

  .benefits h3 {
    font-size: 15px;
  }

  .benefits-list li {
    font-size: 13px;
  }

  .book-demo-form-wrapper {
    padding: 24px;
  }

  .form-group input,
  .form-group select {
    height: 44px;
    font-size: 13px;
  }

  .btn-submit {
    height: 44px;
    font-size: 15px;
  }

  .calendar-popup {
    padding: 10px;
    align-items: flex-end;
  }

  .calendar-popup-content {
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpMobile 0.3s ease-out;
  }

  @keyframes slideUpMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .calendar-popup-header {
    padding: 16px;
  }

  .calendar-popup-header span {
    font-size: 16px;
  }

  .calendar-container {
    padding: 12px;
  }

  .calendar-dates {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .book-demo-text h1 {
    font-size: 22px;
  }
}

.form-message {
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
