/* =========================
   Layout Containers
========================= */

.brochure-container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 15px;
}

.brochure-container.blue {
    background: #1f388a;
    color: #000000;
}

.brochure-container.grey {
    background: #f0f0f5;
}

.brochure-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brochure-flex {
    display: flex;
}

.brochure-gap-15 {
    gap: 15px;
}

.brochure-gap-20 {
    gap: 20px;
}

/* =========================
   Headings & Text
========================= */

.brochure-title {
    font-size: 28px;
    margin: 0 0 10px 0;
}

.brochure-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.brochure-section-title {
    color: #1e3483;
    margin: 0 0 20px 0;
    font-size: 28px;
}

.brochure-white-text {
    color: #ffffff;
}

.brochure-small-text {
    font-size: 15px;
}

/* =========================
   Forms
========================= */

.brochure-form {
    display: flex;
    gap: 15px;
}

.brochure-form-input {
    width:100% !important; 
    margin-top:5px !important; 
    padding:12px 15px !important; 
    border-radius:25px !important; 
    border:none !important; 
    font-size:15px !important;
    color: #000 !important;
}

.brochure-form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 25px;
    border: none;
    font-size: 15px;
    outline: none;
    color: #000 ;
}

.brochure-form-input.large {
    width: 350px;
}

.brochure-form-postcode {
    width:48%;
    margin-bottom:25px;
}

.brochure-form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.brochure-form-col-48 {
    width: 48%;
}

.brochure-form-label {
    color: #ffffff;
    font-size: 15px;
}

/* =========================
   Buttons & Links
========================= */

.brochure-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.brochure-btn-primary {
    background: #ffffff;
    color: #1e3483;
}

.brochure-btn-secondary {
    background: #1e3483;
    color: #ffffff;
}

.brochure-btn-disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* =========================
   Brochure Cards
========================= */

.brochure-card {
    width: 100%;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
}

.brochure-image {
    width: 20%;
    height: auto;
    border-radius: 5px;
}

.brochure-description {
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
}

.brochure-actions {
    margin-top: 100px;
}

.brochure-actions a {
    color: #fff !important;
}

/* =========================
   Checkboxes
========================= */

.brochure-checkbox-row {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 15px;

}

.brochure-checkbox-row input {
    margin-right: 10px;
    transform: scale(1.5);
}

/* =========================
   Error Messages
========================= */

.brochure-form-errors {
    background: #ffdddd;
    border-left: 5px solid #cc0000;
    padding: 15px;
    margin: 40px auto;
    border-radius: 10px;
    max-width: 1100px;
    width: 90%;
}

.brochure-form-errors strong {
    color: #cc0000;
}

.brochure-form-errors ul {
    color: #333;
    padding-left: 20px;
    margin-top: 10px;
}

/* =========================
   Utility
========================= */

.brochure-hidden {
    display: none;
}

.brochure-text-right {
    text-align: right;
}

.brochure-form-max-width {
    max-width:60%;
}

.brochure-form-submit-button {
    background:#ffffff;
    color:#1e3483;
    padding:12px 25px;
    border:none;
    border-radius:25px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.brochure-submit-and-privacy {
    display:flex; 
    justify-content:flex-end; 
    align-items:center !important; 
    gap:20px;
}

/* =========================
   Mobile Styles
========================= */

@media (max-width: 768px) {

    .brochure-title {
        font-size: 28px;
        margin: 0 0 10px 0;
        line-height: 30px;
    }

    .brochure-submit-and-privacy {
        display:flex; 
        justify-content:flex-end; 
        align-items: stretch !important; 
        gap:20px;
    }

    .brochure-form-submit-button {
        background:#ffffff;
        color:#1e3483;
        padding:12px 25px;
        border:none;
        border-radius:25px;
        font-size:16px;
        font-weight:bold;
        cursor:pointer;
    }

    .brochure-form-max-width {
        max-width:95%;
    }

    /* Top postcode search form */
    .brochure-container form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .brochure-container form input[type="text"] {
        width: 100% !important;
    }

    .brochure-container form button {
        width: 100%;
        text-align: center;
    }

    /* Containers */
    .brochure-container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }

    /* Hero section */
    .brochure-flex-between {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .brochure-flex-between img {
        display: none; /* Hide brochure stack image on mobile */
    }

    /* Headings */
    .brochure-title,
    .brochure-section-title {
        font-size: 22px;
    }

    .brochure-subtitle {
        font-size: 14px;
    }

    /* Forms */
    .brochure-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .brochure-form-col-48,
    .brochure-form-postcode {
        width: 100%;
    }

    .brochure-form-input,
    .brochure-form-input.large {
        width: 100% !important;
    }

    /* Buttons */
    .brochure-btn {
        width: 100%;
        text-align: center;
    }

    .brochure-actions {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Brochure cards */
    .brochure-card {
        flex-direction: column;
        text-align: center;
    }

    .brochure-card img {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .brochure-description {
        font-size: 14px;
    }

    /* Checkbox rows */
    .brochure-checkbox-row {
        align-items: flex-start;
        font-size: 14px;
    }

    .brochure-checkbox-row input {
        transform: scale(1.3);
        margin-top: 4px;
    }

    /* Footer submit row */
    .brochure-container.blue > div:last-child {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    /* Error messages */
    #form-errors {
        width: 95%;
        margin: 20px auto;
    }
}
