/* =========================================================
   N-TEX Vendor Registration Page
   Form styling based on the supplied reference screenshot.
   Scoped to .vendor-registration-page to avoid affecting
   the shared header, footer, or other website forms.
   ========================================================= */

.vendor-registration-page {
    --vendor-primary: #007CC3;
    --vendor-primary-dark: #005f96;
    --vendor-text: #172b3f;
    --vendor-muted: #8998a8;
    --vendor-border: #d2dfeb;
    --vendor-soft: #f3f6f8;
    --vendor-white: #ffffff;
    color: var(--vendor-text);
    background: #fff;
    font-family: inherit;
}

.vendor-registration-page *,
.vendor-registration-page *::before,
.vendor-registration-page *::after {
    box-sizing: border-box;
}

.vendor-registration-page .vendor-registration-hero {
    padding: 32px 0 42px;
    background: linear-gradient(120deg, #f0f8fd 0%, #ffffff 75%);
    border-bottom: 1px solid #e7f0f6;
}

.vendor-registration-page .vendor-registration-hero__inner,
.vendor-registration-page .vendor-registration-content {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.vendor-registration-page .vendor-registration-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    color: #647382;
    font-size: 14px;
    line-height: 1.5;
}

.vendor-registration-page .vendor-registration-breadcrumb a {
    color: var(--vendor-primary);
    text-decoration: none;
}

.vendor-registration-page .vendor-registration-breadcrumb a:hover {
    text-decoration: underline;
}

.vendor-registration-page .vendor-registration-hero h1 {
    margin: 0 0 12px;
    color: var(--vendor-text);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.2;
}

.vendor-registration-page .vendor-registration-hero p {
    max-width: 720px;
    margin: 0;
    color: #647382;
    font-size: 16px;
    line-height: 1.8;
}

.vendor-registration-page .vendor-registration-content {
    padding-top: 54px;
    padding-bottom: 70px;
}

.vendor-registration-page .vendor-registration-intro {
    margin-bottom: 28px;
}

.vendor-registration-page .vendor-registration-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--vendor-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.vendor-registration-page .vendor-registration-intro h2 {
    margin: 0 0 10px;
    color: var(--vendor-text);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.25;
}

.vendor-registration-page .vendor-registration-intro p {
    margin: 0;
    color: #647382;
    font-size: 16px;
    line-height: 1.7;
}

.vendor-registration-page .required {
    color: #f04452;
    font-weight: 600;
}

/* Form card */
.vendor-registration-page .vendor-registration-card {
    width: 100%;
    padding: 34px;
    background: var(--vendor-white);
    border: 1px solid var(--vendor-border);
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(24, 64, 91, 0.06);
}

.vendor-registration-page .vendor-registration-form {
    width: 100%;
    margin: 0;
}

/* Form sections */
.vendor-registration-page .vendor-registration-form fieldset {
    min-width: 0;
    margin: 0 0 32px;
    padding: 0;
    border: 0;
}

.vendor-registration-page .vendor-registration-form fieldset:last-of-type {
    margin-bottom: 26px;
}

.vendor-registration-page .vendor-registration-form legend {
    width: 100%;
    margin: 0 0 24px;
    padding: 0 0 12px;
    color: var(--vendor-text);
    border-bottom: 1px solid #e6edf3;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

/* Grid supports both .form-group and common Bootstrap form rows */
.vendor-registration-page .vendor-registration-form .form-grid,
.vendor-registration-page .vendor-registration-form .vendor-form-grid,
.vendor-registration-page .vendor-registration-form .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 28px;
    margin-right: 0;
    margin-left: 0;
}

.vendor-registration-page .vendor-registration-form .form-group,
.vendor-registration-page .vendor-registration-form .form-field,
.vendor-registration-page .vendor-registration-form .field-group,
.vendor-registration-page .vendor-registration-form .col,
.vendor-registration-page .vendor-registration-form [class*="col-"] {
    min-width: 0;
    margin-bottom: 0;
    padding-right: 0;
    padding-left: 0;
}

/* Labels match the large, dark labels in the reference */
.vendor-registration-page .vendor-registration-form label {
    display: block;
    margin: 0 0 12px;
    color: var(--vendor-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.vendor-registration-page .vendor-registration-form label .required,
.vendor-registration-page .vendor-registration-form .required-mark {
    color: #f04452;
}

/* Inputs, selects and textareas */
.vendor-registration-page .vendor-registration-form input[type="text"],
.vendor-registration-page .vendor-registration-form input[type="email"],
.vendor-registration-page .vendor-registration-form input[type="tel"],
.vendor-registration-page .vendor-registration-form input[type="number"],
.vendor-registration-page .vendor-registration-form input[type="url"],
.vendor-registration-page .vendor-registration-form input[type="password"],
.vendor-registration-page .vendor-registration-form input[type="date"],
.vendor-registration-page .vendor-registration-form select,
.vendor-registration-page .vendor-registration-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 18px 21px;
    color: var(--vendor-text);
    background-color: #fff;
    border: 1px solid var(--vendor-border);
    border-radius: 11px;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vendor-registration-page .vendor-registration-form input::placeholder,
.vendor-registration-page .vendor-registration-form textarea::placeholder {
    color: #8b9bad;
    opacity: 1;
}

.vendor-registration-page .vendor-registration-form select {
    padding-right: 46px;
    cursor: pointer;
}

.vendor-registration-page .vendor-registration-form select:disabled {
    color: #91a0af;
    background-color: #f3f6f8;
    border-color: #dce5ec;
    cursor: not-allowed;
}

.vendor-registration-page .vendor-registration-form textarea {
    min-height: 165px;
    resize: vertical;
}

.vendor-registration-page .vendor-registration-form input:focus,
.vendor-registration-page .vendor-registration-form select:focus,
.vendor-registration-page .vendor-registration-form textarea:focus {
    border-color: var(--vendor-primary);
    box-shadow: 0 0 0 3px rgba(0, 124, 195, 0.12);
}

.vendor-registration-page .vendor-registration-form input:disabled {
    color: #91a0af;
    background-color: #f3f6f8;
    cursor: not-allowed;
}

/* Wide fields: add class="full-width" to the field wrapper if needed */
.vendor-registration-page .vendor-registration-form .full-width,
.vendor-registration-page .vendor-registration-form .form-group.full-width,
.vendor-registration-page .vendor-registration-form .form-field.full-width,
.vendor-registration-page .vendor-registration-form .field-group.full-width {
    grid-column: 1 / -1;
}

/* Radio and checkbox controls */
.vendor-registration-page .vendor-registration-form .radio-group,
.vendor-registration-page .vendor-registration-form .radio-options,
.vendor-registration-page .vendor-registration-form .checkbox-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    min-height: 48px;
}

.vendor-registration-page .vendor-registration-form label:has(input[type="radio"]),
.vendor-registration-page .vendor-registration-form label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #33475a;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
}

.vendor-registration-page .vendor-registration-form input[type="radio"],
.vendor-registration-page .vendor-registration-form input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--vendor-primary);
    flex: 0 0 auto;
}

