/* STRETCH TO FULL SCREEN - OVERRIDE ADMIN LAYOUT */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* Force kill all possible admin dashboard margins/paddings */
#app,
.ivoryContent,
.mainWrapper,
.wrapperInner,
.page-content,
.container-fluid {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    border: none !important;
    background: white !important;
    z-index: 998;
    /* Lower than Select2 */
}

.premium-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    /* Lower than Select2 */
    background: white;
}

:root {
    --arches-red: #C21E39;
    --arches-dark: #0A0D14;
    --arches-blue: #2E90FA;
    --fc-primary: #0A0D14;
    --fc-secondary: #525866;
    --fc-secondary-light: #868C98;
    --input-border: #E2E4E9;
}

/* Select2 Dropdown Visibility Fix */
.select2-container--default .select2-dropdown {
    z-index: 10000 !important;
}

/* Left Panel */
.premium-left {
    position: relative;
    flex: 1;
    background-image: url('../img/banner-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    color: white;
}

.premium-left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.60) 10%, rgba(10, 13, 20, 0.85) 90%);
    z-index: 1;
}

.premium-left-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: auto;
}

.premium-logo-top {
    position: absolute;
    top: 40px;
    left: 60px;
    z-index: 2;
}

.premium-logo-top img {
    height: 44px;
    filter: brightness(0) invert(1);
}

.premium-left h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.premium-left p {
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 480px;
}

.premium-social-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
}

.premium-avatars {
    display: flex;
}

.premium-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: -12px;
}

.premium-avatars img:first-child {
    margin-left: 0;
}

/* Right Panel */
.premium-right {
    flex: 1;
    background: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* PREVENT TOP CLIPPING */
    padding: 60px;
    /* Spaced out */
    overflow-y: auto;
    height: 100vh;
}

.premium-form-container {
    width: 100%;
    max-width: 750px;
    margin-top: auto;
    margin-bottom: auto;
    /* Vertically center content if it fits */
}

.premium-form-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--arches-dark);
    margin-bottom: 8px;
}

.premium-form-header p {
    color: var(--fc-secondary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--arches-dark);
    margin-bottom: 6px;
}

.input-field {
    position: relative;
}

/* Icon fixes — use fixed top (19px = half of 38px input) so error labels don't shift icons */
.input-field .icon {
    position: absolute;
    left: 14px;
    top: 19px;
    transform: translateY(-50%);
    color: var(--fc-secondary-light);
    z-index: 5;
    display: flex;
    align-items: center;
}

.input-field .form-control,
.input-field .form-select {
    padding-left: 42px !important;
    height: 38px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-size: 14px;
    background-color: #f9fafb;
    width: 100%;
}

/* Select2 Specific Fixes */
.input-field .select2-container {
    width: 100% !important;
}

.input-field .select2-container--default .select2-selection--single {
    height: 38px !important;
    border: none !important;
    /* border: 1px solid var(--input-border) !important; */
    /* border-radius: 10px !important;
    background-color: #f9fafb !important; */
}

.premium-right .premium-form-container .form-group.SingleSelCheckBox .input-field .select2.select2-container {
    width: 100% !important;
    border: 1px solid #E2E4E9 !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    background-color: #f9fafb !important;
}

.input-field .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
    padding-left: 36px !important;
    /* increased slightly to clear icon fully */
    font-size: 14px !important;
}

.input-field .select2-selection__arrow {
    height: 36px !important;
}

/* File upload spacing */
.file_upl_box {
    border: 1px solid var(--input-border);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    background: #f9fafb;
    height: 38px;
    width: 100%;
}

