:root {
    --color-primary-green: #1c5c2e;
    --color-secondary-green: #b1d342;
    --color-highlight-green: #007300;
    --color-highlight-green-dark: #004d00;
    --color-bg-yellow: #e4e976;
    --color-text-dark: #1c1c1c;
    --color-text-gray: #333;
    --color-border: #ccc;
    --color-white: #fff;
    --color-black: #000;
    --color-outline: #1f8c52;
}
.form-container, .otp-container {
    max-width: 650px;
    margin: 20px auto;
    border: 5px solid var(--color-secondary-green);
    border-radius: 20px;
    overflow: hidden;
    height: auto;
    position: relative;
}
.form-container::before, .otp-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: -1;
}
.banner {
    background: linear-gradient(to right, var(--color-primary-green), var(--color-secondary-green));
    padding: 20px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.banner-left {
    display: flex;
    align-items: center;
}
.banner-icon {
    background-color: var(--color-white);
    border-radius: 10px;
    width: 50px;
    height: 60px;
    margin-right: 20px;
}
.banner-text h1 {
    margin: 0;
    font-size: 24px;
    color: var(--color-text-dark);
}
.banner .logout {
    color: var(--color-black);
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
}
.form-body, .otp-body {
    background: var(--color-bg-yellow);
    padding: 30px 20px;
    border-radius: 20px;
    margin-top: 20px;
    min-height: 400px;
    transition: all 0.3s ease;
}
.form-body h2, .otp-body h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}
.form-body label, .otp-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-body label span, .otp-body label span {
    color: #dc3545;
}
.form-body input, .otp-body input, .form-body select, .otp-body select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    /* @alternate */ -webkit-user-select: none;
    /* @alternate */ -moz-user-select: none;
    /* @alternate */ -ms-user-select: none;
    user-select: none;
    margin: 10px 0 20px;
}
.form-body input:focus-visible, .otp-body input:focus-visible, .form-body select:focus-visible, .otp-body select:focus-visible {
    outline-color: var(--color-outline);
}
.form-body input:focus, .otp-body input:focus, .form-body select:focus, .otp-body select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.radio-group {
    margin-bottom: 20px;
}
.radio-group label {
    font-weight: normal;
    margin-right: 20px;
}
.otp-btn {
    background: var(--color-highlight-green);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid var(--color-highlight-green-dark);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.otp-btn:hover {
    background: var(--color-highlight-green);
}
.otp-btn:disabled, .otp-btn.disabled, .otp-btn.disabled:hover {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none;
    transform: none !important;
}
.otp-buttons {
    display: flex;
    gap: 10px;
}
@media (max-width: 768px) {
    .otp-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .otp-buttons button {
        width: 100% !important;
    }
}
.spinner, .spinner-active .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 0 1rem;
    position: relative;
}
.progress-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}
@media (max-width: 768px) {
    .progress-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    .progress-indicator::before {
        display: none;
    }
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 1rem;
}
@media (max-width: 768px) {
    .step {
        flex-direction: row;
        gap: 0.5rem;
    }
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    .step-number {
        margin-bottom: 0;
    }
}
.step-title {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}
.step.active .step-number {
    background: #007bff;
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}
.step.active .step-title {
    color: #007bff;
    font-weight: 600;
}
.step.completed .step-number {
    background: #28a745;
    color: white;
}
.step.completed .step-title {
    color: #28a745;
}
.note {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 1rem;
}
.disclaimer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}
.disclaimer p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #495057;
}
.disclaimer ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}
.disclaimer ul li {
    margin-bottom: 0.25rem;
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease-out;
}
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left: 4px solid #1e7e34;
}
.notification-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-left: 4px solid #c82333;
}
.notification-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-left: 4px solid #e0a800;
}
.notification-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    border-left: 4px solid #138496;
}
.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.notification-close:hover {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .otp-btn, .form-group input, .form-group select, .step-number, .step-title, .notification {
        transition: none;
        animation: none;
    }
}
@media (prefers-contrast: high) {
    .otp-btn {
        border: 2px solid currentColor;
    }
    .form-group input, .form-group select {
        border-width: 2px;
    }
}
.loading {
    opacity: 0.7;
    pointer-events: none;
}
.success-animation {
    animation: successPulse 0.5s ease-in-out;
}
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#otp-timer {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}
.error-msg-pan, .error-msg-demat-folio, .error-msg-year {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}
