/* =========================================================================
   Contact page — UI redesign
   Page-scoped (loaded only on the Contact page via @push('styles')).
   Reuses global frontend tokens: --tg-theme-primary (green),
   --tg-heading-color (navy), --tg-body-color. Hero mirrors the
   course / live-event detail hero for site consistency.
   ========================================================================= */

/* ---------- Hero (mirror of .course-hero / .event-hero) ---------- */
.contact-hero {
    position: relative;
    min-height: 420px;
    background-color: #192d4b; /* fallback base when no banner image */
    background-image: linear-gradient(160deg, #1b3050, #142641); /* gradient fallback */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 46px;
    margin-bottom: 0;
}
.contact-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(25, 45, 75, .55) 0%, rgba(20, 38, 65, .9) 100%);
}
.contact-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-left: 50px;
    padding-right: 50px;
}
.contact-hero__crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    margin-bottom: 14px;
}
.contact-hero__crumb a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .2s;
}
.contact-hero__crumb a:hover { color: #fff; }
.contact-hero__crumb .sep { color: var(--tg-theme-primary, #138b4c); }
.contact-hero__crumb .here { color: #fff; font-weight: 600; }

.contact-hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 14px;
    max-width: 720px;
    text-wrap: balance;
}
.contact-hero__subtitle {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0;
}

/* ---------- Layout spacing ---------- */
.contact-area .contact-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%; /* fill the equal-height column so the map can grow */
}

/* ---------- Info cards ---------- */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #ececf4;
    border-radius: 12px;
    padding: 22px 20px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.contact-info-card:hover {
    box-shadow: 0 14px 34px -18px rgba(22, 20, 57, .28);
    border-color: #e0dcee;
    transform: translateY(-2px);
}
.contact-info-card__icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(19, 139, 76, .10);
    display: grid;
    place-items: center;
}
/* Bold solid FontAwesome icons in brand green (match the form-title icon) */
.contact-info-card__icon i {
    color: var(--tg-theme-primary, #138b4c);
    font-size: 20px;
    line-height: 1;
}
.contact-info-card__body { min-width: 0; }
.contact-info-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-heading-color, #161439);
    margin: 0 0 4px;
}
.contact-info-card__value {
    display: block;
    color: var(--tg-body-color, #6d6c80);
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    word-break: break-word;
}
a.contact-info-card__value:hover { color: var(--tg-theme-primary, #138b4c); }

/* ---------- Map card (sidebar) ---------- */
.contact-map-card {
    background: #fff;
    border: 1px solid #ececf4;
    border-radius: 12px;
    padding: 14px;
    flex: 1; /* grow to fill remaining sidebar height (balances the form column) */
    display: flex;
    flex-direction: column;
    min-height: 240px;
}
.contact-map-card__frame {
    border-radius: 9px;
    overflow: hidden;
    line-height: 0;
    flex: 1;
    min-height: 200px;
}
.contact-map-card__frame iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 0;
    display: block;
}
.contact-map-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 14px;
    border: 1.5px solid var(--tg-theme-primary, #138b4c);
    border-radius: 9px;
    color: var(--tg-theme-primary, #138b4c);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.contact-map-card__btn:hover {
    background: var(--tg-theme-primary, #138b4c);
    color: #fff;
}

/* ---------- Form panel ---------- */
.contact-area .contact-form-wrap {
    background: #fff;
    border: 1px solid #ececf4;
    border-radius: 14px;
    padding: 30px 30px 24px;
    height: 100%;
}
.contact-area .contact-form-wrap .title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    color: var(--tg-heading-color, #161439);
    margin: 0 0 4px;
}
.contact-form-wrap__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(19, 139, 76, .10);
    display: inline-grid;
    place-items: center;
    color: var(--tg-theme-primary, #138b4c);
    font-size: 18px;
}
.contact-form-wrap__lead {
    color: var(--tg-body-color, #6d6c80);
    font-size: 14px;
    margin: 0 0 18px;
}
/* Let form_embed.js size the iframe to its actual content height; keep a
   modest floor so it doesn't collapse before the script runs. A lower floor
   removes the empty gap under the SUBMIT button. */
.contact-area .contact-form-wrap iframe {
    width: 100%;
    min-height: 480px;
    border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .contact-hero { min-height: 340px; padding-bottom: 36px; }
    .contact-hero__content { padding-left: 24px; padding-right: 24px; }
    .contact-hero__title { font-size: 2.1rem; }
}
@media (max-width: 767px) {
    .contact-area .contact-side { margin-bottom: 24px; }
}
@media (max-width: 575px) {
    .contact-hero { min-height: 280px; }
    .contact-hero__title { font-size: 1.6rem; }
    .contact-hero__subtitle { font-size: .95rem; }
    .contact-area .contact-form-wrap { padding: 22px 18px; }
}
