/* ========================================================
   KYC / Open Account Page Styles (trading-account.css)
   Compact, Zero-Scroll, High-Quality Responsive Design
   ======================================================== */

.kyc-page-section {
    padding: 10px 0 24px 0;
    background-color: #ffffff;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Top Sub-Bar (Resume KYC) */
.kyc-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.kyc-top-bar .resume-text {
    margin-right: 12px;
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
}

.kyc-top-bar .btn-resume {
    background-color: #1e88e5;
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.kyc-top-bar .btn-resume:hover {
    background-color: #1565c0;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Main Content Box Layout */
.kyc-main-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* 1. Left Illustration Column */
.kyc-col-illustration {
    flex: 0 0 28%;
    max-width: 28%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kyc-col-illustration svg {
    width: 100%;
    max-height: 340px;
    height: auto;
}

/* 2. Middle Form Column */
.kyc-col-form {
    flex: 0 0 44%;
    max-width: 44%;
    background-color: #ffffff;
    z-index: 2;
    position: relative;
    padding: 0 10px;
}

.kyc-subheading {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
    text-transform: none;
}

.kyc-heading-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.kyc-heading {
    font-size: 16.5px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.25;
    margin: 0;
}

.kyc-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #60a5fa;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    background-color: #eff6ff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.kyc-info-badge:hover {
    background-color: #dbeafe;
    border-color: #2563eb;
}

/* Form Controls - Compact Viewport Fit */
.kyc-form-group {
    margin-bottom: 7px;
}

.kyc-label {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 3px;
    display: block;
}

.kyc-input {
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #111827;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kyc-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.15);
    outline: none;
}

.kyc-input::placeholder {
    color: #9ca3af;
    font-size: 12.5px;
}

/* Password Toggle Wrapper */
.input-password-wrapper {
    position: relative;
}

.input-password-wrapper .kyc-input {
    padding-right: 36px;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-password:hover {
    color: #2563eb;
}

/* Submit Button */
.kyc-btn-submit {
    background-color: #1e88e5;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    height: 38px;
    padding: 0 20px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    width: 100%;
}

.kyc-btn-submit:hover {
    background-color: #1565c0;
    color: #ffffff;
    transform: translateY(-1px);
}

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

/* 3. Right Chart Column */
.kyc-col-chart {
    flex: 0 0 28%;
    max-width: 28%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
}

.kyc-col-chart svg {
    width: 100%;
    height: auto;
    max-height: 360px;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
    .kyc-page-section {
        padding: 15px 0 35px 0;
        min-height: auto;
    }

    .kyc-main-grid {
        flex-direction: column;
        gap: 15px;
    }

    .kyc-col-illustration {
        display: none; /* Hide large graphic on mobile so form appears at the very top */
    }

    .kyc-col-form {
        flex: 0 0 100%;
        max-width: 480px;
        width: 100%;
        padding: 10px 15px;
        margin: 0 auto;
    }

    .kyc-heading {
        font-size: 18px;
    }

    .kyc-col-chart {
        display: none;
    }
}
