/* ==========================================================================
   AI SAMRAT – CONTACT PAGE SCOPED STYLES
   Scoped strictly under body.page-contact
   ========================================================================== */

/* Standard Container Alignment matching navbar & footer */
body.page-contact main .container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 32px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  body.page-contact main .container {
    padding-inline: 20px;
  }
}

/* ==========================================================================
   1. HERO SECTION (Centered, 56px below navbar, 40px bottom)
   ========================================================================== */
body.page-contact .page-hero-section {
  display: block !important;
  padding-top: 156px !important;
  padding-bottom: 40px !important;
  min-height: auto !important;
  position: relative;
  background: #080912;
  text-align: center;
}

body.page-contact .hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

body.page-contact .page-hero-section .eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', var(--font-display, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender, #B3A8FF);
  margin-bottom: 14px;
  text-align: center;
}

body.page-contact .page-hero-section h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-wrap: balance;
  margin: 0 0 18px 0;
  text-align: center;
}

body.page-contact .page-hero-section h1 em {
  font-weight: 700;
  font-style: italic;
  color: #FFFFFF;
}

body.page-contact .hero-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: #C5C7DE !important;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   2. MAIN TWO-COLUMN SECTION (Form + Location)
   ========================================================================== */
body.page-contact .contact-main-section {
  padding-top: 16px;
  padding-bottom: 88px;
  background: #080912;
  position: relative;
}

@media (max-width: 768px) {
  body.page-contact .contact-main-section {
    padding-bottom: 56px;
  }
}

body.page-contact .contact-two-col-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Card Foundations (Both Cards share identical styling & stretch) */
body.page-contact .form-card,
body.page-contact .location-card {
  background: #0B0C1A;
  border: 1px solid rgba(101, 82, 217, 0.25);
  border-radius: 20px;
  padding: 40px;
  box-sizing: border-box;
  box-shadow: 0 0 32px rgba(101, 82, 217, 0.08);
  position: relative;
  height: 100%;
}

@media (max-width: 768px) {
  body.page-contact .form-card,
  body.page-contact .location-card {
    padding: 28px 20px;
  }
}

/* ==================== LEFT: FORM CARD ==================== */
body.page-contact .form-card {
  display: flex;
  flex-direction: column;
}

body.page-contact .form-card-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  text-align: left;
}

body.page-contact .form-card-subtitle {
  font-size: 14.5px;
  line-height: 1.5;
  color: #C5C7DE !important;
  margin: 0 0 28px 0;
  text-align: left;
}

body.page-contact .contact-form {
  display: grid;
  gap: 20px;
  width: 100%;
  margin: 0;
}

body.page-contact .form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

body.page-contact .field-group {
  display: flex;
  flex-direction: column;
}

body.page-contact .field-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #E2E4F0;
  margin-bottom: 8px;
  line-height: 1;
}

body.page-contact .required-asterisk {
  color: var(--lavender, #B3A8FF);
  font-weight: 700;
}

body.page-contact .field-group input,
body.page-contact .field-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: #070810;
  border: 1px solid rgba(101, 82, 217, 0.3);
  border-radius: 10px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.page-contact .field-group input {
  height: 48px;
}

body.page-contact .field-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

body.page-contact .field-group input::placeholder,
body.page-contact .field-group textarea::placeholder {
  color: #8E90A6;
}

body.page-contact .field-group input:focus,
body.page-contact .field-group textarea:focus {
  border-color: #7B68EE;
  box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.25);
  background: #090A14;
}

body.page-contact .field-error {
  color: #F87171;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

body.page-contact .field-group.has-error .field-error {
  display: block;
}

body.page-contact .field-group.has-error input,
body.page-contact .field-group.has-error textarea {
  border-color: #F87171;
}

body.page-contact .btn--submit {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-contact .form-feedback {
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

body.page-contact .form-feedback:empty {
  display: none;
  margin: 0;
}

body.page-contact .form-footer-note {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #9E9EB2;
  line-height: 1.4;
}

body.page-contact .form-email-link {
  color: var(--lavender, #B3A8FF);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

body.page-contact .form-email-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==================== RIGHT: LOCATION CARD ==================== */
body.page-contact .location-card {
  display: flex;
  flex-direction: column;
}

body.page-contact .location-header {
  margin-bottom: 20px;
}

body.page-contact .location-header .eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', var(--font-display, sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender, #B3A8FF);
  margin-bottom: 10px;
}

body.page-contact .location-title {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0;
}

body.page-contact .location-title em {
  font-weight: 700;
  font-style: italic;
  color: #FFFFFF;
}

/* Address Block */
body.page-contact .address-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

body.page-contact .address-icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(101, 82, 217, 0.15);
  border: 1px solid rgba(101, 82, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lavender, #B3A8FF);
  flex-shrink: 0;
  margin-top: 2px;
}

body.page-contact .address-content {
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: #C5C7DE !important;
}

/* Interactive Map Frame */
body.page-contact .office-map-frame {
  flex: 1;
  min-height: 280px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(101, 82, 217, 0.3);
  overflow: hidden;
  background: #0d0e1b;
  position: relative;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

body.page-contact .office-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* Get Directions Link */
body.page-contact .location-actions {
  display: flex;
  align-items: center;
}

body.page-contact .btn--directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lavender, #B3A8FF);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.page-contact .btn--directions:hover {
  color: #FFFFFF;
}

body.page-contact .directions-arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}

body.page-contact .btn--directions:hover .directions-arrow {
  transform: none; /* Zero layout shift */
}

/* ==========================================================================
   RESPONSIVENESS (< 900px & < 640px)
   ========================================================================== */
@media (max-width: 900px) {
  body.page-contact .contact-two-col-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.page-contact .form-row-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.page-contact .office-map-frame {
    min-height: 260px;
  }

  body.page-contact .office-map-frame iframe {
    min-height: 260px;
  }
}

/* ==========================================================================
   MOTION & ACCESSIBILITY
   ========================================================================== */
html.js body.page-contact .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js body.page-contact .reveal.is-animated {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js body.page-contact .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body.page-contact .office-map-frame iframe { filter: none !important; }
