* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f5;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 500px;
  margin: 0 auto;
}

.form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tabs-container {
  display: flex;
  background-color: #1e40af;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 8px;
}

.tab {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab.active {
  background-color: white;
  color: #1e40af;
}

.tab:not(.active) {
  background-color: transparent;
  color: white;
}

.location-selectors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#location-selectors-volta {
  display: none;
}

.dropdown-custom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.dropdown-custom:hover {
  border-color: #1e40af;
}

.dropdown-custom.active {
  border-color: #1e40af;
}

.dropdown-text {
  color: #6b7280;
  font-size: 14px;
  flex: 1;
}

.dropdown-text.selected {
  color: #374151;
  font-weight: 500;
}

.dropdown-arrow {
  color: #6b7280;
  font-size: 12px;
  transition: transform 0.2s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.dropdown-custom.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-custom.disabled {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
}

.dropdown-custom.disabled .dropdown-text {
  color: #9ca3af;
}

.dropdown-custom.disabled .dropdown-arrow {
  color: #9ca3af;
}

.dropdown-custom.disabled:hover {
  border-color: #e5e7eb;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: none;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

.dropdown-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
  color: #374151;
}

.dropdown-option:hover {
  background-color: #f3f4f6;
}

.dropdown-option:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-option:last-child {
  border-radius: 0 0 8px 8px;
}

.passenger-section {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.island-fee-notice {
  background-color: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 4px;
  animation: fadeIn 0.3s ease-in;
}

.island-fee-notice .notice-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.island-fee-notice .notice-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.2;
}

.island-fee-notice .notice-text {
  color: #92400e;
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}

.island-fee-notice .notice-text strong {
  color: #78350f;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.passenger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.passenger-item.disabled {
  opacity: 0.5;
  pointer-events: none;
  background-color: #f3f4f6;
}

.passenger-item.disabled .counter-btn {
  cursor: not-allowed;
  background-color: #e5e7eb;
  color: #9ca3af;
}

.passenger-item.disabled .passenger-label,
.passenger-item.disabled .passenger-price {
  color: #9ca3af;
}

.passenger-item.unavailable {
  opacity: 0.3;
  pointer-events: none;
  background-color: #f9fafb;
}

.passenger-item.unavailable .counter-btn {
  cursor: not-allowed;
  background-color: #e5e7eb;
  color: #d1d5db;
}

.passenger-item.unavailable .passenger-label,
.passenger-item.unavailable .passenger-price {
  color: #d1d5db;
}

.passenger-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.passenger-label {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.passenger-age-info {
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  margin-top: 2px;
}

.passenger-price {
  color: #1e40af;
  font-size: 12px;
  font-weight: 600;
}

.counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #6b7280;
  transition: all 0.2s ease;
}

.counter-btn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}

.counter-value {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 4px 8px;
}

.date-selectors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.date-input {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.date-input:hover {
  border-color: #1e40af;
}

.date-input.active {
  border-color: #1e40af;
}

.date-input.disabled {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
}

.date-input.disabled:hover {
  border-color: #e5e7eb;
}

.date-input.disabled .date-text {
  color: #9ca3af;
}

.date-input.disabled .calendar-icon {
  color: #9ca3af;
}

.date-text {
  color: #6b7280;
  font-size: 14px;
  pointer-events: none;
}

.date-text.has-value {
  color: #374151;
  font-weight: 500;
}

.calendar-icon {
  font-size: 16px;
  color: #6b7280;
  pointer-events: none;
}

#data-volta-container {
  display: none;
}

#data-volta-container.show {
  display: flex;
}

.custom-calendar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 20;
  display: none;
  margin-top: 4px;
  padding: 16px;
}

.custom-calendar.show {
  display: block;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 18px;
  color: #1e40af;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.calendar-nav:hover {
  background-color: #f3f4f6;
}

.calendar-month-year {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  padding: 8px 4px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 60px;
  justify-content: center;
}

.calendar-day:hover {
  background-color: #f3f4f6;
}

