:root {
    --primary-blue: #0A3D91;
    --secondary-blue: #1C5BC8;
    --bg-color: #F4F7FC;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #E0E5EC;
    --success-green: #2ecc71;
    --joke-red: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

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

.logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    display: inline-block;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.subtext {
    font-size: 14px;
    color: var(--text-muted);
}

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

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #FAFAFA;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10, 61, 145, 0.1);
    background: #FFFFFF;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    box-shadow: 0 4px 15px rgba(10, 61, 145, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Captcha Box */
.captcha-container {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.captcha-checkbox {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.captcha-checkbox.loading {
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s linear infinite;
    cursor: default;
}

.captcha-checkbox.checked {
    border-color: transparent;
    cursor: default;
}

.captcha-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 9px;
    width: 6px;
    height: 14px;
    border: solid #2ecc71;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.captcha-text {
    flex-grow: 1;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

.captcha-img {
    font-size: 10px;
    color: #999;
}

/* Processing State */
#processing-card {
    text-align: center;
    padding: 60px 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

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

#processing-step {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 20px;
    min-height: 24px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

/* Result State */
#result-card {
    text-align: center;
    padding: 50px 30px;
}

#success-content {
    transition: opacity 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--success-green);
    color: white;
    font-size: 30px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.congrats {
    font-size: 24px;
    color: var(--success-green);
    margin-bottom: 15px;
}

.eligibility-text {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 30px;
}

.eligibility-text strong {
    color: var(--primary-blue);
    font-size: 18px;
}

.details-box {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row span:first-child {
    color: var(--text-muted);
}

.status-approved {
    color: var(--success-green);
    font-weight: 600;
}

.app-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-main);
}

.april-fool {
    font-size: 36px;
    color: var(--joke-red);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.hidden-fade {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 30px;
    opacity: 0.8;
}
