﻿/* =========================================================
   VIP STATIC CARAVAN FINDER - NEW SKIN
   Based on the new Nationwide/Caravans Website CSS skin.
   All rules are scoped to this control so existing DNN pages
   are not affected.
   ========================================================= */

.vip-static-intro {
    padding: 30px 0 10px;
}

    .vip-static-intro .section-title {
        text-align: center;
        margin-bottom: 25px;
    }

        .vip-static-intro .section-title > span {
            display: block;
            font-size: 14px;
            line-height: 1.3;
            margin-bottom: 5px;
        }

        .vip-static-intro .section-title h2 {
            margin: 0 0 12px;
            font-size: 30px;
            line-height: 1.25;
            font-weight: 800;
            color: #333;
        }

    .vip-static-intro .section-details {
        font-size: 14px;
        line-height: 1.6;
        color: #333;
    }

        .vip-static-intro .section-details p:last-child {
            margin-bottom: 0;
        }

.vip-static-form {
    padding-bottom: 50px;
}

    .vip-static-form,
    .vip-static-form * {
        box-sizing: border-box;
    }

        /* Step headings - same light blue treatment used by the new UI */
        .vip-static-form > .alert.alert-info {
            position: relative;
            background: #fff;
            border: 0;
            border-left: 4px solid #DC3103;
            border-radius: 0;
            color: #2c3e50;
            padding: 13px 16px;
            margin: 30px 0 20px;
            font-size: 16px;
            line-height: 1.4;
            font-weight: 700;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
        }

        /* Success message */
        .vip-static-form .alert-success {
            border-radius: 3px;
            margin-bottom: 20px;
        }

        /* Rows */
        .vip-static-form .form-group.row {
            margin-left: -10px;
            margin-right: -10px;
            margin-bottom: 12px;
        }

            .vip-static-form .form-group.row > [class*="col-"] {
                padding-left: 10px;
                padding-right: 10px;
            }

        /* Labels */
        .vip-static-form label {
            display: block;
            margin: 0 0 7px;
            padding: 0 !important;
            color: #333;
            font-size: 13px;
            line-height: 1.4;
            font-weight: 600;
        }

        .vip-static-form .red {
            color: #e22b0a;
        }

        /* Inputs */
        .vip-static-form .form-control,
        .vip-static-form select.form-control,
        .vip-static-form textarea.form-control {
            width: 100%;
            max-width: 100%;
            min-height: 42px;
            padding: 9px 12px;
            border: 1px solid #d8d8d8;
            border-radius: 4px;
            background: #fff;
            color: #333;
            font-size: 14px;
            line-height: 1.4;
            box-shadow: none;
            transition: border-color .2s ease, box-shadow .2s ease;
        }

        .vip-static-form textarea.form-control {
            min-height: 90px;
            resize: vertical;
        }

        .vip-static-form .form-control:focus {
            border-color: #DC3103;
            box-shadow: 0 0 0 2px rgba(220, 49, 3, .10);
            outline: none;
        }

        /* Radio buttons */
        .vip-static-form .radio-list,
        .vip-static-form .radio-inline,
        .vip-static-form input[type="radio"] {
            position: relative;
        }

            .vip-static-form .radio-list label,
            .vip-static-form .radio-inline label {
                display: inline-block;
            }

        .vip-static-form input[type="radio"] {
            margin-right: 4px;
        }

        /* Horizontal budget fields */
        .vip-static-form .budget-fields {
            display: flex;
            gap: 10px;
            width: 100%;
        }

            .vip-static-form .budget-fields .form-control {
                flex: 1 1 50%;
            }

        .vip-static-form input[type="radio"] {
            accent-color: #DC3103;
            margin-right: 5px;
        }

            .vip-static-form input[type="radio"] + label {
                display: inline-block;
                margin-right: 15px;
                font-size: 13px;
                font-weight: 400;
            }

        /* Checkbox lists generated by ASP.NET CheckBoxList */
        .vip-static-form .checkboxlist_nowrap {
            width: 100%;
            margin: 0 !important;
            padding: 0;
            border: 0;
            table-layout: fixed;
        }

            .vip-static-form .checkboxlist_nowrap td {
                vertical-align: middle;
                padding: 6px 15px 6px 0;
                line-height: 1.4;
            }

            .vip-static-form .checkboxlist_nowrap label {
                display: inline !important;
                margin: 0 0 0 6px;
                color: #555;
                font-size: 13px;
                line-height: 1.4;
                font-weight: 400;
                cursor: pointer;
            }

            .vip-static-form .checkboxlist_nowrap input[type="checkbox"] {
                width: 15px;
                height: 15px;
                margin: 0;
                vertical-align: middle;
                accent-color: #DC3103;
            }

        /* Improve spacing around the main checkbox groups */
        .vip-static-form [id$="ChooseHolidayHomeList"],
        .vip-static-form [id$="chkCaravanFeatureList"],
        .vip-static-form [id$="chkRegionList"],
        .vip-static-form [id$="chkCarvanParkFacilityList"] {
            margin-top: 2px !important;
        }

        /* Section separators */
        .vip-static-form hr {
            margin: 24px 0;
            border: 0;
            border-top: 1px solid #eeeeee;
        }

        /* Step 4 information text */
        .vip-static-form .suitable-home-info {
            color: #bc2500;
            font-size: 14px;
            line-height: 1.55;
            margin: 0;
        }

        /* Matching options */
        .vip-static-form .matching-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

            .vip-static-form .matching-options label {
                margin: 0;
            }

            .vip-static-form .matching-options .chklist {
                display: inline-flex;
                align-items: center;
                width: auto;
                min-height: 38px;
                margin: 0 !important;
                padding: 8px 12px;
                background: #fff;
                border: 1px solid #ddd;
                border-radius: 4px;
                color: #444;
                font-size: 12px;
                line-height: 1.3;
                font-weight: 500;
                transition: all .2s ease;
            }

                .vip-static-form .matching-options .chklist:hover {
                    border-color: #DC3103;
                    background: #fff8f6;
                }

                .vip-static-form .matching-options .chklist input[type="checkbox"] {
                    margin-right: 7px !important;
                    accent-color: #DC3103;
                }

        /* Captcha / terms */
        .vip-static-form .captcha-terms {
            display: flex;
            align-items: flex-start;
            gap: 25px;
        }

        .vip-static-form .captcha-wrap {
            flex: 0 0 304px;
        }

        .vip-static-form .terms-wrap {
            flex: 1 1 auto;
        }

            .vip-static-form .terms-wrap p {
                margin: 0;
                color: #bc2500;
                font-size: 13px;
                line-height: 1.45;
            }

        /* Action buttons */
        .vip-static-form .form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            padding-top: 10px;
        }

            .vip-static-form .form-actions .button,
            .vip-static-form .form-actions .btn {
                min-width: 100px;
                min-height: 42px;
                padding: 10px 22px !important;
                margin: 0 !important;
                border: 0;
                border-radius: 4px;
                font-size: 13px;
                font-weight: 600;
                cursor: pointer;
                transition: all .2s ease;
            }

                .vip-static-form .form-actions .button.red {
                    background: #DC3103;
                    color: #fff;
                }

                    .vip-static-form .form-actions .button.red:hover {
                        background: #b92702;
                    }

                .vip-static-form .form-actions .button.default {
                    background: #666;
                    color: #fff;
                }

                    .vip-static-form .form-actions .button.default:hover {
                        background: #444;
                    }

        /* Validators */
        .vip-static-form span[style*="color:Red"],
        .vip-static-form span[style*="color: Red"] {
            display: block;
            margin-top: 4px;
            font-size: 11px;
            line-height: 1.3;
        }

        /* Keep hidden matching list hidden */
        .vip-static-form [id$="chkMatchingHolidayHomeList"] {
            display: none !important;
        }

        .vip-static-form .form-group.row {
            display: flex;
            flex-wrap: wrap;
        }

            .vip-static-form .form-group.row > .col-md-4 {
                width: 33.333333%;
                flex: 0 0 33.333333%;
            }

            .vip-static-form .form-group.row > .col-md-8 {
                width: 66.666667%;
                flex: 0 0 66.666667%;
            }

            .vip-static-form .form-group.row > .col-md-12 {
                width: 100%;
                flex: 0 0 100%;
            }

