/* ============================================================
   DOWNLOADS-MODERN.CSS  –  Eduro Downloads Page
   Brand: #DE6B3B (primary), #F2943C (secondary)
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
.dl-page * { box-sizing: border-box; }
.dl-page { font-family: 'Nunito Sans', 'Lato', sans-serif; color: #2d3748; }

/* ── Hero ─────────────────────────────────────────────────── */
.dl-hero {
    background: linear-gradient(135deg, #DE6B3B 0%, #F2943C 60%, #e8572a 100%);
    padding: 72px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.dl-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.dl-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}
.dl-hero__eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.dl-hero__title {
    font-size: clamp(26px, 5vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
}
.dl-hero__text {
    font-size: 17px;
    color: rgba(255,255,255,.88);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.dl-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #DE6B3B;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.dl-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    color: #DE6B3B;
    text-decoration: none;
}
.dl-hero__img {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
}
.dl-hero__img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

/* ── Section wrapper ──────────────────────────────────────── */
.dl-section {
    padding: 64px 0;
}
.dl-section__header {
    text-align: center;
    margin-bottom: 48px;
}
.dl-section__tag {
    display: inline-block;
    background: #FFF0E8;
    color: #DE6B3B;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.dl-section__title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    line-height: 1.25;
}

/* ── Document Cards Grid ──────────────────────────────────── */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.dl-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid #f0f0f0;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.dl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(222,107,59,.15);
}
.dl-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #FFF0E8;
}
.dl-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.dl-card:hover .dl-card__thumb img {
    transform: scale(1.04);
}
.dl-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dl-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px;
    line-height: 1.35;
}
.dl-card__desc {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}
.dl-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #DE6B3B, #F2943C);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    align-self: flex-start;
}
.dl-card__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(222,107,59,.35);
    color: #fff;
    text-decoration: none;
}
.dl-card__btn i { font-size: 13px; }

/* ── Page 2: Detail + Form Layout ────────────────────────── */
.dl-detail {
    padding: 56px 0;
    background: #f8f9fa;
    min-height: 60vh;
}
.dl-detail__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.dl-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #DE6B3B;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 28px;
    text-decoration: none;
    transition: gap .2s;
}
.dl-detail__back:hover { gap: 12px; color: #c45e30; }
.dl-detail__doc-thumb {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    margin-bottom: 24px;
    aspect-ratio: 4/3;
    background: #FFF0E8;
}
.dl-detail__doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dl-detail__doc-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 12px;
}
.dl-detail__doc-text {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.65;
    margin: 0 0 20px;
}
.dl-detail__features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dl-detail__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #2d3748;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    line-height: 1.5;
}
.dl-detail__features li:last-child { border-bottom: none; }
.dl-detail__features li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DE6B3B, #F2943C);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 2px;
}

/* ── Form card (Page 2) ───────────────────────────────────── */
.dl-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    padding: 36px 32px;
    border: 1px solid #edf2f7;
}
.dl-form-card__title {
    font-size: 20px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 6px;
}
.dl-form-card__sub {
    font-size: 14px;
    color: #718096;
    margin: 0 0 28px;
    line-height: 1.5;
}
.dl-form-group {
    margin-bottom: 16px;
}
.dl-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}
.dl-form-group select,
.dl-form-group input[type="text"],
.dl-form-group input[type="email"],
.dl-form-group input[type="tel"] {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #2d3748;
    background: #fff;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.dl-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23718096'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}
.dl-form-group select:focus,
.dl-form-group input:focus {
    outline: none;
    border-color: #DE6B3B;
    box-shadow: 0 0 0 3px rgba(222,107,59,.12);
}
.dl-form-group .error-text {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
    display: none;
}
.dl-form-group .error-text.visible { display: block; }
.dl-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    cursor: pointer;
}
.dl-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #DE6B3B;
    border-radius: 4px;
    accent-color: #DE6B3B;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.dl-checkbox span {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}
.dl-info-box {
    background: #FFF0E8;
    border-left: 3px solid #DE6B3B;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 13px;
    color: #744210;
    line-height: 1.55;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.dl-info-box i { color: #DE6B3B; margin-top: 2px; flex-shrink: 0; }
.dl-terms-text {
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.6;
    margin: 12px 0 20px;
}
.dl-terms-text a { color: #DE6B3B; text-decoration: underline; }
.dl-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #DE6B3B, #F2943C);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(222,107,59,.3);
    font-family: inherit;
}
.dl-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(222,107,59,.4);
    color: #fff;
    text-decoration: none;
}

/* Phone input group */
.dl-phone-group {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s;
}
.dl-phone-group:focus-within {
    border-color: #DE6B3B;
    box-shadow: 0 0 0 3px rgba(222,107,59,.12);
}
.dl-phone-group .phone-prefix {
    padding: 13px 14px;
    background: #f7fafc;
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
    border-right: 2px solid #e2e8f0;
    white-space: nowrap;
}
.dl-phone-group input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 13px 14px;
}
.dl-phone-group input:focus {
    outline: none;
    border: none !important;
    box-shadow: none !important;
}

