﻿/* =========================================================
   BROCHURE REQUEST FORM
   Scoped styles: these rules only affect .brochure-request-section
   Colour palette matches the Stairlifts Near Me page styling.
   ========================================================= */

.brochure-request-section {
    --brochure-navy: #102F5B;
    --brochure-blue: #24566B;
    --brochure-pale-blue: #EAF4FB;
    --brochure-icon-blue: #DDEFF9;
    --brochure-gold: #FFB000;
    --brochure-border: #D5E3ED;
    --brochure-text: #17283D;

    width: 100%;
    margin: 30px 0;
    padding: 28px;
    box-sizing: border-box;
    border-radius: 28px;
    background: linear-gradient(135deg, #EAF5FC 0%, #F5F9FC 58%, #E2F0FA 100%);
    color: var(--brochure-text);
    font-family: "Nunito", Arial, sans-serif;
}

.brochure-request-section *,
.brochure-request-section *::before,
.brochure-request-section *::after {
    box-sizing: border-box;
}

/* Intro area and angled brochure image */
.brochure-request-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
    margin: 0 12px 28px;
}

.brochure-request-copy {
    min-width: 0;
}

/*
.brochure-request-copy h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--brochure-navy);
    font-family: "Nunito", Arial, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.12;
}
*/

.brochure-request-copy h2::after {
    content: "";
    display: block;
    width: 68px;
    height: 6px;
    margin-top: 13px;
    border-radius: 4px;
    background: var(--brochure-gold);
}

.brochure-request-copy > p {
    max-width: 760px;
    margin: 0;
    color: #17283D;
    font-size: 1.08rem;
    line-height: 1.55;
}

.brochure-cover-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 8px 10px 18px;
    perspective: 900px;
}

.brochure-cover {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 15px 24px rgba(16, 47, 91, 0.27),
                0 4px 7px rgba(16, 47, 91, 0.14);
    transform: rotate(6deg);
    transform-origin: center center;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.brochure-cover-wrap:hover .brochure-cover {
    transform: rotate(2deg) translateY(-3px);
    box-shadow: 0 19px 28px rgba(16, 47, 91, 0.30),
                0 5px 9px rgba(16, 47, 91, 0.16);
}

/* Three short benefit points */
.brochure-benefits {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 24px;
    max-width: 760px;
}

.brochure-benefit {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 0 15px;
    color: var(--brochure-navy);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
}

.brochure-benefit:first-child {
    padding-left: 0;
}

.brochure-benefit + .brochure-benefit {
    border-left: 2px solid #CFE0ED;
}

.brochure-benefit-icon,
.brochure-field-icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--brochure-navy);
    background: linear-gradient(145deg, #FFFFFF, var(--brochure-icon-blue));
}

.brochure-benefit-icon {
    border: 2px solid #FFFFFF;
}

.brochure-benefit-icon svg,
.brochure-field-icon svg {
    width: 29px;
    height: 29px;
}

/* White form card */
.brochure-form-card {
    padding: 25px 30px 28px;
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 25px;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 9px 24px rgba(39, 82, 119, 0.08);
}

.brochure-required-note {
    margin: 0 0 22px;
    color: var(--brochure-navy);
    font-size: 0.98rem;
}

.brochure-required-star {
    color: #D92727;
    font-weight: 900;
}

.brochure-optional {
    color: #63758A;
    font-size: 0.88em;
    font-weight: 400;
}

