/* ============================================================
   CONTACT PAGE — Glassmorphic Form + Contact Info
   Styles the existing form via descendant selectors.
   DOES NOT require any changes to form HTML.
   ============================================================ */


/* ---------- HERO ---------- */
.contact-hero {
  min-height: 420px;
  padding-bottom: 80px;
}
.contact-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.contact-hero .breadcrumbs,
.contact-hero .eyebrow,
.contact-hero .page-title,
.contact-hero .body-text {
  position: relative;
  z-index: 2;
}
.contact-hero::before {
  width: 700px;
  height: 480px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 170, 50, 0.15) 0%,
    rgba(255, 140, 30, 0.06) 30%,
    rgba(255, 120, 20, 0.02) 55%,
    transparent 75%
  );
  opacity: 1;
}


/* ---------- CONTACT GRID ---------- */
.contact-main {
  padding-top: 80px;
  padding-bottom: 110px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}


/* ---------- CONTACT INFO (LEFT) ---------- */
.contact-info {
  padding-top: 12px;
}

.contact-block {
  margin-bottom: 36px;
}
.contact-block__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--amber-core);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--hover-speed) ease, text-shadow var(--hover-speed) ease;
}
.contact-phone:hover {
  color: var(--amber-bright);
  text-shadow: 0 0 20px rgba(255, 180, 60, 0.20);
}

.contact-email {
  display: block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cyan-core);
  text-decoration: none;
  transition: color var(--hover-speed) ease;
}
.contact-email:hover {
  color: var(--cyan-bright);
}

.contact-location,
.contact-hours {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-heading);
}

.contact-block__note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 1.5;
}

/* Testimonial alongside contact info */
.contact-quote {
  margin-top: 40px;
  padding: 24px;
  border-left: 3px solid var(--purple-core);
  background: rgba(180, 100, 255, 0.04);
  border-radius: 0 12px 12px 0;
}
.contact-quote p {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}


/* ---------- GLASSMORPHIC FORM CARD ---------- */
.contact-form-card {
  position: relative;
  background: rgba(12, 16, 32, 0.55);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.20),
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(255, 170, 50, 0.03);
  overflow: hidden;
}

/* Shimmer border on form card — static radial hotspots */
.contact-form-card__shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  z-index: 0;
  background:
    /* Bottom — strongest */
    radial-gradient(ellipse 180px 50px at 50% 100%, rgba(255, 180, 60, 0.18) 0%, transparent 100%),
    /* Top */
    radial-gradient(ellipse 120px 35px at 50% 0%, rgba(255, 180, 60, 0.08) 0%, transparent 100%),
    /* Left */
    radial-gradient(ellipse 35px 100px at 0% 50%, rgba(255, 180, 60, 0.06) 0%, transparent 100%),
    /* Right */
    radial-gradient(ellipse 35px 100px at 100% 50%, rgba(255, 180, 60, 0.06) 0%, transparent 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--hover-speed) ease;
}
.contact-form-card:hover .contact-form-card__shimmer {
  opacity: 1;
}

