/*
 * التسديد والدفع الإلكتروني — ported from the standalone E-Sadad guide.
 *
 * Everything is scoped under .esdad-page on purpose. The original stylesheet was
 * the whole static site's CSS and defined global resets for body, a and button,
 * plus .btn and .section-title, which already exist in this project (see
 * layouts/app.blade.php and landing_page.blade.php). Only the guide's own rules
 * are kept here, and the custom properties live on the wrapper rather than
 * :root so they cannot leak into other pages.
 *
 * Fonts are intentionally NOT set: the page inherits "Bahij TheSansArabic" from
 * the layout so it matches the rest of the site.
 */

.esdad-page {
    --navy: #16305c;
    /* Fallback accent. Each tab and panel overrides --accent inline with its
       bank's brand colour; every accented rule reads var(--accent, var(--blue)). */
    --blue: #0f62ac;
    --text: #1c2433;
    --muted: #67707e;
    --border: #e3e7ee;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 2px 10px rgba(20, 40, 80, 0.06);
    --shadow-hover: 0 8px 24px rgba(20, 40, 80, 0.12);
}

.esdad-page .icon {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.esdad-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.esdad-header {
    text-align: center;
    margin-bottom: 30px;
}

.esdad-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 8px;
}

.esdad-header p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.esdad-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.esdad-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.esdad-tab:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.esdad-tab__icon {
    display: flex;
    width: 20px;
    height: 20px;
}

.esdad-page .esdad-tab__icon .icon {
    width: 20px;
    height: 20px;
}

.esdad-tab.is-active {
    background: var(--accent, var(--blue));
    border-color: var(--accent, var(--blue));
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.esdad-swipe-hint {
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px 0 26px;
}

.esdad-panels {
    position: relative;
}

.esdad-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.esdad-panel.is-active {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    animation: esdad-fade 0.25s ease;
}

/* Panels with steps but no image or video use the full width. */
.esdad-panel.is-active.is-text-only {
    grid-template-columns: 1fr;
}

@keyframes esdad-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.esdad-panel {
    border-top-color: var(--accent, var(--blue));
}

.esdad-panel__steps h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 18px;
}

.esdad-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: esdad-step;
}

.esdad-steps li {
    position: relative;
    padding-inline-start: 40px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
    counter-increment: esdad-step;
}

.esdad-steps li::before {
    content: counter(esdad-step);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent, var(--blue)) 15%, #fff);
    color: var(--accent, var(--blue));
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.esdad-panel__media {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.esdad-panel__media img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.esdad-video {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.esdad-video--full {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.esdad-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 860px) {
    .esdad-panel.is-active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .esdad-main {
        padding: 20px 16px 40px;
    }

    .esdad-header h1 {
        font-size: 1.5rem;
    }

    .esdad-tab {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .esdad-panel {
        padding: 20px;
    }

    /* Square instead of 16:9 on mobile, so YouTube's Shorts overlay does not
       sit on top of the video content. */
    .esdad-video--full {
        padding-top: 100%;
    }
}
