@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --vrs-primary: #930D00;
    --vrs-secondary: #660900;
    --vrs-accent: #E5AC36;
    --vrs-bg: #ffffff;
    --vrs-text: #2c3e50;
    --vrs-glass: rgba(255, 255, 255, 0.95);
    --vrs-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --vrs-radius: 12px;
}

.vrs-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    color: var(--vrs-text);
}

.vrs-card {
    background: var(--vrs-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--vrs-radius);
    padding: 40px;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--vrs-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.vrs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--vrs-primary), var(--vrs-accent));
}

.vrs-header {
    text-align: center;
    margin-bottom: 30px;
}

.vrs-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--vrs-primary);
    font-weight: 700;
}

.vrs-header p {
    margin: 5px 0 0;
    opacity: 0.7;
    font-size: 14px;
}

.vrs-step {
    display: none;
}

.vrs-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

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

.vrs-form-group {
    margin-bottom: 20px;
}

.vrs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.vrs-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.vrs-form-group input:focus {
    border-color: var(--vrs-primary);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    outline: none;
}

.vrs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.vrs-file-input {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.vrs-file-input:hover {
    border-color: var(--vrs-primary);
    background: rgba(243, 156, 18, 0.05);
}

.vrs-file-input input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.vrs-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--vrs-accent);
    border-radius: 8px;
    background: var(--vrs-primary);
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.vrs-btn:hover {
    background: var(--vrs-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 13, 0, 0.3);
}

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

.vrs-btn-secondary {
    background: #34495e;
}

/* OTP Styles */
.vrs-otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}

.otp-digit {
    width: 50px !important;
    height: 50px;
    text-align: center;
    font-size: 24px !important;
    font-weight: 700;
    padding: 0 !important;
}

.vrs-resend {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.vrs-resend a {
    color: var(--vrs-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Success Step */
.vrs-success-icon {
    width: 60px;
    height: 60px;
    background: var(--vrs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    border: 2px solid var(--vrs-accent);
}

.vrs-success-step {
    text-align: center;
}

/* ID Card Preview */
.vrs-id-preview {
    margin: 25px auto;
    background: none;
    border-radius: 15px;
    padding: 0;
    border: none;
    width: 100%;
    max-width: 450px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.vrs-id-card {
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.vrs-id-header {
    background: var(--vrs-primary);
    color: white;
    padding: 15px;
    text-align: center;
}

.vrs-id-header h4 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vrs-id-body {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.vrs-id-photo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--vrs-primary);
}

.vrs-id-info {
    flex: 1;
}

.vrs-id-info h5 {
    margin: 0;
    font-size: 18px;
    color: var(--vrs-text);
}

.vrs-id-info p {
    margin: 3px 0;
    font-size: 12px;
    opacity: 0.8;
}

.vrs-id-badge {
    background: #f1c40f;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    display: inline-block;
    margin-top: 5px;
}

.vrs-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    display: none;
    font-size: 14px;
}

.vrs-message.error {
    background: #fdeaea;
    color: #e74c3c;
    display: block;
}

.vrs-message.success {
    background: #eafaf1;
    color: #27ae60;
    display: block;
}

/* Loading Overlay */
.vrs-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    display: none;
}

.vrs-loading.active {
    display: flex;
}

.vrs-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--vrs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.vrs-id-card-wrapper {
    width: 450px !important;
    min-width: 450px !important;
    max-width: none !important;
    margin: 0 auto;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.vrs-id-card-inner {
    width: 450px !important;
    min-width: 450px !important;
    max-width: none !important;
    height: 800px;
    /* Reduced by 20px */
    border: none;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: #fff url('../img/id-bg.png') no-repeat top center;
    background-size: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* id-top-curve removed */

.id-side-curve {
    position: absolute;
    width: 100px;
    height: 300px;
    border: 1px solid var(--vrs-accent);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.3;
}

.id-left-curve {
    left: -60px;
    top: 50px;
    transform: rotate(15deg);
}

.id-right-curve {
    right: -60px;
    top: 50px;
    transform: rotate(-15deg);
}

/* id-header and id-logo removed */

.id-photo-container {
    position: absolute;
    z-index: 2;
    top: 213px;
    /* Shifted up to match background circle */
    left: 50%;
    transform: translateX(-50%);
}

.id-photo-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--vrs-primary);
    overflow: hidden;
}

.id-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-name {
    position: absolute;
    top: 445px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--vrs-primary);
    padding: 0 10px;
    line-height: 1;
}

.id-details {
    position: absolute;
    top: 475px;
    /* Shifted up closer to the name */
    left: 0;
    width: 100%;
    padding: 10px 40px;
    font-size: 12px;
    /* Reduced by 2px */
}

.detail-row {
    display: flex;
    margin-bottom: 4px;
    /* Reduced space between data rows */
    line-height: 1.4;
    align-items: center;
}

.detail-icon {
    background: var(--vrs-primary);
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

.detail-label {
    width: 120px;
    /* Increased for better alignment */
    color: #444;
    font-weight: 500;
    font-size: 11px;
}

.detail-sep {
    width: 15px;
    color: #444;
    font-weight: 600;
}

.detail-value {
    flex: 1;
    color: #000;
    font-weight: 700;
    font-size: 11px;
    /* Reduced by 3px */
    word-break: break-all;
    /* Handle long emails */
}

.id-main-box {
    position: absolute;
    bottom: 155px;
    /* Shifted further down into the red box */
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    text-align: center;
    color: #fff;
    background: transparent;
    border: none;
}

.box-label {
    font-size: 9px;
    opacity: 0.9;
}

.box-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #E5AC36;
    line-height: 1;
    /* Golden color from target design */
}

.id-footer {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 2;
}

.footer-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    top: 20px;
}

.footer-item {
    display: flex;
    align-items: center;
    font-size: 9px;
    color: #444;
    line-height: 1.2;
}

.footer-icon {
    margin-right: 6px;
    display: flex;
    align-items: center;
}

.footer-icon svg {
    width: 12px;
    height: 12px;
    fill: var(--vrs-primary);
}

/* footer elements removed */

.footer-right {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sig-cursive {
    font-family: 'Dancing Script', cursive;
    font-size: 16px;
    color: #003366;
    line-height: 1;
    margin-bottom: -5px;
    /* Pull closer to line */
}

.signature-line {
    width: 110px;
    height: 1px;
    background: #930D00;
    /* Red line to match theme */
    margin: 5px 0;
}

.sig-name {
    font-size: 9px;
    font-weight: 700;
    margin: 0;
    color: #930D00;
}

.sig-title {
    font-size: 7px;
    color: #777;
    margin: 2px 0 0;
}

/* Mobile Responsiveness Padding Adjustments */
@media (max-width: 600px) {
    .vrs-container {
        padding: 10px 5px !important;
    }
    
    .vrs-card {
        padding: 20px 15px !important;
        border-radius: 8px !important;
    }
    
    .vrs-id-preview {
        margin: 15px auto !important;
    }
}