/* ========== WARRANTY INTRO ========== */
.warranty-intro {
    padding: 160px 40px 20px;
    text-align: center;
    background: #fff;
}

.warranty-intro h1 {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 14px;
}

.warranty-intro p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: #777;
}

.warranty-intro .warranty-intro__eyebrow {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 14px;
}

/* Shared headings */
.warranty-eyebrow {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.warranty-heading {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #222;
    padding-bottom: 14px;
    margin-bottom: 28px;
    position: relative;
}

.warranty-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #222;
}

.warranty-heading--center {
    text-align: center;
}

.warranty-heading--center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ========== OVERVIEW + AT A GLANCE ========== */
.warranty-overview {
    background: #fff;
    padding: 40px 40px 70px;
    scroll-margin-top: 90px;
}

.warranty-overview__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.warranty-overview__text p:not(.warranty-eyebrow) {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.85;
    color: #666;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
}

.warranty-glance {
    background: #111;
    padding: 36px 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.warranty-glance__title {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #777;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.warranty-glance__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.warranty-glance__label {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #777;
}

.warranty-glance__value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.warranty-glance__sub {
    font-size: 0.76rem;
    font-weight: 300;
    color: #999;
    line-height: 1.5;
}

.warranty-glance .btn {
    align-self: flex-start;
    margin-top: 6px;
}

/* ========== COVERED / EXCLUSIONS ========== */
.warranty-covered {
    background: #f5f5f5;
    padding: 60px 40px;
}

.warranty-covered__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.warranty-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 28px;
    margin-bottom: 16px;
}

.warranty-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.warranty-card__icon svg {
    width: 22px;
    height: 22px;
}

.warranty-card h3,
.warranty-care__card h3 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 8px;
}

.warranty-card p,
.warranty-care__card p {
    font-size: 0.84rem;
    font-weight: 300;
    line-height: 1.75;
    color: #777;
}

.warranty-exclusions {
    list-style: none;
    columns: 2;
    column-gap: 40px;
}

.warranty-exclusions li {
    break-inside: avoid;
    display: flex;
    gap: 14px;
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.65;
    color: #666;
    padding: 12px 0;
    border-bottom: 1px solid #e3e3e3;
}

.warranty-exclusions li span {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #e3131b;
    padding-top: 3px;
    width: 24px;
}

/* ========== CARE & MAINTENANCE ========== */
.warranty-care {
    background: #fff;
    padding: 60px 40px;
    text-align: center;
}

.warranty-care__intro {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.8;
    color: #666;
    max-width: 640px;
    margin: 0 auto 32px;
}

.warranty-care__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

.warranty-care__card {
    border: 1px solid #e8e8e8;
    padding: 26px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.warranty-care__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.warranty-care__icon {
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.warranty-care__card:hover .warranty-care__icon {
    color: #222;
}

.warranty-care__icon svg {
    width: 20px;
    height: 20px;
}

/* ========== REGISTRATION ========== */
.warranty-register {
    background: #fff;
    padding: 60px 40px 90px;
    border-top: 1px solid #eee;
    scroll-margin-top: 90px;
}

.warranty-register__head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.warranty-register__needs {
    max-width: 760px;
    margin: 0 auto 44px;
    font-size: 0.8rem;
    font-weight: 300;
    color: #777;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    padding: 14px 22px;
    line-height: 1.7;
}

.warranty-register__needs strong {
    font-weight: 600;
    color: #222;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.68rem;
    margin-right: 6px;
}

.warranty-register__needs span {
    color: #bbb;
    margin: 0 6px;
}

.warranty-register__intro {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.8;
    color: #666;
}


/* ========== FORM ========== */
.warranty-form {
    max-width: 760px;
    margin: 0 auto;
}

.warranty-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.warranty-form__section {
    border: none;
    padding: 0;
    margin: 0 0 48px;
    min-width: 0;
}

.warranty-form__legend {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #222;
    padding: 0 0 14px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e8e8e8;
    width: 100%;
}

.warranty-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.warranty-form__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    min-width: 0;
}

.warranty-form__field label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 8px;
}

