/* ==========================================================================
   Newsletter signup  (partial: frontend/include/newsletter.blade.php)
   --------------------------------------------------------------------------
   Sits between the last content section and the footer. Dark, so it reads as
   a divider rather than competing with the sections above it.
   ========================================================================== */

.sd-news {
    padding: 58px 0;
    background: linear-gradient(120deg, #0E2547 0%, #143259 60%, #17406F 100%);
    color: #C7D3E4;
}

.sd-news__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Copy
   -------------------------------------------------------------------------- */

.sd-news__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sd-news__eyebrow i {
    color: var(--sd-orange, #E86A38);
}

.sd-news__text h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.sd-news__text p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.75;
    color: #A9B9CF;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.sd-news__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sd-news__field {
    display: block;
    margin: 0;
}

.sd-news__field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8FA3BE;
}

.sd-news__field input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    background: rgba(255, 255, 255, .06);
    font-family: inherit;
    font-size: 15.5px;
    color: #fff;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.sd-news__field input::placeholder {
    color: #7C90AC;
}

.sd-news__field input:focus {
    outline: none;
    border-color: var(--sd-orange, #E86A38);
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 3px rgba(232, 106, 56, .22);
}

/* ---- consent ---- */

/* Small print on a dark panel needs more contrast than the body copy around
   it, not less, or the one line people are agreeing to is the hardest to read. */
.sd-news__consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 16px 0 18px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    background: rgba(255, 255, 255, .05);
    font-size: 14px;
    line-height: 1.65;
    color: #E4ECF6;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.sd-news__consent:hover {
    border-color: rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .08);
}

/* Once ticked, the box reads as satisfied rather than still outstanding. */
.sd-news__consent:has(input:checked) {
    border-color: rgba(78, 208, 138, .55);
    background: rgba(46, 158, 91, .12);
}

.sd-news__consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--sd-orange, #E86A38);
    cursor: pointer;
}

.sd-news__consent a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

/* ---- button ---- */

.sd-news__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    padding: 13px 30px;
    border: 0;
    border-radius: 11px;
    background: var(--sd-orange, #E86A38);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .22s ease, transform .22s ease;
}

.sd-news__btn:hover {
    background: #D4592B;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Feedback
   -------------------------------------------------------------------------- */

.sd-news__done,
.sd-news__error {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.sd-news__done {
    background: rgba(46, 158, 91, .16);
    border: 1px solid rgba(46, 158, 91, .5);
    color: #D6F2E1;
}

.sd-news__done i {
    margin-top: 3px;
    color: #4ED08A;
    font-size: 17px;
}

.sd-news__done strong {
    display: block;
    color: #fff;
}

.sd-news__error {
    margin-bottom: 16px;
    background: rgba(220, 53, 69, .14);
    border: 1px solid rgba(220, 53, 69, .45);
    color: #FBD9DD;
    font-size: 14px;
}

.sd-news__error i {
    margin-top: 3px;
    color: #FF8A95;
}

.sd-news__error ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc outside;
}

.sd-news__error li {
    list-style: disc outside;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .sd-news__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .sd-news__text h2 {
        font-size: 25px;
    }
}

@media (max-width: 575.98px) {
    .sd-news {
        padding: 42px 0;
    }

    .sd-news__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-news__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sd-news__field input,
    .sd-news__btn {
        transition: none !important;
    }

    .sd-news__btn:hover {
        transform: none;
    }
}
