/* ==================================================
   QUESTIONNAIRE
================================================== */

.questionnaire-section {
    padding: 70px 0 100px;
    background: #f5f5f3;
}

.questionnaire-section .container {
    max-width: 1000px;
    margin: 0 auto;
}


/* ==================================================
   HERO
================================================== */

.questionnaire-hero {

    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    color: #efefef;

    background-image:
        linear-gradient(
            rgba(25, 25, 25, 0.68),
            rgba(25, 25, 25, 0.68)
        ),
        url('../images/Hideaway.jpeg');

    background-size: cover;

    background-position: center;

}


/* ==================================================
   HERO CONTENT
================================================== */

.questionnaire-hero .container {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    text-align: center;

}


/* ==================================================
   EYEBROW
================================================== */

.questionnaire-hero .eyebrow {

    margin: 0 0 15px;

    color: #cc9a66;

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;

}


/* ==================================================
   TITLE
================================================== */

.questionnaire-hero h1 {

    margin: 0 0 25px;

    font-size:
        clamp(
            2.5rem,
            6vw,
            4.5rem
        );

    line-height: 1.05;

    color: #fff;

}


/* ==================================================
   INTRO
================================================== */

.questionnaire-intro {

    max-width: 700px;

    margin: 12px auto;

    font-size: 1.1rem;

    line-height: 1.75;

    color:
        rgba(
            239,
            239,
            239,
            0.92
        );

}


/* ==================================================
   HERO NOTE
================================================== */

.questionnaire-hero-note {

    display: inline-block;

    margin-top: 30px;

    padding: 14px 22px;

    border:
        1px solid
        rgba(
            204,
            154,
            102,
            0.65
        );

    border-radius: 8px;

    background:
        rgba(
            20,
            20,
            20,
            0.35
        );

    color: #fff;

}

@media screen and (max-width: 1090px) {

    .questionnaire-hero {

        min-height: 600px;

        background-image:
            linear-gradient(
                rgba(25, 25, 25, 0.68),
                rgba(25, 25, 25, 0.68)
            ),
            url('../images/hideaway_2.jpg');

        background-position: center;

    }

}


/* ==================================================
   TABLETS
================================================== */

@media screen and (max-width: 992px) {

    .questionnaire-hero {

        min-height: 600px;

        background-image:
            linear-gradient(
                rgba(25, 25, 25, 0.68),
                rgba(25, 25, 25, 0.68)
            ),
            url('../images/Rockwood 199.jpeg');

        background-position: center;

    }

}


/* ==================================================
   SMALLER TABLETS / PHONES
================================================== */

@media screen and (max-width: 768px) {

    .questionnaire-hero {

        min-height: 600px;

        background-image:
            linear-gradient(
                rgba(25, 25, 25, 0.70),
                rgba(25, 25, 25, 0.70)
            ),
            url('../images/Rockwood 199.jpeg');

        background-position: center;

    }

}


/* ==================================================
   SMALL PHONES
================================================== */

@media screen and (max-width: 480px) {

    .questionnaire-hero {

        min-height: 600px;

        background-image:
            linear-gradient(
                rgba(25, 25, 25, 0.72),
                rgba(25, 25, 25, 0.72)
            ),
            url('../images/Haven Ultra.jpeg');

        background-position: center;

    }

}


/* ==================================================
   FORM
================================================== */

.questionnaire-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* ==================================================
   CARDS
================================================== */

.questionnaire-card {
    padding: 38px;
    background: #fff;
    border: 1px solid #e1e1df;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.questionnaire-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
}

.questionnaire-number {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #cc9a66;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.questionnaire-card-heading h2 {
    margin: 0 0 7px;
    color: #373737;
    font-size: 1.65rem;
}

.questionnaire-card-heading p {
    margin: 0;
    color: #777;
    line-height: 1.6;
}


/* ==================================================
   GRID
================================================== */

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

.questionnaire-grid .full-width {
    grid-column: 1 / -1;
}

.address-grid {
    margin-top: 12px;
    grid-template-columns: 2fr 1fr 1fr;
}


/* ==================================================
   FIELDS
================================================== */

.questionnaire-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.questionnaire-field label {
    color: #373737;
    font-weight: 600;
    line-height: 1.4;
}

.questionnaire-field label > span:not(.optional) {
    color: #b65c45;
}

.questionnaire-field .optional {
    margin-left: 5px;
    color: #888;
    font-size: 0.8rem;
    font-weight: 400;
}

.questionnaire-field input[type="text"],
.questionnaire-field input[type="email"],
.questionnaire-field input[type="tel"],
.questionnaire-field input[type="date"],
.questionnaire-field input[type="number"],
.questionnaire-field select,
.questionnaire-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d4d4d1;
    border-radius: 7px;
    background: #fff;
    color: #373737;
    font-family: inherit;
    font-size: 1rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.questionnaire-field textarea {
    min-height: 110px;
    resize: vertical;
}

