/* ================= SunSwept Preferences Styling (Class-based) */

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2'), url('../fonts/Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Italic.woff2') format('woff2'), url('../fonts/Poppins-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.woff2') format('woff2'), url('../fonts/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'), url('../fonts/Poppins-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2'), url('../fonts/Poppins-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Black.woff2') format('woff2'), url('../fonts/Poppins-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --sw-bg: #ffffff;
    --sw-surface: #ffffff;
    --sw-text: #0f172a;
    --sw-muted: rgba(15, 23, 42, 0.5);
    --sw-accent: rgba(65, 105, 225, 0.9);
    --sw-accent-soft: rgba(65, 105, 225, 0.14);
    --sw-accent-border: rgba(15, 23, 42, 0.12);
    --sw-brand: #e11d2e;
    --sw-brand-dark: #b31217;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--sw-bg);
    color: var(--sw-text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    letter-spacing: 0.03em;
}

.container-fluid {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.content-wrapper {
    min-height: 100vh;
    padding: clamp(22px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* .sw-preferences {
    width: 100%;
} */

.sw-preferences > * {
    width: 98%;
    margin: 0 auto;
    padding: 32px 36px 28px;
    background: var(--sw-surface);
    border: 1px solid var(--sw-accent-border);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    position: relative;
}

.sw-preferences > *::after {
    content: none;
    position: absolute;
    left: 28px;
    top: 40px;
    width: 28px;
    height: 2px;
    background: var(--sw-accent);
    border-radius: 999px;
}

.sw-preferences .card,
.sw-preferences .box,
.sw-preferences .box-header,
.sw-preferences .box-body,
.sw-preferences .box-footer {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.sw-preferences .card-header,
.sw-preferences .card-body {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sw-preferences .card-header,
.sw-preferences .card-body,
.sw-preferences .box-header,
.sw-preferences .box-body {
    padding: 0;
    margin: 0;
}

.sw-preferences .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.sw-preferences .col,
.sw-preferences .col-1,
.sw-preferences .col-10,
.sw-preferences .col-11,
.sw-preferences .col-12,
.sw-preferences .col-2,
.sw-preferences .col-3,
.sw-preferences .col-4,
.sw-preferences .col-5,
.sw-preferences .col-6,
.sw-preferences .col-7,
.sw-preferences .col-8,
.sw-preferences .col-9,
.sw-preferences .col-auto,
.sw-preferences .col-lg,
.sw-preferences .col-lg-1,
.sw-preferences .col-lg-10,
.sw-preferences .col-lg-11,
.sw-preferences .col-lg-12,
.sw-preferences .col-lg-2,
.sw-preferences .col-lg-3,
.sw-preferences .col-lg-4,
.sw-preferences .col-lg-5,
.sw-preferences .col-lg-6,
.sw-preferences .col-lg-7,
.sw-preferences .col-lg-8,
.sw-preferences .col-lg-9,
.sw-preferences .col-lg-auto,
.sw-preferences .col-md,
.sw-preferences .col-md-1,
.sw-preferences .col-md-10,
.sw-preferences .col-md-11,
.sw-preferences .col-md-12,
.sw-preferences .col-md-2,
.sw-preferences .col-md-3,
.sw-preferences .col-md-4,
.sw-preferences .col-md-5,
.sw-preferences .col-md-6,
.sw-preferences .col-md-7,
.sw-preferences .col-md-8,
.sw-preferences .col-md-9,
.sw-preferences .col-md-auto,
.sw-preferences .col-sm,
.sw-preferences .col-sm-1,
.sw-preferences .col-sm-10,
.sw-preferences .col-sm-11,
.sw-preferences .col-sm-12,
.sw-preferences .col-sm-2,
.sw-preferences .col-sm-3,
.sw-preferences .col-sm-4,
.sw-preferences .col-sm-5,
.sw-preferences .col-sm-6,
.sw-preferences .col-sm-7,
.sw-preferences .col-sm-8,
.sw-preferences .col-sm-9,
.sw-preferences .col-sm-auto,
.sw-preferences .col-xl,
.sw-preferences .col-xl-1,
.sw-preferences .col-xl-10,
.sw-preferences .col-xl-11,
.sw-preferences .col-xl-12,
.sw-preferences .col-xl-2,
.sw-preferences .col-xl-3,
.sw-preferences .col-xl-4,
.sw-preferences .col-xl-5,
.sw-preferences .col-xl-6,
.sw-preferences .col-xl-7,
.sw-preferences .col-xl-8,
.sw-preferences .col-xl-9,
.sw-preferences .col-xl-auto {
    position: relative;
    width: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.sw-preferences .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sw-preferences > .axionformwrapper,
.sw-preferences > .axionformwrapper.col-md-12,
.sw-preferences > #_formspec_sw_privacy_notice_wrapper.axionformwrapper.col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sw-preferences .box-title,
.sw-preferences h2,
.sw-preferences h3 {
    font-size: 1.7em;
    line-height: 1.2;
    font-weight: 400;
    color: #E51318;
    margin: 0 0 12px;
}

.sw-preferences h4 {
    font-size: 0.95em;
    line-height: 1.45;
    font-weight: 400;
    color: #000000;
    margin: 0 0 12px;
}

.sw-preferences h6,
.sw-preferences p {
    font-size: 0.9em;
    line-height: 1.5;
    font-weight: 400;
    color: #000000;
    margin: 0 0 12px;
}

.sw-preferences .form-group {
    margin-bottom: 14px;
}

.sw-preferences label,
.sw-preferences .fld-label {
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(0, 0, 0, 0.85);
    margin: 0 0 8px;
    display: block;
}

.sw-preferences label.error {
    display: none;
}

.sw-preferences input.form-control,
.sw-preferences select.form-control,
.sw-preferences textarea.form-control,
.sw-preferences input[type="text"],
.sw-preferences input[type="password"],
.sw-preferences input[type="email"],
.sw-preferences textarea,
.sw-preferences select {
    width: 100%;
    border: 0;
    outline: none;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    min-height: 52px;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.sw-preferences textarea,
.sw-preferences textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.sw-preferences input.form-control::placeholder,
.sw-preferences textarea.form-control::placeholder,
.sw-preferences input::placeholder,
.sw-preferences textarea::placeholder {
    color: rgba(15, 23, 42, 0.45);
}

.sw-preferences input:focus,
.sw-preferences select:focus,
.sw-preferences textarea:focus {
    box-shadow: inset 0 0 0 1px rgba(65, 105, 225, 0.38), 0 0 0 6px var(--sw-accent-soft);
}

.sw-preferences .SumoSelect {
    display: block;
    width: 100%;
    position: relative;
    z-index: 50;
}

.sw-preferences .SumoSelect > .CaptionCont,
.sw-preferences .SumoSelect > p.CaptionCont.SelectBox {
    border: 0;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    min-height: 52px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-preferences .SumoSelect > .CaptionCont > span,
.sw-preferences .SumoSelect > p.CaptionCont.SelectBox > span {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    width: 100%;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
}

.sw-preferences .SumoSelect:focus-within > .CaptionCont,
.sw-preferences .SumoSelect:focus-within > p.CaptionCont.SelectBox,
.sw-preferences .SumoSelect.open > .CaptionCont,
.sw-preferences .SumoSelect.open > p.CaptionCont.SelectBox {
    box-shadow: inset 0 0 0 1px rgba(65, 105, 225, 0.38), 0 0 0 6px var(--sw-accent-soft);
}

.sw-preferences .SumoSelect.open {
    z-index: 9999;
}

.sw-preferences .SumoSelect > .optWrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 10000;
}

.sw-preferences .SumoSelect > .optWrapper > .options,
.sw-preferences .SumoSelect > .optWrapper > ul.options {
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
    margin: 0;
}

.sw-preferences .SumoSelect > .optWrapper > .options > li.opt,
.sw-preferences .SumoSelect > .optWrapper > ul.options > li.opt {
    border-radius: 12px;
    margin: 6px 0;
}

.sw-preferences .SumoSelect .optWrapper .options li.opt label {
    padding: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1f2937;
    letter-spacing: normal;
    text-transform: none;
}

.sw-preferences .SumoSelect .optWrapper .options li.opt:hover {
    background: rgba(65, 105, 225, 0.08);
}

.sw-preferences .SumoSelect .optWrapper .options li.opt.selected {
    background: rgba(65, 105, 225, 0.12);
}

.sw-preferences .box-footer,
.sw-preferences .bh-login-actions,
.sw-preferences [id$="footer"] {
    max-width: 400px;
    margin: 16px auto 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.sw-preferences .box-footer,
.sw-preferences .bh-login-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
}

.sw-preferences .box-footer #_formspec_login_submit,
.sw-preferences .box-footer .bh-btn-register,
.sw-preferences .bh-login-actions .bh-btn-register,
.sw-preferences .bh-login-actions .btn-primary {
    flex: 1 1 0;
    width: auto;
}

.sw-preferences button[id$="_submit"],
.sw-preferences input[type="submit"],
.sw-preferences .btn-primary,
.sw-preferences .bh-btn-register,
.sw-preferences #showrest {
    position: static;
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid #E51318;
    background: #ffffff;
    color: #E51318;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.sw-preferences button[id$="_submit"]:hover,
.sw-preferences input[type="submit"]:hover,
.sw-preferences .btn-primary:hover,
.sw-preferences .bh-btn-register:hover,
.sw-preferences #showrest:hover {
    background: #E51318;
    color: #ffffff;
}

.sw-preferences button[id$="_submit"]:active,
.sw-preferences input[type="submit"]:active,
.sw-preferences .btn-primary:active,
.sw-preferences .bh-btn-register:active,
.sw-preferences #showrest:active {
    background: #E51318;
    color: #ffffff;
}

.sw-preferences .bh-login-title,
.sw-preferences .bh-login-brand {
    text-align: center;
}

.sw-preferences .bh-login-brand img,
.sw-preferences img.bh-logo,
.sw-preferences img.logo,
.sw-preferences .card-header img {
    display: block;
    margin: 0 auto 18px;
    max-width: min(320px, 78vw);
    height: auto;
}

.sw-preferences .card-header,
.sw-preferences .box-header {
    text-align: center;
}

.sw-preferences #passwordToggle,
.sw-preferences #forgotpassword {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0 !important;
    min-height: auto;
    line-height: 1.2;
    font-size: 14px !important;
    font-weight: 750;
    color: rgba(65, 105, 225, 0.95);
    text-decoration: none;
    width: 100%;
}

.sw-preferences #passwordToggle:hover,
.sw-preferences #forgotpassword:hover,
.sw-preferences .pn-link a:hover {
    text-decoration: underline;
}

.sw-preferences .pn-link a {
    color: rgba(65, 105, 225, 0.95);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 640px) {
    .content-wrapper {
        padding: 3vh 3vw;
        min-height: 100vh;
        align-items: center;
    }

    .sw-preferences > * {
        width: 100%;
        margin: 0 auto;
        min-height: 94vh;
        padding: 34px 20px 30px;
        border-radius: 24px;
    }

    .sw-preferences .row {
        margin-left: 0;
        margin-right: 0;
    }


    
    .sw-preferences p,
    .sw-preferences h6,
    .sw-preferences .box-title,
    .sw-preferences h2,
    .sw-preferences h4,
    .sw-preferences .form-group,
    .sw-preferences .pn-link {
        padding-right: 4px;
    }

    .sw-preferences > *::after {
        left: 22px;
        top: 30px;
    }

    .sw-preferences .box-title,
    .sw-preferences h2,
    .sw-preferences h3,
    .sw-preferences h4 {
        font-size: 24px;
    }

    .sw-preferences button[id$="_submit"],
    .sw-preferences input[type="submit"],
    .sw-preferences .btn-primary,
    .sw-preferences .bh-btn-register,
    .sw-preferences #showrest {
        min-height: 52px;
        border-radius: 14px;
    }

    .sw-preferences .box-footer,
    .sw-preferences .bh-login-actions {
        flex-direction: column;
        gap: 10px;
    }

    .sw-preferences .box-footer #_formspec_login_submit,
    .sw-preferences .box-footer .bh-btn-register,
    .sw-preferences .bh-login-actions .bh-btn-register,
    .sw-preferences .bh-login-actions .btn-primary {
        width: 100%;
    }
}