/* ── Page 3 / Final: Success ──────────────────────────────── */
.dl-final {
    padding: 64px 0;
}
.dl-final__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.dl-final__left h2 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 12px;
    line-height: 1.25;
}
.dl-final__left p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.65;
    margin: 0 0 28px;
}
.dl-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.dl-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #2d3748;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    line-height: 1.5;
}
.dl-checklist li:last-child { border-bottom: none; }
.dl-checklist li i {
    color: #DE6B3B;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 16px;
}
.dl-final__right {
    position: sticky;
    top: 100px;
}
.dl-final-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    overflow: hidden;
    border: 1px solid #edf2f7;
}
.dl-final-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #FFF0E8;
    overflow: hidden;
}
.dl-final-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dl-final-card__body {
    padding: 28px 28px 32px;
    text-align: center;
}
.dl-final-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.dl-final-card__text {
    font-size: 15px;
    color: #4a5568;
    margin: 0 0 24px;
    line-height: 1.6;
}
.dl-final-card__dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #DE6B3B, #F2943C);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(222,107,59,.3);
    font-family: inherit;
}
.dl-final-card__dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(222,107,59,.4);
    color: #fff;
    text-decoration: none;
}
.dl-final-card__bottom-note {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 16px;
    line-height: 1.5;
}

/* ── Trust bar ────────────────────────────────────────────── */
.dl-trust {
    background: #f8f9fa;
    border-top: 1px solid #edf2f7;
    padding: 24px 0;
}
.dl-trust__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px 40px;
}
.dl-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}
.dl-trust__item i { color: #DE6B3B; font-size: 18px; }

/* ── Page transitions ─────────────────────────────────────── */
.dl-subpage { animation: dlFadeIn .35s ease; }
@keyframes dlFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Override conflicting global CSS (nice-select, bootstrap, etc.) ── */
.dl-form-card .dl-form-group {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-bottom: 16px !important;
}
.dl-form-card .dl-form-group > select,
.dl-form-card .dl-form-group > input {
    display: block !important;
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}
/* In case nice-select still applies (fallback) */
.dl-form-card .nice-select {
    display: block !important;
    width: 100% !important;
    float: none !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding: 13px 40px 13px 16px !important;
    font-size: 15px !important;
    color: #2d3748 !important;
}
.dl-form-card .nice-select:focus,
.dl-form-card .nice-select.open {
    border-color: #DE6B3B !important;
    box-shadow: 0 0 0 3px rgba(222,107,59,.12) !important;
}
.dl-form-card .nice-select .list {
    width: 100% !important;
}

/* ── Utility ──────────────────────────────────────────────── */
.dl-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.dl-hidden { display: none !important; }

/* ── MOBILE ≤ 768px ───────────────────────────────────────── */
@media (max-width: 768px) {
    .dl-hero { padding: 48px 20px 40px; }
    .dl-hero__title { font-size: 26px; }
    .dl-hero__text { font-size: 15px; }
    .dl-hero__cta { padding: 13px 26px; font-size: 14px; }

    .dl-section { padding: 40px 0; }
    .dl-section__header { margin-bottom: 28px; }

    .dl-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dl-detail { padding: 32px 0; }
    .dl-detail__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .dl-detail__doc-thumb { aspect-ratio: 16/9; }

    .dl-form-card { padding: 24px 20px; }
    .dl-form-card__title { font-size: 18px; }

    .dl-final { padding: 40px 0; }
    .dl-final__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .dl-final__right { position: static; }
    .dl-final__left { order: 2; }
    .dl-final__right { order: 1; }

    .dl-trust__inner { gap: 16px 24px; }
    .dl-trust__item { font-size: 13px; }

    .dl-submit-btn { font-size: 15px; padding: 14px 20px; }
    .dl-final-card__dl-btn { font-size: 15px; padding: 14px 20px; }
}

@media (max-width: 480px) {
    .dl-hero { padding: 40px 16px 32px; }
    .dl-hero__title { font-size: 22px; }
    .dl-section__title { font-size: 20px; }
    .dl-card__body { padding: 16px 18px 18px; }
    .dl-form-card { padding: 20px 16px; }
    .dl-container { padding: 0 16px; }
}