.questionnaire-field input:focus,
.questionnaire-field select:focus,
.questionnaire-field textarea:focus {
    outline: none;
    border-color: #cc9a66;
    box-shadow: 0 0 0 3px rgba(204, 154, 102, 0.14);
}

.questionnaire-field input::placeholder,
.questionnaire-field textarea::placeholder {
    color: #aaa;
}

.field-note {
    color: #888;
    font-size: 0.82rem;
    line-height: 1.5;
}

.field-description {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ==================================================
   ADDRESS PREVIEW
================================================== */

.address-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.address-preview .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.address-preview .disabled {
    opacity: 0.45;
    pointer-events: none;
}


/* ==================================================
   BUTTONS
================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: #cc9a66;
    color: #fff;
}

.button-primary:hover {
    background: #b98450;
}

.button-secondary {
    background: #373737;
    color: #fff;
}

.button-secondary:hover {
    background: #4a4a4a;
}


/* ==================================================
   CHECKBOXES / RADIOS
================================================== */

.checkbox-row {
    margin-bottom: 14px;
}

.checkbox-label,
.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4b4b4b;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input,
.radio-group input,
.option-card input,
.addon-card input,
.roof-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #cc9a66;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 7px 0;
}


/* ==================================================
   CONDITIONAL SECTIONS
================================================== */

.conditional-details {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid #e4d5c5;
    border-radius: 10px;
    background: #faf7f3;
}

.conditional-details[hidden] {
    display: none !important;
}

.conditional-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e6e6e3;
}


/* ==================================================
   BUNKIE MODEL SELECTION
================================================== */

.questionnaire-field-full {
    grid-column: 1 / -1;
}

.bunkie-model-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}

.bunkie-model-column {
    padding: 22px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.bunkie-model-column h3 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #cc9a66;
    color: #373737;
    font-size: 1.1rem;
}

.bunkie-model-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
}

.bunkie-model-option:hover {
    background: rgba(204, 154, 102, 0.08);
}

.bunkie-model-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #cc9a66;
    cursor: pointer;
}

.bunkie-model-option span {
    color: #000 !important;
    font-size: 0.98rem;
    line-height: 1.4;
}

.questionnaire-help {
    margin: -8px 0 10px;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* ==================================================
   MOBILE
================================================== */

@media screen and (max-width: 700px) {

    .bunkie-model-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}


/* ==================================================
   FOUNDATION OPTIONS
================================================== */

.foundation-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.option-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.option-card:hover {
    border-color: #cc9a66;
    transform: translateY(-1px);
}

.option-card strong {
    display: block;
    margin-bottom: 5px;
    color: #373737;
}

.option-card p {
    margin: 8px 0 0;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.55;
}

.option-badge {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    background: #cc9a66;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.option-badge.muted {
    background: #777;
}


/* ==================================================
   FOUNDATION / GROUND SELECTION
================================================== */

/* Footing style cards */

.foundation-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.foundation-options .option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #373737;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.foundation-options .option-card:hover {
    border-color: #cc9a66;
    background: #fffcf9;
    transform: translateY(-1px);
}

.foundation-options .option-card input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #cc9a66;
    cursor: pointer;
}

.foundation-options .option-card strong {
    display: block;
    margin: 0;
    color: #373737;
    font-size: 1rem;
    line-height: 1.4;
}

.foundation-options .option-card:has(input:checked) {
    border-color: #cc9a66;
    background: #fffaf5;
    box-shadow: 0 0 0 2px rgba(204, 154, 102, 0.14);
}


/* Ground surface image selection */

.ground-surface-section {
    margin-top: 30px;
}

.ground-surface-section > label {
    display: block;
    margin-bottom: 8px;
    color: #373737;
    font-weight: 600;
    line-height: 1.4;
}

.ground-surface-help {
    margin: 0 0 16px;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ground-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.ground-option-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #373737;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.ground-option-card:hover {
    border-color: #cc9a66;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(55, 55, 55, 0.08);
}

.ground-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ground-option-card:has(input:checked) {
    border-color: #cc9a66;
    box-shadow:
        0 0 0 2px rgba(204, 154, 102, 0.16),
        0 5px 18px rgba(55, 55, 55, 0.08);
}

.ground-option-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e8e6;
}

