/* ============================================
   CONTACT PAGE STYLES
   File: public/assets/css/pages/contact/index.css
   --------------------------------------------
   - Dark, cinematic layout
   - Fully responsive (mobile-first)
   - Matches visual language of home / movies / about
============================================ */

/* ---------- Page Shell ---------- */

.static-page.static-page-contact {
  background: radial-gradient(
      circle at top,
      rgba(245, 178, 0, 0.1),
      transparent 55%
    ),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.95), #020617);
  color: #e5e7eb; /* slate-200 */
  min-height: 100vh;
}

/* Generic inner wrapper for static pages */
.static-page-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

/* Contact-specific inner wrapper */
.static-contact-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem; /* Keeps same spacing as .static-page-inner but easy to tweak later */
}

/* ============================================
   HERO
============================================ */

.static-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

/* Contact hero modifier */
.static-hero--contact {
  background-color: #020617;
}

/* Hero image wrapper */
.static-hero-media {
  position: relative;
  max-height: 480px;
}

/* --------------------------------------------
   HERO IMAGE
   Recommended source image sizes:
   - Desktop: 1440 x 420 / 480px
   - Tablet : 1024 x 360px
   - Mobile : 768 x 280px
--------------------------------------------- */
.static-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Dark gradient overlay over hero image */
.static-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 7, 18, 0.55),
    rgba(3, 7, 18, 0.98)
  );
  display: flex;
  align-items: flex-end;
}

/* Hero inner container */
.static-hero-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.75rem;
}

/* Compact variant for this page (slightly smaller paddings on mobile) */
.static-hero-inner--compact {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

/* Small pill headline above the main title */
.static-hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(34, 197, 94, 0.8);
  color: #bbf7d0; /* green-200 */
  margin-bottom: 0.75rem;
}

/* Main hero title */
.static-hero-title {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

/* Supporting hero subtitle text */
.static-hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e5e7eb;
  max-width: 36rem;
}

/* ============================================
   LAYOUT: FORM + SIDEBAR
============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

/* Left column: form card */
.contact-main {
  min-width: 0; /* avoid overflow on narrow screens */
}

/* Right column: information + map */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* ============================================
   CONTACT CARDS (shared styles)
============================================ */

.contact-card {
  padding: 1.25rem 1.3rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Form card modifier */
.contact-card--form {
  background: radial-gradient(
      circle at top left,
      rgba(248, 250, 252, 0.06),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.98);
}

/* Info card (direct contacts) modifier */
.contact-card--info {
  background: rgba(15, 23, 42, 0.96);
}

/* Map card modifier */
.contact-card--map {
  background: rgba(15, 23, 42, 0.96);
}

/* ============================================
   SECTION TITLES / SUBTITLES
============================================ */

.contact-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: #f9fafb;
}

.contact-section-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* ============================================
   CONTACT FORM
============================================ */

.contact-form {
  margin-top: 0.4rem;
}

/* Grid layout for form fields (1 column on mobile) */
.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

/* Single form field wrapper */
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Field that spans full row in grid */
.contact-field-full {
  grid-column: 1 / -1;
}

/* Inline style for special fields (e.g. checkbox row) */
.contact-field-inline {
  align-items: flex-start;
}

/* Field labels */
.contact-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #e5e7eb;
}

/* Checkbox label wrapper (input + text) */
.contact-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #d1d5db;
  cursor: pointer;
}

.contact-checkbox input {
  margin-top: 0.1rem;
  accent-color: #f5b200; /* highlight color for checkbox */
}

/* --------------------------------------------
   FORM INPUTS / SELECT / TEXTAREA
   Styled based on being inside .contact-form
--------------------------------------------- */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.85rem;
  padding: 0.55rem 0.7rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b7280; /* slate-500 */
}

/* Focus states */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #f5b200;
  box-shadow: 0 0 0 1px rgba(245, 178, 0, 0.4);
  background-color: rgba(15, 23, 42, 0.98);
}

/* Textarea specifics */
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* --------------------------------------------
   FORM FOOTER / ACTIONS
--------------------------------------------- */

.contact-form-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Primary submit button */
.contact-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5b200, #f97316);
  color: #020617;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.contact-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8);
}

/* Small form note under button */
.contact-form-note {
  font-size: 0.78rem;
  color: #9ca3af;
  max-width: 24rem;
}

/* ============================================
   CONTACT INFO (SIDEBAR BLOCKS)
============================================ */

.contact-info-block {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.contact-info-block:first-of-type {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: none;
}

.contact-info-block h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.contact-info-block p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* Muted text inside contact info (e.g. address note) */
.contact-info-muted {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ============================================
   MAP / LOCATION SECTION
============================================ */

.contact-map-wrap {
  margin-top: 0.9rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
}

/* --------------------------------------------
   MAP IMAGE
   Recommended source image sizes:
   - Desktop: 1200 x 400px
   - Tablet : 1024 x 340px
   - Mobile : 768 x 260px
--------------------------------------------- */
.contact-map-img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ============================================
   LINKS & GENERAL
============================================ */

.static-page-contact a {
  color: #fbbf24;
  text-decoration: none;
}

.static-page-contact a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
============================================ */

/* ≥ 640px (small tablets) */
@media (min-width: 640px) {
  .static-hero-inner {
    padding: 4rem 1.75rem 3.25rem;
  }

  .static-hero-inner--compact {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .static-hero-title {
    font-size: 2.2rem;
  }

  .static-hero-subtitle {
    font-size: 1rem;
  }

  .contact-map-img {
    height: 300px;
  }
}

/* ≥ 768px (tablets / small laptops) */
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: flex-start;
  }

  .contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-field-full {
    grid-column: 1 / -1;
  }

  .contact-form-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-map-img {
    height: 340px;
  }
}

/* ≥ 1024px (desktops) */
@media (min-width: 1024px) {
  .static-hero-title {
    font-size: 2.5rem;
  }

  .static-hero-subtitle {
    font-size: 1.05rem;
  }

  .static-page-inner {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .contact-map-img {
    height: 380px;
  }
}

/* ≥ 1280px (large desktops) */
@media (min-width: 1280px) {
  .static-hero-inner,
  .static-hero-inner--compact,
  .static-page-inner,
  .static-contact-inner {
    padding-left: 0;
    padding-right: 0;
  }
}
