/* ===========================================================
   Contact & support centre - BDStall (redesign, 2026-10-29)
   Mobile-first; kebab-case; system fonts; weights <= 700.
   The previous design is kept as a backup in pages/contact.css.
   =========================================================== */

.support-page {
    --support-green: var(--green, #149A49);
    --support-green-dark: var(--green-dark, #0E7A38);
    --support-orange: var(--orange, #F58320);
    --support-text: var(--color-text-primary, #1C1C1A);
    --support-muted: #6b6558;
    --support-border: #eee6da;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px 40px;
    color: var(--support-text);
}
.support-page .breadcrumb { padding: 0 0 8px; }
.support-page :focus-visible { outline: 2px solid var(--support-green); outline-offset: 2px; }

/* ---- hero ---- */
.support-hero { text-align: center; margin: 4px 0 20px; }
.support-hero-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.support-hero-title .is-accent { color: var(--support-orange); }
.support-title-rule {
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: var(--support-green);
    margin: 10px auto 12px;
}
.support-hero-lead {
    font-size: 14px;
    line-height: 1.7;
    color: var(--support-muted);
    margin: 0;
}
.support-hero-lead br { display: none; }

/* ---- illustration + topics ---- */
.support-main { display: grid; gap: 12px; margin-bottom: 32px; }

.support-visual { display: flex; align-items: center; justify-content: center; }
.support-visual-stage {
    position: relative;
    width: 100%;
    max-width: 280px;
    padding: 18px 0 0;
}
/* Soft backdrop behind the cut-out illustration. */
.support-visual-stage::before {
    content: "";
    position: absolute;
    inset: 12% 6% 4% 2%;
    border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
    background: radial-gradient(circle at 40% 40%, #fbe9dc 0%, #f8efe6 55%, rgba(248, 239, 230, 0) 75%);
    z-index: 0;
}
.support-visual-img,
.support-visual-fallback { position: relative; z-index: 1; width: 100%; height: auto; display: block; }
.support-visual-fallback {
    aspect-ratio: 6 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.support-visual-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--support-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(20, 154, 73, 0.25);
}

/* Speech bubble just right of the agent's face, tail pointing left at her mouth.
   Positioned in % of the illustration so it stays beside the face at every size. */
.support-visual-bubble {
    position: absolute;
    z-index: 2;
    top: 21%;
    left: 60%;
    background: #fff;
    color: var(--support-text);
    border-radius: 18px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(60, 40, 10, 0.12);
    transform-origin: 0 60%;
    animation: support-bubble-pop 0.45s cubic-bezier(.2, 1.4, .4, 1) 0.3s both,
               support-bubble-float 4s ease-in-out 0.8s infinite;
}
.support-visual-bubble::after {
    content: "";
    position: absolute;
    left: -12px;
    top: 58%;
    width: 14px;
    height: 20px;
    background: #fff;
    clip-path: polygon(100% 0, 100% 100%, 0 75%);
}
@keyframes support-bubble-pop {
    from { opacity: 0; transform: scale(0.6) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes support-bubble-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -5px; }
}
@media (prefers-reduced-motion: reduce) {
    .support-visual-bubble { animation: none; }
}

.support-topics-card {
    background: #fff;
    border: 1px solid var(--support-border);
    border-radius: 16px;
    padding: 18px 14px;
    box-shadow: 0 4px 18px rgba(60, 40, 10, 0.04);
}
.support-topics-title { font-size: 20px; font-weight: 700; margin: 0 0 14px; }

.support-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.support-topic {
    appearance: none;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid var(--support-border);
    border-radius: 14px;
    padding: 16px 8px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-height: 112px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.support-topic:hover { border-color: var(--support-green); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); }
.support-topic.is-selected { border-color: var(--support-green); box-shadow: 0 0 0 1px var(--support-green); }
.support-topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f4e9;
    color: var(--support-green);
    transition: background 0.15s, color 0.15s;
}
.support-topic:hover .support-topic-icon,
.support-topic.is-selected .support-topic-icon { background: var(--support-green); color: #fff; }
.support-topic-title { font-size: 14px; font-weight: 700; line-height: 1.35; }

.support-cta {
    appearance: none;
    border: none;
    font: inherit;
    width: 100%;
    margin-top: 14px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--support-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(245, 131, 32, 0.28);
}
.support-cta:hover { filter: brightness(0.95); }
.support-help-note { font-size: 13px; color: var(--support-muted); text-align: center; margin: 12px 0 0; }
.support-help-note a { color: var(--support-green); font-weight: 700; }

/* ---- message form ---- */
.support-form-card {
    background: #fff;
    border: 1px solid var(--support-border);
    border-radius: 16px;
    padding: 18px 14px;
    margin-bottom: 32px;
    scroll-margin-top: 90px;
}
.support-form-card[hidden] { display: none; }
.support-form-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.support-form { display: grid; gap: 12px; }
.support-form-row { display: grid; gap: 12px; }
.support-form-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.support-form-label { font-size: 13px; font-weight: 600; color: #374151; }
.support-form-label .is-optional { font-weight: 400; color: var(--support-muted); }
.support-form-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    color: var(--support-text);
    background: #fff;
    box-sizing: border-box;
}
.support-form-input:focus { border-color: var(--support-green); outline: none; box-shadow: 0 0 0 3px rgba(20, 154, 73, 0.12); }
.support-form-textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; }
.support-form-submit {
    appearance: none;
    border: none;
    font: inherit;
    min-height: 46px;
    border-radius: 10px;
    background: var(--support-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.support-form-submit:hover { background: var(--support-green-dark); }

/* ---- direct channels: quiet inline row ---- */
.support-channels { text-align: center; padding: 8px 0 4px; }
.support-channel-list {
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.support-channel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--support-text);
    text-decoration: none;
    line-height: 1.5;
}
a.support-channel:hover { color: var(--support-green); text-decoration: none; }
.support-channel-icon { display: inline-flex; flex-shrink: 0; color: var(--support-text); }
.support-hours {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--support-muted);
    text-align: left;
}
.support-hours .support-channel-icon { color: var(--support-muted); padding-top: 2px; }

/* ---- flash modal ---- */
.support-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 22, 18, 0.55);
}
.support-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.support-modal-icon { display: flex; justify-content: center; margin-bottom: 10px; }
.support-modal-box.is-success .support-modal-icon { color: var(--support-green); }
.support-modal-box.is-error .support-modal-icon { color: var(--orange-dark, #C56612); }
.support-modal-text { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0 0 20px; }
.support-modal-ok {
    appearance: none;
    border: none;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--support-green);
    padding: 11px 40px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
}
.support-modal-box.is-error .support-modal-ok { background: var(--support-orange); }

/* ---- 768px+ ---- */
@media (min-width: 768px) {
    .support-page { padding: 12px 0 60px; }
    .support-visual-stage { max-width: 420px; }
    .support-visual-bubble { font-size: 16px; padding: 11px 18px; }
    .support-hero-title { font-size: 34px; }
    .support-hero-lead { font-size: 15px; }
    .support-hero-lead br { display: inline; }
    .support-topics-card { padding: 22px 20px; }
    .support-topics-title { font-size: 24px; }
    .support-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .support-topic { min-height: 128px; }
    .support-topic-title { font-size: 15px; }
    .support-form-card { padding: 24px; }
    .support-form-row { grid-template-columns: 1fr 1fr; }
    .support-form-submit { justify-self: start; padding: 0 36px; }
    .support-channel-list { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 0; }
    .support-channel { padding: 0 24px; }
    .support-channel + .support-channel { border-left: 1px solid #e5ddd0; }
}

/* ---- 1024px+: illustration beside the topics card ---- */
@media (min-width: 1024px) {
    .support-main { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; margin-bottom: 40px; }
    .support-visual-stage { max-width: 520px; padding-top: 24px; }
    .support-visual-bubble { font-size: 18px; padding: 13px 22px; border-radius: 20px; left: 63%; }
    .support-topics-card { padding: 24px; }
}