/* Button */
.btn-premium-action {
    background-color: var(--arches-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

.field-icon.toggle-password {
    position: absolute;
    right: 14px;
    top: 19px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

/* Phone Field Container */
.phone_number_design .input-group {
    display: flex;
    flex-wrap: wrap;
    /* border: 1px solid var(--input-border);
    border-radius: 10px;
    overflow: hidden;
    height: 48px; */
}

/* Phone field validation errors appear below the input row */
.phone_number_design .input-group+label.error {
    /* display: block; */
    width: 100%;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone_number_design .select2-container {
    width: 90px !important;
}

.phone_number_design .select2-selection--single {
    border: none !important;
    border-right: 1px solid var(--input-border) !important;
    border-radius: 0 !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
}

.phone_number_design .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 10px !important;
    font-size: 14px !important;
}

.phone_number_design .select2-selection__arrow {
    height: 36px !important;
}

.phone_number_design .phone-input-wrap {
    flex: 1;
}

.phone_number_design .phone-input-wrap .form-control {
    border: none !important;
    border-radius: 0 !important;
    padding-left: 12px !important;
    height: 38px !important;
    border-top: 1px solid #efefef !important;
    border-bottom: 1px solid #efefef !important;
    border-right: 1px solid #efefef !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

/* Red asterisk for required fields */
.form-group label.required {
    position: relative;
}

.form-group label.required::after {
    content: " *";
    color: var(--arches-red);
}

/* Validation error messages in red */
.error_message_label label.error,
.form-validate label.error {
    color: var(--arches-red) !important;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error_message_label label.error::before,
.form-validate label.error::before {
    /* content: "\f06a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0; */
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 0px;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='red' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");

    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) saturate(100%) invert(20%) sepia(88%) saturate(2987%) hue-rotate(337deg) brightness(78%) contrast(95%);
}

/* Fix checkbox overlapping and nameless error */
.premium-terms {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    font-size: 13px;
}

.premium-terms>input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    order: 1;
}

.premium-terms>span {
    flex: 1;
    order: 2;
}

/* Checkbox validation error appears on its own line below */
.premium-terms label.error {
    width: 100%;
    flex-basis: 100%;
    margin-top: 0;
    order: 3;
}

.premium-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.premium-footer a {
    color: var(--arches-blue);
    font-weight: 600;
    text-decoration: none;
}

.premium-copyright {
    margin-top: 30px;
    font-size: 11px;
    opacity: 0.6;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {

    html,
    body {
        overflow: auto !important;
    }

    #app,
    .ivoryContent,
    .mainWrapper,
    .wrapperInner,
    .page-content,
    .container-fluid {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
    }

    .premium-wrapper {
        position: relative;
        flex-direction: column;
        height: auto;
        z-index: 1;
    }

    .premium-left {
        height: auto;
        padding: 40px;
        min-height: 300px;
        display: none;
    }

    .premium-right {
        padding: 40px 30px;
        flex: none;
        height: auto;
        overflow: visible;
    }
}

.premium-right .premium-form-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0px !important;
}

.premium-right .premium-form-container .form-group.phone_number_design .input-group .form-select.select2 {
    height: 38px;
    border: 1px solid #e2e4e9;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.premium-right .premium-form-container .form-group.SingleSelCheckBox .input-field .select2.select2-container {
    width: 100% !important;
}

.premium-right .premium-form-container .form-control:focus {
    border-color: #2E90FA !important;
}

body:not(.menu-collapsed) .ivoryContent:has(.premium-wrapper) {
    margin-left: 0 !important;
}

.premium-right .premium-form-container .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #2f86eb !important;
}

.premium-right .premium-form-container .select2-container--default .select2-search--dropdown .select2-search__field:focus-visible {
    border-color: #2f86eb !important;
}

/* Style file input button */
.premium-right .premium-form-container input[type="file"]::file-selector-button {
    background-color: #5c5c5c;
    border: 1px solid #5c5c5c;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* Hover effect (optional but recommended) */
.premium-right .premium-form-container input[type="file"]::file-selector-button:hover {
    background-color: #303030;
    color: #ffffff;
}

.premium-right .premium-form-container .form-group.phone_number_design .input-group .form-select.select2:focus,
.premium-right .premium-form-container .form-group.phone_number_design .input-group .form-select.select2:focus-visible {
    outline: transparent !important;
}

.premium-right .premium-form-container .select2-container .select2-selection--single,
.premium-right .form-group.phone_number_design .input-group .select2.select2-container {
    padding: 6px 6px 6px 10px !important;
    height: 38px !important;
    background: transparent !important;
    /* border: 1px solid #E2E4E9 !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important; */
}

.premium-right .form-group.phone_number_design .input-group .select2.select2-container {
    height: 38px !important;
    border: 1px solid #E2E4E9 !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}