/* ============================================================
   DRYV NOW — DryvNowPage.cshtml only
   Prefix: dn-

   Same vertical scale as the other pages: 40px between sections, 24px from a
   heading to its content, 16px between the panels inside the navy block.

   The loan calculator below the navy block is the shared _LoanCalculator
   partial, so this page also links Loans.css. That file only defines --loans-*
   custom properties and loans- prefixed selectors, so nothing here or in the
   header and footer is affected by it.
   ============================================================ */
.dn-page {
   /* --dn-section-gap: 0px;*/
    --dn-panel-gap: 16px;
    --dn-navy: #003B70;
    --dn-teal: #00C4B3;
    display: flex;
    flex-direction: column;
    gap: var(--dn-section-gap);
   /* padding: 20px 30px;*/
    background: #FFFFFF;
}

/* ── Hero ──
   .Hero_Content is z-index:2, so the title stays above the scrim. The dark end
   follows the text, which rtl.css moves to the right in Arabic. */
.dn-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #003B70 0%, rgba(0, 29, 56, 0.72) 45%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.5;
}

[dir="rtl"] .dn-hero__overlay {
    background: linear-gradient(270deg, #003B70 0%, rgba(0, 29, 56, 0.72) 45%, rgba(0, 0, 0, 0) 100%);
}

/* ============================================================
   NAVY SECTION
   ============================================================ */
.dn-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;   /* title to content */
    padding: 30px;
    border-radius: 24px;
    background: var(--dn-navy);
    margin:30px 30px; 
}

/* Line art in the top corner, at its natural 252x136. Decorative only, so it is
   a background rather than an <img> and never intercepts a click. */
.dn-section__bg {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 252px;
    height: 136px;
    pointer-events: none;
    background: url('/assets/NewFolder/Dryv_Now_BG.svg') no-repeat top right;
    background-size: 252px 136px;
}

[dir="rtl"] .dn-section__bg {
    transform: scaleX(-1);
}

/* Above the line art */
.dn-section__head,
.dn-parts {
    position: relative;
    z-index: 1;
}

.dn-section__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dn-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #FFFFFF1A;
}

    .dn-section__icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

.dn-section__title {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: #FFFFFF;
}

/* ── Panels ── */
.dn-parts {
    display: flex;
    flex-direction: column;
    gap: var(--dn-panel-gap);
}

/* A lighter wash of the same navy, so the two stay in step if the base changes */
.dn-part {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
}

.dn-part__title {
    margin: 0 0 16px;
    font-family: 'Co Headline', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #FFFFFF;
}

.dn-part__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.dn-part__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* White disc with a navy centre, as drawn */
.dn-part__bullet {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 50%;
    background: #FFFFFF33;
}

    .dn-part__bullet::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 7px;
        height: 7px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: #FFFFFF;
    }

.dn-part__text {
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #FFFFFF;
}

/* A point can carry a pasted <a>, so it needs to read clearly against the
   navy panel instead of the browser's default blue link */
.dn-part__text a {
    color: var(--dn-teal);
    font-weight: 400;
    text-decoration: underline;
}

/* ============================================================
   REQUEST FORM
   ============================================================ */
.dn-form {
    padding: 48px 30px;
    /*border-radius: 24px;*/
    /* Decorative line art, same treatment as the Cards/Accounts apply form:
       background-color is the fallback if the image fails to paint. */
    background-color: var(--dn-navy);
    background-image: url("/assets/NewFolder/FormBg.svg");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto;
}

.dn-form__inner {
    max-width: 972px;
    margin-inline: auto;
}

.dn-form__title {
    margin: 0 0 32px;
    font-family: 'Co Headline', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
}

.dn-form__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dn-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dn-form__field--full {
    grid-column: 1 / -1;
}

.dn-form__field input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--dn-navy);
    font-family: 'Co Headline', sans-serif;
    font-size: 12px;
    line-height: 100%;
}

.dn-form__field input::placeholder {
    color: #7A8CA3;
}

.dn-form__submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dn-form__submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 40px;
    border: 0;
    border-radius: 999px;
    background: #7BDC4F;
    color: #FFFFFF;
    font-family: 'Co Headline', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s;
}

.dn-form__submit-btn:hover {
    opacity: .88;
}

.dn-form__note {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .dn-form {
        padding: 32px 20px;
       /* border-radius: 16px;*/
        background-size: contain;
    }

    .dn-form__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .dn-form__grid {
        grid-template-columns: 1fr;
    }

    .dn-page {
        --dn-section-gap: 28px;
        padding: 0px;
        gap:0px;
    }

    .dn-section {
        margin:15px;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }

    /* The art would sit under the title at this width, so it is dropped */
    .dn-section__bg {
        display: none;
    }

    .dn-part {
        padding: 16px;
        border-radius: 12px;
    }

    .dn-part__title {
        font-size: 18px;
    }

    .dn-part__text {
        font-size: 15px;
    }
}
