/* ==========================================================================
   Admission Enquiry Popup Modal (Site Theme: Green #6caf38 & #2E5C00)
   ========================================================================== */

/* Animations */
@keyframes tourModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tourCardPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Overlay Backdrop */
.school-tour-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: tourModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.school-tour-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 5, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Modal Card */
.school-tour-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  animation: tourCardPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Circular Close Button */
.school-tour-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #2E5C00;
  background: #ffffff;
  color: #2E5C00;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  padding: 0;
  outline: none;
}

.school-tour-close-btn:hover {
  background: #2E5C00;
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}

.school-tour-close-btn svg {
  display: block;
}

/* Left Panel: School Campus & Quote */
.school-tour-left-panel {
  position: relative;
  background-image: url('../images/school_tour_student.jpg?v=2');
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 32px;
  box-sizing: border-box;
  min-height: 480px;
}

.school-tour-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(25, 52, 2, 0.92) 0%,
    rgba(46, 92, 0, 0.85) 50%,
    rgba(108, 175, 56, 0.72) 100%
  );
  z-index: 1;
}

.school-tour-quote-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.school-tour-quote {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.55;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.school-tour-badge-school {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 18px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.school-tour-badge-school span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Right Panel: Form */
.school-tour-right-panel {
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: #ffffff;
}

.school-tour-header {
  text-align: center;
  margin-bottom: 24px;
}

.school-tour-title {
  color: #2E5C00;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.school-tour-status-pill {
  display: inline-block;
  background: linear-gradient(90deg, #ff9900 0%, #ff5722 100%);
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

/* Form Groups & Inputs */
.school-tour-form-group {
  margin-bottom: 18px;
  position: relative;
  box-sizing: border-box;
}

.school-tour-input {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 48px !important;
  padding: 0 16px !important;
  border: 1.5px solid #d4dcde !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-family: "Open Sans", sans-serif !important;
  color: #2c3e50 !important;
  background-color: #fafbfb !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
  outline: none !important;
  margin: 0 !important;
  display: block !important;
}

.school-tour-input::placeholder {
  color: #8c9ba5;
  font-weight: 400;
}

.school-tour-input:focus {
  border-color: #6caf38 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(108, 175, 56, 0.22) !important;
}

.school-tour-input.has-error {
  border-color: #e53e3e !important;
  background-color: #fffaf0 !important;
}

.school-tour-error {
  display: none;
  color: #e53e3e;
  font-size: 12px;
  font-weight: 500;
  margin-top: 5px;
  padding-left: 4px;
}

.school-tour-input.has-error + .school-tour-error,
.school-tour-country-col + .school-tour-number-col .school-tour-input.has-error ~ .school-tour-error {
  display: block;
}

/* Phone Row: Country Dropdown & Mobile Number Input Perfectly Aligned Side-by-Side */
.school-tour-phone-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.school-tour-country-col {
  position: relative !important;
  width: 130px !important;
  flex: 0 0 130px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.school-tour-number-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.school-tour-select {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 48px !important;
  padding: 0 28px 0 12px !important;
  border: 1.5px solid #d4dcde !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 500 !important;
  color: #2c3e50 !important;
  background-color: #fafbfb !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  display: block !important;
}

.school-tour-select:focus {
  border-color: #6caf38 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(108, 175, 56, 0.22) !important;
}

.school-tour-select-arrow {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 9px !important;
  color: #6b7280 !important;
  pointer-events: none !important;
  line-height: 1 !important;
}

.school-tour-number-col .school-tour-input {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 48px !important;
  border-radius: 12px !important;
  margin: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Submit Button */
.school-tour-submit-btn {
  width: 100% !important;
  height: 50px !important;
  background: linear-gradient(135deg, #2E5C00 0%, #4a8218 55%, #6caf38 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 6px 18px rgba(46, 92, 0, 0.35) !important;
  margin-top: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.school-tour-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 9px 24px rgba(108, 175, 56, 0.45) !important;
  filter: brightness(1.06) !important;
}

.school-tour-submit-btn:active {
  transform: translateY(0) !important;
}

/* Success Confirmation State */
.school-tour-success {
  text-align: center;
  padding: 20px 10px;
  animation: tourModalFadeIn 0.3s ease forwards;
}

.school-tour-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E5C00, #6caf38);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(108, 175, 56, 0.35);
}

.school-tour-success h3 {
  color: #2E5C00;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.school-tour-success p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.school-tour-done-btn {
  background: #2E5C00;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.school-tour-done-btn:hover {
  background: #6caf38;
}

/* Site Color Fixes (Aligning button colors to #6caf38 & #2E5C00) */
.tabing .btn,
a.btn.wow.animated.fadeInUp {
  background-color: #6caf38 !important;
  color: #ffffff !important;
  border-color: #6caf38 !important;
  transition: all 0.3s ease !important;
}

.tabing .btn:hover,
a.btn.wow.animated.fadeInUp:hover {
  background-color: #2E5C00 !important;
  color: #ffffff !important;
  border-color: #2E5C00 !important;
}

.vc_btn3-container.but-edu a.vc_btn3 {
  background-color: #6caf38 !important;
  border-color: #6caf38 !important;
}

.vc_btn3-container.but-edu a.vc_btn3:hover {
  background-color: #2E5C00 !important;
}

/* Responsive Mobile Layout */
@media screen and (max-width: 768px) {
  .school-tour-modal-card {
    grid-template-columns: 1fr;
    max-width: 480px;
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .school-tour-left-panel {
    min-height: 180px;
    padding: 24px 20px;
  }

  .school-tour-quote {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .school-tour-badge-school span {
    font-size: 11px;
  }

  .school-tour-right-panel {
    padding: 24px 20px;
  }

  .school-tour-title {
    font-size: 22px;
  }

  .school-tour-status-pill {
    font-size: 11px;
    padding: 5px 14px;
  }

  .school-tour-country-col {
    width: 110px !important;
    flex: 0 0 110px !important;
  }

  .school-tour-select {
    font-size: 13px !important;
    padding: 0 20px 0 8px !important;
  }
}
