/* ─── VIZZ LEADS STYLES ─── */

/* ─── ROLES SECTION ─── */
.vizz-roles-section {
    padding: 80px 30px;
    text-align: center;
}

.vizz-roles-section .roles-container {
    background: #1890CF;
    border-radius: 40px;
    padding: 80px 20px;
    color: #fff;
    max-width: 1440px;
    margin: 0 auto;
}

.roles-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 60px;
}

.roles-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.role-card {
    cursor: pointer;
    flex: 1;
}

.role-card input {
    display: none;
}

.role-box {
    background: #f3f1ed;
    border-radius: 28px;
    padding: 30px 24px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: background 0.3s ease, transform 0.2s ease;
    color: #0d3d5c;
}

/* Multi-select styling */
.role-card input:checked+.role-box {
    background: #C4DFE2;
}

.checkbox-ui {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1.5px solid #d2d2d2;
    border-radius: 8px;
    position: relative;
}

.role-card input:checked+.role-box .checkbox-ui {
    background: #13384d;
    border-color: #13384d;
}

.checkbox-ui::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    opacity: 0;
}

.role-card input:checked+.role-box .checkbox-ui::after {
    opacity: 1;
}

.role-name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.btn-large {
    padding: 18px 50px;
    background: #fff;
    color: #1a93cc;
    border: none;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.btn-large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── POPUP OVERLAY ─── */
.vizz-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 61, 92, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.vizz-popup-overlay.active {
    display: flex;
}

.vizz-popup-content {
    background: #f9f8f6;
    border-radius: 40px;
    width: 100%;
    max-width: 800px;
    position: relative;
    padding: 60px 50px;
    max-height: 95vh;
    overflow-y: auto;
}

.vizz-popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
}

.form-title {
    font-size: 38px;
    font-weight: 600;
    color: #0d3d5c;
    line-height: 1.1;
    margin-bottom: 12px;
}

.form-subtitle {
    color: #5b8ba1;
    font-size: 18px;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 14.5px;
    color: #0d3d5c;
}

/* Phone input integration with intl-tel-input */
.iti {
    width: 100%;
}

/* Fix overlapping dial code and flag */
.iti--separate-dial-code input.vizz-phone-input {
    padding-left: 95px !important;
    /* Plenty of space for flag + dial code */
}

.iti--separate-dial-code .iti__selected-flag {
    background: transparent !important;
    border-radius: 14px 0 0 14px;
}

/* Ensure the flag container is correctly positioned */
.iti__flag-container {
    padding: 0 0 0 8px !important;
}

.iti__selected-dial-code {
    font-size: 16px;
    font-weight: 500;
    color: #444;
    margin-left: 8px;
    /* Slightly more space for clarity */
}

/* Dropdown list styling */
.iti__country-list {
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    width: 380px;
    /* Fixed width for better appearance */
    max-width: 90vw;
    /* Responsive constraint */
    border: 1px solid #ddd;
}

.iti__country {
    padding: 10px 15px !important;
    font-size: 15px;
}

/* Base input styling */
.form-group input,
.vizz-phone-input {
    height: 54px;
    /* Consistent height */
    padding: 12px 20px;
    border: 1.5px solid #d2d2d2;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.2;
    font-family: inherit;
    background: #fff;
    width: 100% !important;
    outline: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.vizz-phone-input:focus {
    border-color: #1890CF;
    background: #fff;
}

.btn-submit {
    margin-top: 30px;
    padding: 18px 40px;
    background: #1890CF;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #0d3d5c;
}

.vizz-form-notice {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 15px;
}

.vizz-form-notice.success {
    background: #e6f7ef;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.vizz-form-notice.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}