.calendar-day.disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.calendar-day.disabled:hover {
  background-color: transparent;
}

.calendar-day.selected {
  background-color: #1e40af;
  color: white;
}

.calendar-day.selected:hover {
  background-color: #1d4ed8;
}

.day-number {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.time-section {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 16px;
}

.time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.time-title {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.clock-icon {
  font-size: 16px;
  color: #6b7280;
}

.time-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-option {
  position: relative;
}

.time-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 16px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 40px;
  gap: 12px;
}

.time-label::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background-color: white;
  transition: all 0.2s ease;
}

.time-radio:checked + .time-label {
  border-color: #1e40af;
  background-color: #eff6ff;
}

.time-radio:checked + .time-label::before {
  border-color: #1e40af;
  background-color: #1e40af;
}

.time-radio:checked + .time-label::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
}

.time-section {
  display: none;
}

.time-section.show {
  display: block;
}

.time-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-text {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.availability {
  color: #1e40af;
  font-size: 12px;
}

.time-no-availability {
  padding: 20px;
  text-align: center;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-top: 16px;
}

.time-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-input-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-input-title {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.time-input {
  padding: 12px 16px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  color: #374151;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 200px;
  text-align: center;
  font-family: monospace;
  letter-spacing: 2px;
}

.time-input:focus {
  outline: none;
  border-color: #1e40af;
  background-color: #eff6ff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.time-input::placeholder {
  color: #9ca3af;
  letter-spacing: 0;
}

.time-no-availability p {
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.total {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
}

.continue-btn {
  background-color: #1e40af;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.continue-btn:hover {
  background-color: #1d4ed8;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-container {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-title {
  color: #1e40af;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-label {
  display: block;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  outline: none;
  border-color: #1e40af;
}

.modal-input::placeholder {
  color: #9ca3af;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-btn-cancel {
  background-color: #f3f4f6;
  color: #374151;
}

.modal-btn-cancel:hover {
  background-color: #e5e7eb;
}

.modal-btn-submit {
  background-color: #1e40af;
  color: white;
}

.modal-btn-submit:hover {
  background-color: #1d4ed8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 450px;
  }

  .form-card {
    padding: 20px;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .container {
    max-width: 100%;
  }

  .form-card {
    padding: 16px;
    gap: 16px;
  }

  .tabs-container {
    margin-bottom: 4px;
  }

  .tab {
    padding: 10px 12px;
    font-size: 14px;
  }

  .dropdown-custom,
  .date-input {
    padding: 14px;
  }

  .passenger-section,
  .time-section {
    padding: 14px;
  }

  .passenger-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .passenger-info {
    align-self: flex-start;
  }

  .counter {
    align-self: flex-end;
  }

  .time-options {
    gap: 10px;
  }

  .time-label {
    padding: 10px 14px;
    padding-left: 36px;
  }

  .time-label::before {
    left: 14px;
    transform: translate(-50%, -50%);
  }

  .time-radio:checked + .time-label::after {
    left: 18px;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .total {
    text-align: center;
    font-size: 16px;
  }

  .continue-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .form-card {
    padding: 12px;
    gap: 14px;
  }

  .tab {
    padding: 8px 10px;
    font-size: 13px;
  }

  .dropdown-custom,
  .date-input {
    padding: 12px;
  }

  .passenger-section,
  .time-section {
    padding: 12px;
  }

  .passenger-label {
    font-size: 13px;
  }

  .counter-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .counter-value {
    min-width: 28px;
    font-size: 13px;
    padding: 3px 6px;
  }

  .time-title {
    font-size: 13px;
  }

  .time-text {
    font-size: 13px;
  }

  .availability {
    font-size: 11px;
  }

  .custom-calendar {
    padding: 12px;
  }

  .calendar-day {
    min-height: 50px;
    padding: 6px 2px;
  }

  .day-number {
    font-size: 12px;
  }

  .calendar-nav {
    font-size: 16px;
    padding: 2px 6px;
  }

  .calendar-month-year {
    font-size: 14px;
  }
}
