/* ==========================================
   ARAVAA GLOBAL - CONTACT PAGE CSS
   ========================================== */

/* ==========================================
   CONTACT HERO SECTION
   ========================================== */
.page-hero {
  position: relative;
  height: 520px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-navy);
  color: var(--text-white);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.40) contrast(1.1);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(3, 12, 26, 0.65) 0%,
    rgba(3, 12, 26, 0.80) 60%,
    rgba(3, 12, 26, 0.95) 100%
  );
  z-index: 2;
}

/* Centered hero content for Contact page */
.page-hero .container {
  position: relative;
  z-index: 3;
  padding-top: 80px;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(2.4rem, 4vw + 0.8rem, 3.75rem);
  margin-bottom: 20px;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================
   CONTACT FORM & INFO SECTION
   ========================================== */

.contact-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Comprehensive Request Form Container */
.form-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark-navy);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(29, 97, 231, 0.15);
  outline: none;
}

/* Invalid field styling */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Valid field styling */
.form-input.is-valid,
.form-select.is-valid {
  border-color: #10B981;
}

.form-input.is-valid:focus,
.form-select.is-valid:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Disabled field styling */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: #F3F4F6;
  color: var(--text-light-muted);
  cursor: not-allowed;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select:disabled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

/* Form Error Styling */
.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  font-weight: 500;
  min-height: 1.2em;
  display: block;
  margin-top: -4px;
}

.form-error:empty {
  display: none;
}

/* Character Count */
.char-count {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  text-align: right;
  margin-top: 4px;
}

/* Phone Input Group - Unified Single-Field Appearance */
.phone-input-group {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-input-group:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(29, 97, 231, 0.15);
}

.phone-input-group.is-invalid {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

.phone-input-group.is-invalid:focus-within {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.phone-input-group.is-valid {
  border-color: #10B981;
}

.phone-input-group.is-valid:focus-within {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.country-code-select {
  /* sizing */
  flex-shrink: 0;
  min-width: 110px;
  max-width: 140px;
  width: auto;
  /* visual reset — inherit unified border from parent */
  border: none;
  border-right: 1.5px solid var(--border-color);
  border-radius: 0;
  background-color: #F8FAFC;
  /* typography */
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  /* spacing */
  padding: 12px 28px 12px 12px;
  /* chevron */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.country-code-select:focus {
  outline: none;
  box-shadow: none;
  border-right-color: var(--primary-blue);
  background-color: #EBF2FE;
}

.country-code-select:disabled {
  background-color: #F3F4F6;
  color: var(--text-light-muted);
  cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.phone-number-input {
  flex: 1;
  min-width: 0;
  /* reset own border — unified border is on parent */
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
}

.phone-number-input:focus {
  outline: none;
  box-shadow: none;
}

.phone-number-input::placeholder {
  color: var(--text-light-muted);
}

/* Strip invalid/valid borders from individual phone inputs — handled by parent wrapper */
.phone-number-input.is-invalid,
.phone-number-input.is-valid {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* Country Code Dropdown options */
.country-code-select option {
  padding: 8px 12px;
  font-size: 0.95rem;
}

/* Submit Button Styling */
.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Dark Navy Contact Information Card */
.contact-info-card {
  background-color: var(--navy-card);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-shadow: var(--shadow-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon-circle img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 1rem;
  color: var(--text-white);
  line-height: 1.5;
  font-weight: 500;
}

/* ==========================================
   FORM MODALS (SUCCESS & ERROR)
   ========================================== */

.form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 90%;
  z-index: 10000;
  border-left: 5px solid;
}

.form-modal-error .modal-content {
  border-left-color: #EF4444;
}

.form-modal-success .modal-content {
  border-left-color: #10B981;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin: 0;
}

.form-modal-error .modal-title {
  color: #EF4444;
}

.form-modal-success .modal-title {
  color: #10B981;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  background-color: #F3F4F6;
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin: 0;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   CONTACT RESPONSIVE BREAKPOINTS
   ========================================== */

/* ── Tablet Portrait and below (≤ 1024px) ── */
@media (max-width: 1024px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-card {
    padding: 40px 36px;
  }
}

/* ── Medium Tablets (≤ 768px) ── */
@media (max-width: 768px) {
  .form-card {
    padding: 32px 28px;
  }

  .form-grid {
    gap: 16px 20px;
  }

  .contact-info-card {
    padding: 36px 28px;
  }
}

/* ── Small Tablets / Large Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 24px;
  }

  .contact-info-card {
    padding: 28px 24px;
    gap: 28px;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .form-card {
    padding: 24px 16px;
  }

  .contact-info-card {
    padding: 24px 16px;
    gap: 24px;
  }

  /* On very small screens, stack phone group vertically */
  .phone-input-group {
    flex-direction: column;
  }

  .country-code-select {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    border-right: none;
    border-bottom: 1.5px solid var(--border-color);
    background-color: #F8FAFC;
    border-radius: 0;
    padding: 12px 28px 12px 12px;
  }

  .phone-number-input {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    max-width: 90vw;
  }

  .form-submit-btn {
    font-size: 0.9rem;
    padding: 14px 20px;
  }
}

/* ── Minimum supported width (320px) ── */
@media (max-width: 360px) {
  .form-card {
    padding: 20px 12px;
  }

  .form-grid {
    gap: 12px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 0.9rem;
    padding: 11px 12px;
  }

  .country-code-select {
    font-size: 0.85rem;
    padding: 11px 24px 11px 10px;
  }
}

/* ── Ultra-wide (≥ 1600px) ── */
@media (min-width: 1600px) {
  .contact-split {
    gap: 56px;
  }

  .form-card {
    padding: 56px 52px;
  }

  .contact-info-card {
    padding: 56px 44px;
  }
}