/* =========================================================
   TABLET
   ========================================================= */
@media screen and (max-width: 1024px) {

    .vip-static-intro .section-title h2 {
        font-size: 28px;
    }

    .vip-static-form .checkboxlist_nowrap td {
        padding-right: 8px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media screen and (max-width: 767px) {

    .vip-static-intro {
        padding: 20px 0 5px;
    }

        .vip-static-intro .container,
        .vip-static-form.container {
            width: 100% !important;
            max-width: 100% !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        .vip-static-intro .section-title {
            margin-bottom: 18px;
        }

            .vip-static-intro .section-title > span {
                font-size: 12px;
            }

            .vip-static-intro .section-title h2 {
                font-size: 23px;
                line-height: 1.25;
            }

        .vip-static-intro .section-details {
            font-size: 13px;
            line-height: 1.55;
        }

    .vip-static-form {
        padding-bottom: 35px;
    }

        .vip-static-form > .alert.alert-info {
            margin-top: 15px;
            margin-bottom: 10px;
            padding: 9px 10px;
            font-size: 12px;
        }

        .vip-static-form .form-group.row {
            margin-left: -5px;
            margin-right: -5px;
        }

            .vip-static-form .form-group.row > [class*="col-"] {
                padding-left: 5px;
                padding-right: 5px;
                margin-bottom: 12px;
            }

        .vip-static-form label {
            font-size: 11px;
        }

        .vip-static-form .checkboxlist_nowrap td {
            padding: 4px 5px 4px 0;
        }

        .vip-static-form .checkboxlist_nowrap label {
            font-size: 11px;
            margin-left: 4px;
        }

        /* =====================================================
       MOBILE CHECKBOX LISTS
       Every checkbox must appear on its own row.
       ASP.NET CheckBoxList renders a table, so force each
       generated cell to behave as a full-width block.
       ===================================================== */

        .vip-static-form .checkboxlist_nowrap {
            display: block !important;
            width: 100% !important;
            table-layout: auto !important;
        }

            .vip-static-form .checkboxlist_nowrap tbody,
            .vip-static-form .checkboxlist_nowrap tr {
                display: block !important;
                width: 100% !important;
            }

            .vip-static-form .checkboxlist_nowrap td {
                display: block !important;
                width: 100% !important;
                padding: 5px 0 !important;
                vertical-align: middle;
            }

                .vip-static-form .checkboxlist_nowrap td label {
                    display: inline !important;
                    font-size: 11px;
                    line-height: 1.35;
                    margin-left: 5px;
                }

                .vip-static-form .checkboxlist_nowrap td input[type="checkbox"] {
                    display: inline-block;
                    vertical-align: middle;
                    margin: 0 !important;
                }


        /* =====================================================
       MOBILE FORM FIELDS
       Every textbox / dropdown field must appear on its
       own row instead of 3 columns.
       ===================================================== */

        .vip-static-form .form-group.row > .col-md-4,
        .vip-static-form .form-group.row > .col-md-8,
        .vip-static-form .form-group.row > .col-md-12 {
            width: 100% !important;
            flex: 0 0 100% !important;
            max-width: 100% !important;
        }

        .vip-static-form .form-group.row > .col-md-4,
        .vip-static-form .form-group.row > .col-md-8 {
            margin-bottom: 12px;
        }

        .vip-static-form .form-control,
        .vip-static-form select.form-control,
        .vip-static-form textarea.form-control {
            width: 100% !important;
            max-width: 100% !important;
            display: block;
        }


        /* =====================================================
       MOBILE BUDGET
       MIN BUDGET and MAX BUDGET on separate rows.
       ===================================================== */

        .vip-static-form .budget-fields {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

            .vip-static-form .budget-fields .form-control {
                width: 100% !important;
                flex: 0 0 auto;
                min-width: 0;
            }

        .vip-static-form .suitable-home-info {
            font-size: 12px;
            line-height: 1.5;
        }

        .vip-static-form .matching-options {
            display: block;
        }

            .vip-static-form .matching-options .chklist {
                display: flex;
                width: 100%;
                margin-bottom: 7px !important;
                font-size: 11px;
            }

        .vip-static-form .captcha-terms {
            display: block;
        }

        .vip-static-form .captcha-wrap {
            width: 100%;
            margin-bottom: 15px;
        }

        .vip-static-form .terms-wrap {
            width: 100%;
        }

        .vip-static-form .form-actions {
            text-align: center;
        }

            .vip-static-form .form-actions .button,
            .vip-static-form .form-actions .btn {
                width: auto;
                min-width: 90px;
                margin: 0 4px !important;
            }
}

@media screen and (max-width: 575px) {

    .vip-static-form .form-actions .button,
    .vip-static-form .form-actions .btn {
        width: 100%;
        margin: 5px 0 !important;
    }
}
