/* AGAFORT Help & Contact Public Page V1-R1 — Design System tokens only. */

.ag-help-contact {
    --ag-hc-gap: var(--ag-space-4, 1rem);
    --ag-hc-radius: var(--ag-radius-lg, 12px);
    color: var(--ag-text, #0f172a);
    background: var(--ag-surface, #ffffff);
    border: 1px solid var(--ag-border, #e2e8f0);
    border-radius: var(--ag-hc-radius);
    margin-block: var(--ag-space-6, 1.5rem) var(--ag-space-10, 2.5rem);
    padding-block: var(--ag-space-6, 1.5rem) var(--ag-space-8, 2rem);
    padding-inline: var(--ag-space-4, 1rem);
}

.ag-help-contact__wrap {
    max-width: var(--ag-content-max, 1184px);
    margin-inline: auto;
}

.ag-help-contact__hero {
    display: grid;
    gap: var(--ag-space-6, 1.5rem);
    align-items: center;
    margin-bottom: var(--ag-space-8, 2rem);
    padding: var(--ag-space-6, 1.5rem);
    background: var(--ag-dh-surface-tint, color-mix(in srgb, var(--ag-primary, #f68b1e) 8%, var(--ag-surface, #fff)));
    border: 1px solid var(--ag-border, #e2e8f0);
    border-radius: var(--ag-hc-radius);
}

@media (min-width: 900px) {
    .ag-help-contact__hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        padding: var(--ag-space-8, 2rem);
    }
}

.ag-help-contact__title {
    margin: 0 0 var(--ag-space-3, 0.75rem);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--ag-text, #0f172a);
}

.ag-help-contact__intro {
    margin: 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ag-muted, #64748b);
}

.ag-help-contact__illustration {
    display: block;
    width: 100%;
    height: auto;
    max-width: 32rem;
    margin-inline: auto;
    aspect-ratio: 640 / 480;
    object-fit: contain;
}

.ag-help-contact__section {
    margin-block: var(--ag-space-6, 1.5rem);
}

.ag-help-contact__section--social {
    margin-bottom: 0;
}

.ag-help-contact__section-title {
    margin: 0 0 var(--ag-space-4, 1rem);
    font-size: 1.25rem;
    font-weight: 700;
}

.ag-help-contact__grid {
    display: grid;
    gap: var(--ag-space-4, 1rem);
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
}

.ag-help-contact__grid[data-channel-count="1"] {
    grid-template-columns: minmax(0, 28rem);
}

@media (min-width: 768px) {
    .ag-help-contact__grid[data-channel-count="2"],
    .ag-help-contact__grid[data-channel-count="4"],
    .ag-help-contact__grid--self {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ag-help-contact__grid[data-channel-count="3"],
    .ag-help-contact__grid[data-channel-count="5"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Three cards on tablet: center the orphan without collapsing width. */
    .ag-help-contact__grid[data-channel-count="3"] > *:last-child {
        grid-column: 1 / -1;
        max-width: calc((100% - var(--ag-hc-gap, 1rem)) / 2);
        width: 100%;
        justify-self: center;
    }

    /* Five cards on tablet: keep equal two-column tracks (3+2), no narrow orphan. */
    .ag-help-contact__grid[data-channel-count="5"] > *:last-child {
        grid-column: auto;
        max-width: none;
        width: auto;
        justify-self: stretch;
    }
}

@media (min-width: 1024px) {
    .ag-help-contact__grid[data-channel-count="3"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ag-help-contact__grid[data-channel-count="3"] > *:last-child {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }

    .ag-help-contact__grid[data-channel-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @media (min-width: 1200px) {
        .ag-help-contact__grid[data-channel-count="4"] {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    /* Five cards: row of 3 + centered row of 2 equal cards. */
    .ag-help-contact__grid[data-channel-count="5"] {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .ag-help-contact__grid[data-channel-count="5"] > * {
        grid-column: span 2;
        max-width: none;
        justify-self: stretch;
    }

    .ag-help-contact__grid[data-channel-count="5"] > *:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .ag-help-contact__grid[data-channel-count="5"] > *:nth-child(5) {
        grid-column: 4 / span 2;
    }

    .ag-help-contact__grid--self[data-channel-count="4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ag-help-contact__card .ag-card-body {
    display: grid;
    gap: var(--ag-space-2, 0.5rem);
    padding: var(--ag-space-4, 1rem);
}

.ag-help-contact__card-icon {
    font-size: 1.5rem;
    color: var(--ag-primary, #f68b1e);
}

.ag-help-contact__card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.ag-help-contact__card-body,
.ag-help-contact__card-meta,
.ag-help-contact__hours,
.ag-help-contact__ltr-value {
    margin: 0;
    color: var(--ag-muted, #64748b);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ag-help-contact__ltr {
    unicode-bidi: isolate;
    direction: ltr;
    display: inline;
}

.ag-help-contact__hours {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    align-items: baseline;
}

.ag-help-contact__tz {
    color: var(--ag-muted, #64748b);
}

.ag-help-contact__status {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
}

.ag-help-contact__status[data-open="1"] {
    color: var(--ag-success, #16a34a);
}

.ag-help-contact__status[data-open="0"] {
    color: var(--ag-warning, #d97706);
}

.ag-help-contact__status[data-open="1"]::before,
.ag-help-contact__status[data-open="0"]::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--ag-radius-full, 9999px);
    background: currentColor;
    flex-shrink: 0;
    align-self: center;
}

.ag-help-contact__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.55rem 1rem;
    margin-top: var(--ag-space-2, 0.5rem);
    border-radius: var(--ag-hc-radius);
    background: var(--ag-primary, #f68b1e);
    color: var(--ag-dh-on-primary, #fff);
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
}

.ag-help-contact__cta:hover {
    filter: brightness(0.95);
}

.ag-help-contact__cta:focus-visible {
    outline: 2px solid var(--ag-info, #2563eb);
    outline-offset: 2px;
}

.ag-help-contact__faq {
    display: grid;
    gap: var(--ag-space-3, 0.75rem);
}

.ag-help-contact__faq-item {
    border: 1px solid var(--ag-border, #e2e8f0);
    border-radius: var(--ag-hc-radius);
    background: var(--ag-surface, #fff);
    padding-inline: var(--ag-space-4, 1rem);
}

.ag-help-contact__faq-item[open] {
    border-inline-start: 3px solid var(--ag-primary, #f68b1e);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--ag-text, #0f172a) 8%, transparent);
}

.ag-help-contact__faq-summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    padding-block: var(--ag-space-4, 1rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ag-space-3, 0.75rem);
    min-height: 2.75rem;
}

.ag-help-contact__faq-summary::-webkit-details-marker {
    display: none;
}

.ag-help-contact__faq-summary:focus-visible {
    outline: 2px solid var(--ag-info, #2563eb);
    outline-offset: 2px;
}

.ag-help-contact__faq-marker {
    width: 0.55rem;
    height: 0.55rem;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.ag-help-contact__faq-item[open] .ag-help-contact__faq-marker {
    transform: rotate(225deg);
}

.ag-help-contact__faq-panel {
    padding-bottom: var(--ag-space-4, 1rem);
    color: var(--ag-muted, #64748b);
}

.ag-help-contact__faq-panel p {
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ag-help-contact__social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ag-space-3, 0.75rem) var(--ag-space-5, 1.25rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.ag-help-contact__social a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.ag-help-contact__social a:focus-visible {
    outline: 2px solid var(--ag-info, #2563eb);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ag-help-contact__faq-marker {
        transform: none;
    }

    .ag-help-contact__faq-item[open] .ag-help-contact__faq-marker {
        transform: none;
        opacity: 0.55;
    }
}
