/**
 * Contact page only. All selectors use .contact- prefix.
 * Load this file only on contact.html.
 */

.contact-page-wrap {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.contact-header {
  max-width: 40rem;
  margin-inline: auto;
}

.contact-title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--section-heading-color);
}

.contact-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.contact-form-card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  padding: 2rem 2.25rem;
}

.contact-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: 0.35rem 0 0.35rem 0;
  padding-block: 0.6rem;
  font-size: 0.95rem;
}

.contact-form-card textarea.form-control {
  border-radius: 0.35rem 0 0.35rem 0;
  min-height: 7rem;
  resize: vertical;
}

/* Single phone box: left = flag + dropdown, divider, right = +91 + number input */
.contact-phone-single-box {
  display: flex;
  align-items: stretch;
  border: 1px solid #dee2e6;
  border-radius: 0.35rem 0 0.35rem 0;
  background: #fff;
  min-height: 2.75rem;
}

.contact-phone-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 20%;
  min-width: 5rem;
  padding: 0 0.5rem;
  gap: 0.25rem;
}

.contact-phone-left .contact-code-flag {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.contact-india-flag {
  width: 1.5rem;
  height: auto;
  display: block;
}

.contact-phone-left .contact-code-flag-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.contact-phone-left .contact-code-select {
  flex: 0 0 auto;
  width: 1.5rem;
  min-width: 1.5rem;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 0;
  box-shadow: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M4 6l4 4 4-4H4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 0.65rem !important;
}

.contact-phone-left .contact-code-select:focus {
  outline: none;
  box-shadow: none !important;
}

.contact-phone-divider {
  width: 1px;
  background: #dee2e6;
  flex-shrink: 0;
  margin: 0.35rem 0;
}

.contact-phone-right {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  min-width: 0;
}

.contact-code-display {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 0.95rem;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.contact-phone-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  padding: 0.5rem 0 !important;
  font-size: 0.95rem;
  box-shadow: none !important;
}

.contact-phone-input::placeholder {
  color: #adb5bd;
}

.contact-phone-input:focus {
  outline: none;
  box-shadow: none !important;
}

.contact-interested-select {
  min-width: 100%;
  width: 100%;
  background-color: #f8f9fa !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-interested-select:hover {
  background-color: #f0f1f3 !important;
  border-color: #ced4da;
}

.contact-interested-select:focus {
  background-color: #fff !important;
  border-color: var(--color-primary);
}

.contact-interested-select option {
  cursor: pointer !important;
  padding: 0.5rem;
  background: #f8f9fa;
}

.contact-interested-select option:hover,
.contact-interested-select option:focus,
.contact-interested-select option:checked {
  background: #e9ecef !important;
  cursor: pointer !important;
}

.contact-submit-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding-block: 0.7rem;
  border-radius: 0.35rem 0 0.35rem 0;
  font-weight: 600;
  font-size: 1rem;
}

.contact-submit-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.contact-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Row: columns stretch to same height as form. Pin images to bottom of that height. */
.contact-form-row {
  align-items: stretch;
}

.contact-form-row .contact-illustration-col {
  display: flex !important; /* override Bootstrap d-xl-block so column is flex */
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 100%;
}

/* Hide left/right illustrations on tablet and mobile – only show on desktop (xl and up) */
@media (max-width: 74.99em) {
  .contact-form-row .contact-illustration-col {
    display: none !important;
  }
}

.contact-illustration-wrap {
  width: 100%;
  text-align: center;
  margin-top: auto; /* push to bottom of flex column */
}

.contact-illustration {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transform: scale(1.3); /* 30% larger (height and width) */
  transform-origin: center bottom; /* scale from bottom so they stay aligned with form */
}

/* Where we serve – map with location pins */
.contact-map-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.95) 0%, rgba(191, 219, 254, 0.85) 50%, rgba(147, 197, 253, 0.9) 100%);
  padding: 2rem 0 2rem;
  border-radius: 1rem;
}

.contact-map-flag {
  font-size: 1em;
  vertical-align: middle;
}

.contact-map-heading {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--section-heading-color);
  letter-spacing: -0.02em;
}

.contact-map-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-map-container {
  height: 32rem;
  min-height: 28rem;
  background: #e0f2fe;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* Hide zoom +/- buttons – users can zoom with touch/pinch */
.contact-map-container .leaflet-control-zoom {
  display: none !important;
}

.contact-map-container .leaflet-popup-content-wrapper {
  border-radius: 0.625rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 0.125rem;
  border-left: 3px solid var(--color-primary);
}

.contact-map-container .leaflet-popup-content {
  margin: 0.6rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-map-popup strong {
  color: var(--section-heading-color);
}

.contact-map-popup-tag {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.contact-map-container .contact-map-marker.leaflet-marker-icon {
  background: #fff !important;
  border: none !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-map-container .contact-map-marker.leaflet-marker-icon:hover {
  transform: scale(1.12);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.2), 0 0 0 2px var(--color-primary);
}

.contact-map-container .contact-map-marker i {
  display: block;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.contact-map-legend {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Plane SVG: white body, blue wings; faces direction of travel */
.contact-map-container .contact-map-flight.leaflet-marker-icon {
  background: none !important;
  border: none !important;
  width: 2rem !important;
  height: 2rem !important;
  margin-left: -1rem !important;
  margin-top: -1rem !important;
}

.contact-map-plane-wrap {
  display: inline-block;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.15s ease-out;
  filter: drop-shadow(0 0.1rem 0.2rem rgba(0, 0, 0, 0.2));
}

@media (max-width: 48em) {
  .contact-form-card {
    padding: 1.5rem 1.4rem;
  }
}