/* Inner glow at top of card */
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: radial-gradient(ellipse at center, rgba(255, 180, 60, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-form-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.contact-form-card__subtitle {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* Form slot — contains the existing form, untouched */
.contact-form-slot {
  position: relative;
  z-index: 1;
}


/* ============================================================
   FORM ELEMENT STYLES
   These target ALL form elements within .contact-form-slot.
   They will apply to whatever form markup is pasted in,
   regardless of class names, IDs, or structure.
   ============================================================ */

/* Labels */
.contact-form-slot label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  text-transform: none;
}

/* All text-type inputs */
.contact-form-slot input[type="text"],
.contact-form-slot input[type="email"],
.contact-form-slot input[type="tel"],
.contact-form-slot input[type="url"],
.contact-form-slot input[type="number"],
.contact-form-slot input[type="search"],
.contact-form-slot input[type="password"],
.contact-form-slot input:not([type]),
.contact-form-slot select,
.contact-form-slot textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color var(--hover-speed) ease, background var(--hover-speed) ease,
              box-shadow var(--hover-speed) ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* Focus state — amber glow */
.contact-form-slot input[type="text"]:focus,
.contact-form-slot input[type="email"]:focus,
.contact-form-slot input[type="tel"]:focus,
.contact-form-slot input[type="url"]:focus,
.contact-form-slot input[type="number"]:focus,
.contact-form-slot input[type="search"]:focus,
.contact-form-slot input[type="password"]:focus,
.contact-form-slot input:not([type]):focus,
.contact-form-slot select:focus,
.contact-form-slot textarea:focus {
  border-color: rgba(255, 180, 60, 0.40);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 180, 60, 0.08), 0 0 20px rgba(255, 180, 60, 0.05);
}

/* Hover state */
.contact-form-slot input[type="text"]:hover,
.contact-form-slot input[type="email"]:hover,
.contact-form-slot input[type="tel"]:hover,
.contact-form-slot input[type="url"]:hover,
.contact-form-slot input:not([type]):hover,
.contact-form-slot select:hover,
.contact-form-slot textarea:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

/* Placeholder text */
.contact-form-slot input::placeholder,
.contact-form-slot textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Textarea — taller */
.contact-form-slot textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Select dropdown */
.contact-form-slot select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Checkboxes and radios — basic normalize */
.contact-form-slot input[type="checkbox"],
.contact-form-slot input[type="radio"] {
  width: auto;
  margin-right: 8px;
  accent-color: var(--amber-core);
}

/* Form groups from existing markup */
.contact-form-slot .form-group {
  margin-bottom: 0;
}

/* Submit button — inherits btn--amber energy */
.contact-form-slot input[type="submit"],
.contact-form-slot button[type="submit"],
.contact-form-slot .form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 170, 50, 0.22), rgba(255, 140, 30, 0.10));
  border: 1px solid rgba(255, 170, 50, 0.35);
  border-radius: 10px;
  padding: 16px 32px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--hover-speed) ease;
  box-shadow: 0 0 20px rgba(255, 170, 50, 0.08);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.contact-form-slot input[type="submit"]:hover,
.contact-form-slot button[type="submit"]:hover,
.contact-form-slot .form-submit:hover {
  background: linear-gradient(135deg, rgba(255, 170, 50, 0.32), rgba(255, 140, 30, 0.15));
  border-color: rgba(255, 180, 60, 0.55);
  box-shadow: 0 0 30px rgba(255, 170, 50, 0.18), 0 0 60px rgba(255, 170, 50, 0.06);
  transform: translateY(-1px);
}

/* Disabled state for submit during send */
.contact-form-slot button[type="submit"]:disabled,
.contact-form-slot .form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Shimmer sweep on submit hover */
.contact-form-slot button[type="submit"]::after,
.contact-form-slot .form-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 80, 0.08), transparent);
  transition: left 0.6s ease;
}
.contact-form-slot button[type="submit"]:hover::after,
.contact-form-slot .form-submit:hover::after {
  left: 100%;
}

/* Form status message styling (already styled inline by JS, but ensure it fits) */
.contact-form-slot #formStatus {
  border-radius: 10px !important;
  font-family: var(--font-body) !important;
}

/* Error/validation states (generic patterns) */
.contact-form-slot .error,
.contact-form-slot .invalid,
.contact-form-slot [aria-invalid="true"],
.contact-form-slot input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 80, 80, 0.40);
}

/* Hidden fields stay hidden */
.contact-form-slot input[type="hidden"] {
  display: none;
}

/* Autofill override — keep dark background */
.contact-form-slot input:-webkit-autofill,
.contact-form-slot input:-webkit-autofill:hover,
.contact-form-slot input:-webkit-autofill:focus,
.contact-form-slot textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(12, 16, 32, 1) inset !important;
  -webkit-text-fill-color: var(--text-heading) !important;
  border-color: rgba(255, 180, 60, 0.25) !important;
  transition: background-color 5000s ease-in-out 0s;
}


/* ---------- CREDIBILITY STRIP ---------- */
.contact-why {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.contact-why-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.contact-why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.contact-why-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.contact-why-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-why-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 600px) {
  .contact-why-grid { gap: 24px; }
  .contact-why-divider { display: none; }
}


/* ---------- CTA ---------- */
.contact-cta {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}
.contact-cta__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 170, 50, 0.10) 0%,
    rgba(255, 140, 30, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .contact-form-card {
    padding: 36px 28px;
  }
}
@media (max-width: 480px) {
  .contact-form-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
}

/* Safari backdrop-filter fallback */
@media (max-width: 960px) {
  .contact-form-card {
    background: rgba(12, 16, 32, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
