/* Overlay - Dark Semi-transparent */
#kya-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    animation: kyaFadeIn 0.3s forwards;
    cursor: pointer;
}

/* Modal - Mailchimp Style */
#kya-popup {
    background: #fff;
    width: 900px;
    max-width: 92vw;
    min-height: 700px;
    max-height: 95vh;
    display: grid;
    /* Strict 50% split */
    grid-template-columns: 50% 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    border-radius: 2px;
    overflow: visible;
    cursor: default;
}

/* Close Button */
#kya-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    z-index: 2147483647;
    line-height: 1;
    padding: 10px;
    display: block !important;
}

#kya-close:hover {
    color: #000;
}

/* Left Column - Content */
.kya-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center align everything for better visual stacking */
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Right Column - Hero Image */
.kya-hero {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Logos */
.kya-logo {
    max-width: 140px;
    margin-bottom: 20px;
    display: block;
}

/* Typography */
.kya-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #241c15;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.kya-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #403b3b;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Buttons */
.kya-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.kya-btn:hover {
    background: #333;
}

.kya-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Link (No thanks/Back) */
.kya-link {
    display: inline-block;
    color: #666;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    margin-top: 5px;
}

.kya-link:hover {
    color: #000;
}

/* Form */
.kya-form-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
}

#kya-email {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    background: #fff;
    box-sizing: border-box;
}

#kya-email:focus {
    border-color: #000;
    outline: none;
}

.kya-error-msg {
    color: #d93025;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* Steps */
.kya-step {
    opacity: 0;
    animation: kyaFadeIn 0.5s forwards;
    width: 100%;
    /* Ensure steps fill the flex container for center alignment logic */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Explicit Step Hide */
.kya-step[style*="display: none"] {
    display: none !important;
}

@keyframes kyaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.kya-badge {
    display: inline-block;
    background: #e1f5fe;
    color: #0277bd;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Mini Popup */
#kya-mini {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999990;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    border-left: 5px solid #000;
    opacity: 0;
    animation: kyaSlideUp 0.5s forwards;
}

#kya-mini-text {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#kya-mini-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 0;
    margin-left: 10px;
}

#kya-mini-close:hover {
    color: #333;
}

@keyframes kyaSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #kya-popup {
        grid-template-columns: 1fr;
        max-width: 95vw;
        max-height: 95vh;
        min-height: auto;
        overflow-y: auto;
    }

    .kya-hero {
        display: none;
    }

    .kya-content {
        padding: 40px 20px;
        min-height: auto;
    }
}