.ground-option-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ground-option-label {
    display: block;
    padding: 12px 10px;
    color: #373737;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}


/* Optional site notes under ground selection */

.ground-notes {
    margin-top: 24px;
}


/* Mobile */

@media (max-width: 800px) {

    .foundation-options {
        grid-template-columns: 1fr;
    }

    .ground-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 550px) {

    .ground-options {
        grid-template-columns: 1fr;
    }

}


/* ==================================================
   DECK
================================================== */

.deck-details {
    margin-top: 20px;
}

.deck-details .questionnaire-grid {
    margin-top: 5px;
}


/* ==================================================
   ADD-ONS
================================================== */

.addon-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.addon-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.addon-card:hover {
    border-color: #cc9a66;
    background: #fffcf9;
}

.addon-card strong {
    display: block;
    margin-bottom: 7px;
}

.addon-card p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.55;
}


/* ==================================================
   PAINTING
================================================== */

.color-sample-link {
    color: #9a6d3f;
    font-weight: 600;
}

.color-sample-link:hover {
    text-decoration: underline;
}


/* ==================================================
   ROOF OPTIONS
================================================== */

.roof-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.roof-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.roof-option:hover {
    border-color: #cc9a66;
}


/* ==================================================
   SHINGLE UPLOAD
================================================== */

.shingle-upload-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
    padding: 25px;
    border: 2px dashed #d8c5b0;
    border-radius: 10px;
    background: #faf7f3;
}

.shingle-upload-box strong {
    display: block;
    margin-bottom: 5px;
    color: #373737;
}

.shingle-upload-box p {
    margin: 0;
    color: #777;
    line-height: 1.5;
}

.photo-upload-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 7px;
    background: #cc9a66;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.photo-upload-button:hover {
    background: #b98450;
}


/* ==================================================
   SITE PHOTO UPLOAD
================================================== */

.photo-upload-box {
    padding: 35px;
    border: 2px dashed #d8c5b0;
    border-radius: 12px;
    background: #faf7f3;
    text-align: center;
}

.photo-upload-icon {
    margin-bottom: 12px;
    font-size: 2.5rem;
}

.photo-upload-box h3 {
    margin: 0 0 10px;
    color: #373737;
}

.photo-upload-box p {
    max-width: 650px;
    margin: 7px auto;
    color: #777;
    line-height: 1.6;
}

.photo-upload-box .photo-upload-button {
    margin-top: 20px;
}


/* ==================================================
   PHOTO PREVIEWS
================================================== */

.photo-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
    text-align: left;
}

.photo-preview-card {
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.photo-preview-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.photo-preview-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
}

.photo-preview-info span {
    min-width: 0;
    overflow: hidden;
    color: #555;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-remove {
    flex-shrink: 0;
    padding: 4px 7px;
    border: 0;
    border-radius: 4px;
    background: #eee;
    color: #555;
    font-size: 0.72rem;
    cursor: pointer;
}

.photo-remove:hover {
    background: #ddd;
}


/* ==================================================
   SUBMIT
================================================== */

.questionnaire-submit-card {
    padding: 45px;
    border-radius: 14px;
    background: #373737;
    color: #efefef;
    text-align: center;
}

.questionnaire-submit-card h2 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.questionnaire-submit-card p {
    max-width: 650px;
    margin: 8px auto;
    color: rgba(239, 239, 239, 0.78);
    line-height: 1.65;
}

.questionnaire-submit {
    margin-top: 25px;
    min-width: 250px;
    border: 0;
    font-size: 1rem;
}

.questionnaire-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* ==================================================
   STATUS
================================================== */

.questionnaire-status {
    min-height: 24px;
    margin-top: 20px;
    font-weight: 600;
}

.questionnaire-status.success {
    color: #8fc58f;
}

.questionnaire-status.error {
    color: #ffaaa0;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 800px) {

    .questionnaire-section {
        padding: 45px 0 70px;
    }

    .questionnaire-hero {
        padding: 80px 0 65px;
    }

    .questionnaire-card {
        padding: 25px;
    }

    .questionnaire-grid,
    .foundation-options,
    .addon-options {
        grid-template-columns: 1fr;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .roof-options {
        grid-template-columns: 1fr;
    }

    .photo-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shingle-upload-box {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 550px) {

    .questionnaire-hero {
        padding: 65px 0 55px;
    }

    .questionnaire-hero h1 {
        font-size: 2.35rem;
    }

    .questionnaire-intro {
        font-size: 1rem;
    }

    .questionnaire-card {
        padding: 20px;
        border-radius: 10px;
    }

    .questionnaire-card-heading {
        gap: 12px;
    }

    .questionnaire-number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .questionnaire-card-heading h2 {
        font-size: 1.35rem;
    }

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .photo-upload-box {
        padding: 25px 18px;
    }

    .photo-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .questionnaire-submit-card {
        padding: 30px 20px;
    }

    .questionnaire-submit-card h2 {
        font-size: 1.6rem;
    }

    .questionnaire-submit {
        width: 100%;
        min-width: 0;
    }

}