/* Label / field rows */
.brochure-form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brochure-field {
    display: grid;
    grid-template-columns: 54px minmax(220px, 250px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.brochure-field-tall {
    align-items: start;
}

.brochure-field-tall .brochure-field-icon {
    margin-top: 2px;
}

.brochure-field-label {
    min-width: 0;
}

.brochure-label {
    display: block;
    margin: 0;
    color: var(--brochure-navy);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.brochure-field-control {
    min-width: 0;
}

.brochure-input,
.brochure-select,
.brochure-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 11px 14px;
    border: 1.5px solid #AAB8C6;
    border-radius: 10px;
    outline: none;
    background: #FFFFFF;
    color: #17283D;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.35;
    box-shadow: inset 0 1px 2px rgba(16, 47, 91, 0.05),
                0 2px 4px rgba(16, 47, 91, 0.035);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.brochure-input,
.brochure-select {
    min-height: 46px;
}

.brochure-select {
    width: 180px;
    max-width: 100%;
    cursor: pointer;
}

.brochure-textarea {
    min-height: 88px;
    resize: vertical;
}

.brochure-input:focus,
.brochure-select:focus,
.brochure-textarea:focus {
    border-color: #4B8BB8;
    box-shadow: 0 0 0 3px rgba(75, 139, 184, 0.16);
}

.brochure-input:required:invalid,
.brochure-textarea:required:invalid {
    /* Keep native validation; do not show red until browser validation occurs. */
}

/* Keep the existing anti-spam honeypot out of sight and out of layout */
.brochure-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Submit button */
.brochure-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.brochure-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    min-height: 58px;
    padding: 14px 30px;
    border: 1px solid #E5A000;
    border-radius: 999px;
    background: linear-gradient(180deg, #FFD044 0%, #FFB000 100%);
    color: var(--brochure-navy);
    font-family: "Nunito", Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 0 #D99600, 0 9px 15px rgba(16, 47, 91, 0.13);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.brochure-submit-button:hover {
    filter: brightness(1.03);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #D99600, 0 12px 18px rgba(16, 47, 91, 0.16);
}

.brochure-submit-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #D99600, 0 4px 8px rgba(16, 47, 91, 0.12);
}

.brochure-submit-button:focus-visible {
    outline: 3px solid #24566B;
    outline-offset: 4px;
}

/* Tablet */
@media (max-width: 900px) {
    .brochure-request-section {
        padding: 22px;
    }

    .brochure-request-intro {
        grid-template-columns: minmax(0, 1fr) 165px;
        gap: 18px;
        margin-right: 5px;
        margin-left: 5px;
    }

    .brochure-cover {
        max-width: 155px;
    }

    .brochure-benefit {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 0.9rem;
    }

    .brochure-benefit-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .brochure-benefit-icon svg {
        width: 25px;
        height: 25px;
    }

    .brochure-field {
        grid-template-columns: 48px minmax(175px, 215px) minmax(0, 1fr);
        gap: 11px;
    }

    .brochure-field-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }
}

/* Mobile: stack the brochure, labels and controls */
@media (max-width: 650px) {
    .brochure-request-section {
        margin: 22px 0;
        padding: 17px 13px;
        border-radius: 20px;
    }

    .brochure-request-intro {
        grid-template-columns: minmax(0, 1fr) 105px;
        gap: 10px;
        align-items: start;
        margin: 0 3px 20px;
    }

    .brochure-request-copy h2 {
        font-size: 1.65rem;
    }

    .brochure-request-copy > p {
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .brochure-cover-wrap {
        padding: 12px 3px 12px 0;
    }

    .brochure-cover {
        max-width: 105px;
        transform: rotate(5deg);
    }

    .brochure-benefits {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 18px;
    }

    .brochure-benefit,
    .brochure-benefit:first-child {
        flex: none;
        padding: 0;
        border: 0;
        font-size: 0.9rem;
    }

    .brochure-benefit br {
        display: none;
    }

    .brochure-benefit-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .brochure-benefit-icon svg {
        width: 22px;
        height: 22px;
    }

    .brochure-form-card {
        padding: 19px 15px 22px;
        border-radius: 17px;
    }

    .brochure-required-note {
        margin-bottom: 18px;
        font-size: 0.9rem;
    }

    .brochure-form-grid {
        gap: 17px;
    }

    .brochure-field {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 7px 11px;
        align-items: center;
    }

    .brochure-field-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .brochure-field-icon svg {
        width: 23px;
        height: 23px;
    }

    .brochure-field-label {
        grid-column: 2;
        grid-row: 1;
    }

    .brochure-field-control {
        grid-column: 2;
        grid-row: 2;
    }

    .brochure-label {
        font-size: 0.95rem;
    }

    .brochure-input,
    .brochure-select,
    .brochure-textarea {
        font-size: 16px; /* Avoids iOS zoom on focus */
    }

    .brochure-select {
        width: 100%;
    }

    .brochure-submit-button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        padding: 13px 18px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brochure-cover,
    .brochure-submit-button {
        transition: none;
    }
}