.vendor-registration-page .vendor-registration-form .radio-inline,
.vendor-registration-page .vendor-registration-form .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 18px 0 0;
    font-size: 17px;
}

/* Help text and validation */
.vendor-registration-page .vendor-registration-form small,
.vendor-registration-page .vendor-registration-form .help-text,
.vendor-registration-page .vendor-registration-form .form-text {
    display: block;
    margin-top: 7px;
    color: #718295;
    font-size: 14px;
    line-height: 1.5;
}

.vendor-registration-page .vendor-registration-form .error,
.vendor-registration-page .vendor-registration-form .error-message,
.vendor-registration-page .vendor-registration-form .invalid-feedback {
    display: block;
    margin-top: 7px;
    color: #d92d3a;
    font-size: 14px;
}

.vendor-registration-page .vendor-registration-form input.is-invalid,
.vendor-registration-page .vendor-registration-form select.is-invalid,
.vendor-registration-page .vendor-registration-form textarea.is-invalid {
    border-color: #d92d3a;
}

/* Submit button */
.vendor-registration-page .vendor-registration-form button[type="submit"],
.vendor-registration-page .vendor-registration-form input[type="submit"],
.vendor-registration-page .vendor-registration-form .submit-btn,
.vendor-registration-page .vendor-registration-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 4px 0 0;
    padding: 15px 30px;
    color: #fff;
    background: var(--vendor-primary);
    border: 1px solid var(--vendor-primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vendor-registration-page .vendor-registration-form button[type="submit"]:hover,
.vendor-registration-page .vendor-registration-form input[type="submit"]:hover,
.vendor-registration-page .vendor-registration-form .submit-btn:hover,
.vendor-registration-page .vendor-registration-form .btn-submit:hover {
    background: var(--vendor-primary-dark);
    border-color: var(--vendor-primary-dark);
}

.vendor-registration-page .vendor-registration-form button[type="submit"]:focus-visible,
.vendor-registration-page .vendor-registration-form input[type="submit"]:focus-visible,
.vendor-registration-page .vendor-registration-form .submit-btn:focus-visible,
.vendor-registration-page .vendor-registration-form .btn-submit:focus-visible {
    outline: 3px solid rgba(0, 124, 195, 0.25);
    outline-offset: 3px;
}

/* Page feedback messages */
.vendor-registration-page .form-message {
    margin: 0 0 22px;
    padding: 15px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.vendor-registration-page .form-message.success-message {
    color: #17663a;
    background: #effaf3;
    border-color: #b7e4c7;
}

.vendor-registration-page .form-message.error-message {
    color: #a12731;
    background: #fff2f2;
    border-color: #f1c0c4;
}

/* Tablet */
@media (max-width: 991px) {
    .vendor-registration-page .vendor-registration-content {
        padding-top: 42px;
        padding-bottom: 56px;
    }

    .vendor-registration-page .vendor-registration-card {
        padding: 28px;
    }

    .vendor-registration-page .vendor-registration-form .form-grid,
    .vendor-registration-page .vendor-registration-form .vendor-form-grid,
    .vendor-registration-page .vendor-registration-form .row {
        column-gap: 20px;
        row-gap: 24px;
    }

    .vendor-registration-page .vendor-registration-form label {
        font-size: 18px;
    }

    .vendor-registration-page .vendor-registration-form input[type="text"],
    .vendor-registration-page .vendor-registration-form input[type="email"],
    .vendor-registration-page .vendor-registration-form input[type="tel"],
    .vendor-registration-page .vendor-registration-form input[type="number"],
    .vendor-registration-page .vendor-registration-form input[type="url"],
    .vendor-registration-page .vendor-registration-form input[type="password"],
    .vendor-registration-page .vendor-registration-form input[type="date"],
    .vendor-registration-page .vendor-registration-form select,
    .vendor-registration-page .vendor-registration-form textarea {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .vendor-registration-page .vendor-registration-hero {
        padding: 25px 0 32px;
    }

    .vendor-registration-page .vendor-registration-hero__inner,
    .vendor-registration-page .vendor-registration-content {
        width: calc(100% - 32px);
    }

    .vendor-registration-page .vendor-registration-breadcrumb {
        margin-bottom: 18px;
        font-size: 13px;
    }

    .vendor-registration-page .vendor-registration-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .vendor-registration-page .vendor-registration-content {
        padding-top: 34px;
        padding-bottom: 44px;
    }

    .vendor-registration-page .vendor-registration-intro {
        margin-bottom: 22px;
    }

    .vendor-registration-page .vendor-registration-intro p {
        font-size: 15px;
    }

    .vendor-registration-page .vendor-registration-card {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .vendor-registration-page .vendor-registration-form fieldset {
        margin-bottom: 27px;
    }

    .vendor-registration-page .vendor-registration-form legend {
        margin-bottom: 20px;
        font-size: 20px;
    }

    .vendor-registration-page .vendor-registration-form .form-grid,
    .vendor-registration-page .vendor-registration-form .vendor-form-grid,
    .vendor-registration-page .vendor-registration-form .row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 21px;
    }

    .vendor-registration-page .vendor-registration-form .full-width,
    .vendor-registration-page .vendor-registration-form .form-group.full-width,
    .vendor-registration-page .vendor-registration-form .form-field.full-width,
    .vendor-registration-page .vendor-registration-form .field-group.full-width {
        grid-column: auto;
    }

    .vendor-registration-page .vendor-registration-form label {
        margin-bottom: 9px;
        font-size: 17px;
    }

    .vendor-registration-page .vendor-registration-form input[type="text"],
    .vendor-registration-page .vendor-registration-form input[type="email"],
    .vendor-registration-page .vendor-registration-form input[type="tel"],
    .vendor-registration-page .vendor-registration-form input[type="number"],
    .vendor-registration-page .vendor-registration-form input[type="url"],
    .vendor-registration-page .vendor-registration-form input[type="password"],
    .vendor-registration-page .vendor-registration-form input[type="date"],
    .vendor-registration-page .vendor-registration-form select,
    .vendor-registration-page .vendor-registration-form textarea {
        min-height: 58px;
        padding: 15px 16px;
        border-radius: 9px;
        font-size: 16px;
    }

    .vendor-registration-page .vendor-registration-form textarea {
        min-height: 140px;
    }

    .vendor-registration-page .vendor-registration-form select {
        padding-right: 40px;
    }

    .vendor-registration-page .vendor-registration-form button[type="submit"],
    .vendor-registration-page .vendor-registration-form input[type="submit"],
    .vendor-registration-page .vendor-registration-form .submit-btn,
    .vendor-registration-page .vendor-registration-form .btn-submit {
        width: 100%;
        min-height: 52px;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .vendor-registration-page .vendor-registration-hero__inner,
    .vendor-registration-page .vendor-registration-content {
        width: calc(100% - 24px);
    }

    .vendor-registration-page .vendor-registration-card {
        padding: 18px 14px;
    }
}




/* ===== COMPACT VENDOR REGISTRATION FORM OVERRIDES ===== */

/* Reduce form width and card padding */
.vendor-registration-page .vendor-registration-card {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 12px;
}

/* Compact two-column layout */
.vendor-registration-page .vendor-registration-form .form-grid,
.vendor-registration-page .vendor-registration-form .vendor-form-grid,
.vendor-registration-page .vendor-registration-form .row {
    column-gap: 22px;
    row-gap: 20px;
}

/* All regular form labels */
.vendor-registration-page .vendor-registration-form label {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.4;
}

/* All text fields and dropdowns */
.vendor-registration-page .vendor-registration-form input[type="text"],
.vendor-registration-page .vendor-registration-form input[type="email"],
.vendor-registration-page .vendor-registration-form input[type="tel"],
.vendor-registration-page .vendor-registration-form input[type="number"],
.vendor-registration-page .vendor-registration-form input[type="url"],
.vendor-registration-page .vendor-registration-form input[type="password"],
.vendor-registration-page .vendor-registration-form input[type="date"],
.vendor-registration-page .vendor-registration-form select {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.4;
}

/* Dropdown arrow spacing */
.vendor-registration-page .vendor-registration-form select {
    padding-right: 34px;
}

/* Textareas */
.vendor-registration-page .vendor-registration-form textarea {
    height: 120px;
    min-height: 120px;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.5;
}

/* Section headings */
.vendor-registration-page .vendor-registration-form legend {
    margin-bottom: 18px;
    padding-bottom: 10px;
    font-size: 18px;
}

/* Reduce space between sections */
.vendor-registration-page .vendor-registration-form fieldset {
    margin-bottom: 24px;
}

/* Reduce content spacing */
.vendor-registration-page .vendor-registration-content {
    padding-top: 40px;
    padding-bottom: 50px;
}

/* Tablet */
@media (max-width: 991px) {
    .vendor-registration-page .vendor-registration-card {
        padding: 22px;
    }

    .vendor-registration-page .vendor-registration-form label {
        font-size: 14px;
    }

    .vendor-registration-page .vendor-registration-form input[type="text"],
    .vendor-registration-page .vendor-registration-form input[type="email"],
    .vendor-registration-page .vendor-registration-form input[type="tel"],
    .vendor-registration-page .vendor-registration-form input[type="number"],
    .vendor-registration-page .vendor-registration-form input[type="url"],
    .vendor-registration-page .vendor-registration-form input[type="password"],
    .vendor-registration-page .vendor-registration-form input[type="date"],
    .vendor-registration-page .vendor-registration-form select,
    .vendor-registration-page .vendor-registration-form textarea {
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .vendor-registration-page .vendor-registration-card {
        padding: 18px 14px;
    }

    .vendor-registration-page .vendor-registration-form .form-grid,
    .vendor-registration-page .vendor-registration-form .vendor-form-grid,
    .vendor-registration-page .vendor-registration-form .row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 18px;
    }

    .vendor-registration-page .vendor-registration-form label {
        font-size: 14px;
        margin-bottom: 7px;
    }

    .vendor-registration-page .vendor-registration-form input[type="text"],
    .vendor-registration-page .vendor-registration-form input[type="email"],
    .vendor-registration-page .vendor-registration-form input[type="tel"],
    .vendor-registration-page .vendor-registration-form input[type="number"],
    .vendor-registration-page .vendor-registration-form input[type="url"],
    .vendor-registration-page .vendor-registration-form input[type="password"],
    .vendor-registration-page .vendor-registration-form input[type="date"],
    .vendor-registration-page .vendor-registration-form select {
        height: 48px;
        min-height: 48px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .vendor-registration-page .vendor-registration-form textarea {
        height: 120px;
        min-height: 120px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .vendor-registration-page .vendor-registration-form legend {
        font-size: 18px;
    }
}


.form-message {
    max-width: 900px;
    margin: 20px auto;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
}

.success-message {
    color: #246b3b;
    background-color: #edf8f0;
    border: 1px solid #b8e0c2;
}

.error-message {
    color: #a12626;
    background-color: #fff0f0;
    border: 1px solid #efc0c0;
}