/* =========================================================
   GS Fast Track Form (JA) - Stylesheet  
   File: assets/gs-fasttrack-form-ja.css
   Version: 1.2.2 - Updated responsive layout
   ========================================================= */

.gs-ft-wrap {
  max-width: 760px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.gs-ft-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

/* Price info box (static: from $xx/pax) */
.gs-ft-price-box {
  border: 1px solid #e5e7eb;
  background: #eff2f4;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.gs-ft-price-box__title {
  font-weight: 700;
  margin-bottom: 6px;
}

.gs-ft-price-box__row {
  margin: 3px 0;
}

.gs-ft-price-box__note {
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
}

/* Notice */
.gs-ft-notice {
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  font-size: 14px;
}

.gs-ft-notice-success {
  border: 2px solid #22c55e;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #14532d;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
  position: relative;
}

.gs-ft-notice-success::before {
  content: "✓";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  margin-right: 8px;
  font-weight: bold;
}

.gs-ft-notice-error {
  border: 1px solid #d31d29;
  background: #fbe8e9;
}

/* Form */
.gs-ft-form {
  margin-top: 12px;
}

.gs-ft-section-title {
  margin: 16px 0 10px;
  font-size: 18px;
}

.gs-ft-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  align-items: start !important;
}

.gs-ft-grid--single {
  grid-template-columns: 1fr !important;
}

/* Responsive */
@media (max-width: 768px) {
  .gs-ft-wrap {
    padding: 15px;
  }
  
  .gs-ft-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .gs-ft-title {
    font-size: 20px;
    text-align: center;
  }
  
  .gs-ft-btn {
    min-width: 100%;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .gs-ft-wrap {
    padding: 10px;
  }
  
  .gs-ft-title {
    font-size: 18px;
  }
  
  .gs-ft-section-title {
    font-size: 16px;
    text-align: center;
  }
}

.gs-ft-field {
  display: block;
}

.gs-ft-field--full {
  margin-top: 12px;
}

.gs-ft-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.gs-ft-sub-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.gs-ft-flight-group {
  margin-bottom: 8px;
}

.gs-ft-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.gs-ft-input:focus {
  border-color: #d31d29;
}

/* Date display input styling */
.gs-ft-datepicker {

  cursor: pointer;
  background-color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.gs-ft-datepicker:focus {
  cursor: text;
}



/* jQuery UI Datepicker customization */
.gs-ft-datepicker-popup.ui-datepicker {
  font-size: 13px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid #ddd;
  padding: 0;
  width: 280px;
}

.gs-ft-datepicker-popup .ui-datepicker-header {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: none;
  border-radius: 12px 12px 0 0;
  color: white;
  padding: 14px 10px;
}

.gs-ft-datepicker-popup .ui-datepicker-title {
  color: white;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}

.gs-ft-datepicker-popup .ui-datepicker-title select {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
 
  font-weight: 600;

  font-size: 13px;
}

.gs-ft-datepicker-popup .ui-datepicker-prev,
.gs-ft-datepicker-popup .ui-datepicker-next {
  cursor: pointer;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  width: 30px;
  height: 30px;
}

.gs-ft-datepicker-popup .ui-datepicker-prev:hover,
.gs-ft-datepicker-popup .ui-datepicker-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gs-ft-datepicker-popup .ui-datepicker-calendar {
  margin: 10px;
  width: calc(100% - 20px);
}

.gs-ft-datepicker-popup .ui-datepicker-calendar thead th {
  padding: 8px 4px;
  font-weight: 700;
  color: #4b5563;
  font-size: 13px;
  text-align: center;
}

.gs-ft-datepicker-popup .ui-datepicker-calendar td {
  padding: 2px;
  text-align: center;
}

.gs-ft-datepicker-popup .ui-datepicker-calendar td a {
  display: block;
  text-align: center;

  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 13px;
  line-height: 1.2;
  min-width: 28px;
}

.gs-ft-datepicker-popup .ui-state-default {
  background: #f9fafb;
  color: #374151;
}

.gs-ft-datepicker-popup .ui-state-highlight {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}

.gs-ft-datepicker-popup .ui-state-active {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.gs-ft-datepicker-popup .ui-state-hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.gs-ft-datepicker-popup .ui-state-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gs-ft-datepicker-popup .ui-datepicker-buttonpane {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 12px;
  text-align: center;
  border-radius: 0 0 12px 12px;
}

.gs-ft-datepicker-popup .ui-datepicker-buttonpane button {
  background: #dc2626;
  color: white;
  border: none;

  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;

  font-size: 14px;
}

.gs-ft-datepicker-popup .ui-datepicker-buttonpane button:hover {
  background: #b91c1c;
}

/* Add-ons checklist */
.gs-ft-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.gs-ft-check {
  font-size: 14px;
}

.gs-ft-help {
  margin-top: 8px;
  font-size: 13px;
  color: #595757;
}

/* Realtime estimate box */
.gs-ft-estimate-box {
  border: 1px solid #8ABB2A;
  background: #e8f5d8;
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(138, 187, 42, 0.1);
}

.gs-ft-estimate-box__label {
  font-weight: 700;
  margin-bottom: 6px;
}

.gs-ft-estimate-box__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.gs-ft-estimate-box__note {
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
}

/* Submit area */
.gs-ft-submit-row {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gs-ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #d31d29;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  min-width: 200px;
  transition: all 0.3s ease;
}

.gs-ft-btn:hover {
  background: #b91620;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 29, 41, 0.3);
}

.gs-ft-btn:disabled {
  background: #9ca3af;
  color: #ffffff;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.gs-ft-btn:disabled:hover {
  background: #9ca3af;
  transform: none;
  box-shadow: none;
}

.gs-ft-privacy {
  font-size: 13px;
  color: #595757;
}

/* Loading overlay */
.gs-ft-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 10px;
}

.gs-ft-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d31d29;
  border-radius: 50%;
  animation: gs-ft-spin 1s linear infinite;
}

@keyframes gs-ft-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 720px) {
  .gs-ft-grid {
    grid-template-columns: 1fr;
  }
}
