.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.welcome-modal-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    padding: 32px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-modal-overlay.show .welcome-modal-content {
    transform: translateY(0) scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #60a5fa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-form .input-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: #475569;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 211, 102, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

/* intl-tel-input overrides */
.iti { width: 100%; }
.iti__country-list { background-color: #0f172a; border: 1px solid rgba(255,255,255,0.1); color: #cbd5e1; border-radius: 8px; margin-top: 4px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5); }
.iti__country.iti__highlight { background-color: #1e293b; color: #fff; }
.iti__dial-code { color: #94a3b8; }
.iti__selected-dial-code { color: #fff; }

/* Error styles */
.modal-form input.error,
.iti input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.error-tooltip {
    position: absolute;
    right: 0;
    top: -28px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.error-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    border-width: 5px;
    border-style: solid;
    border-color: #ef4444 transparent transparent transparent;
}

.error-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}