.warranty-form__field label span[aria-hidden],
.warranty-form__check span span[aria-hidden] {
    color: #e3131b;
}

.warranty-form__hint {
    text-transform: none;
    letter-spacing: 0.3px;
    color: #999;
    font-weight: 300;
}

.warranty-form input[type="text"],
.warranty-form input[type="email"],
.warranty-form input[type="tel"],
.warranty-form input[type="date"],
.warranty-form select {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #222;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 13px 16px;
    width: 100%;
    min-height: 48px;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.warranty-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.warranty-form select:disabled {
    color: #999;
    background-color: #fafafa;
    cursor: not-allowed;
}

.warranty-form input::placeholder {
    color: #aaa;
}

.warranty-form input:focus,
.warranty-form select:focus {
    border-color: #222;
}

.warranty-form input[type="date"] {
    color: #222;
}

/* Validation state (only after user has attempted submit) */
.warranty-form.was-validated input:invalid,
.warranty-form.was-validated select:invalid {
    border-color: #e3131b;
}

/* Checkboxes */
.warranty-form__check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    cursor: pointer;
}

.warranty-form__check input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #222;
    cursor: pointer;
}

.warranty-form__check > span {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: #555;
}

.warranty-form__check a {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Submit */
.warranty-form__submit {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.warranty-form__submit .btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.warranty-form__required {
    font-size: 0.75rem;
    font-weight: 300;
    color: #999;
}

.warranty-form__error {
    font-size: 0.85rem;
    font-weight: 300;
    color: #b3121a;
    background: #fdf2f2;
    border: 1px solid #f3c6c8;
    padding: 14px 18px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ========== SUCCESS ========== */
/* Form folds away on success */
.warranty-form.is-collapsing {
    overflow: hidden;
    opacity: 0;
    transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.warranty-success {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    text-align: center;
    scroll-margin-top: 110px;
    outline: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.warranty-success.is-visible {
    opacity: 1;
    transform: none;
}

.warranty-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    color: #222;
}

.warranty-success__icon svg {
    width: 72px;
    height: 72px;
    overflow: visible;
}

/* Circle draws round, then the tick draws in */
.warranty-success__circle {
    stroke-dasharray: 195;
    stroke-dashoffset: 195;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.warranty-success__tick {
    stroke-width: 2;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
}

.warranty-success.is-visible .warranty-success__circle {
    animation: warranty-draw 0.6s ease-out 0.15s forwards;
}

.warranty-success.is-visible .warranty-success__tick {
    animation: warranty-draw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

@keyframes warranty-draw {
    to { stroke-dashoffset: 0; }
}

.warranty-success__label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px !important;
}

.warranty-success__number {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #222;
    margin-bottom: 24px !important;
    user-select: all;
}

@media (prefers-reduced-motion: reduce) {
    .warranty-form.is-collapsing,
    .warranty-success {
        transition: none;
    }
    .warranty-success__circle,
    .warranty-success__tick {
        animation: none !important;
        stroke-dashoffset: 0;
    }
}

.warranty-success h2 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 18px;
}

.warranty-success p {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.9;
    color: #666;
    margin-bottom: 36px;
}

.warranty-success__links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .warranty-intro {
        padding: 130px 20px 20px;
    }

    .warranty-intro h1 {
        font-size: 1.45rem;
        letter-spacing: 4px;
    }

    .warranty-overview {
        padding: 30px 20px 50px;
    }

    .warranty-overview__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .warranty-glance {
        padding: 28px 24px 32px;
    }

    .warranty-exclusions {
        columns: 1;
    }

    .warranty-covered {
        padding: 50px 20px;
    }

    .warranty-covered__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .warranty-care {
        padding: 50px 20px;
    }

    .warranty-care__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .warranty-register {
        padding: 50px 20px 70px;
    }

    .warranty-success__number {
        font-size: 1.25rem;
        letter-spacing: 3px;
    }

            .warranty-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .warranty-form__section {
        margin-bottom: 36px;
    }

    .warranty-form__submit .btn {
        width: 100%;
        text-align: center;
    }
}
