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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Progress Indicator */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 30px;
    width: 100%;
    max-width: 500px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.progress-step .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step .step-label {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.progress-step.completed .step-circle {
    background: #667eea;
    border-color: #667eea;
}

.progress-step.completed .step-label {
    color: rgba(255, 255, 255, 0.9);
}

.progress-step.active .step-circle {
    background: #667eea;
    border-color: #667eea;
    animation: pulse 2s ease-in-out infinite;
}

.progress-step.active .step-label {
    color: white;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(102, 126, 234, 0); }
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #d1d5db;
    margin: 0 -5px;
    margin-bottom: 22px;
    transition: background 0.3s ease;
}

.progress-line.completed {
    background: #667eea;
}

/* Container */
.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

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

.header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header p {
    color: #666;
    font-size: 14px;
}

/* Info Summary */
.info-summary {
    background: #f0f4ff;
    border: 1px solid #d6e0ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #4a5568;
}

.info-summary .info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.info-summary .info-label {
    font-weight: 500;
    color: #667eea;
}

/* Form */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Countdown */
.countdown {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
}

/* Result Messages */
.result {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.result.success {
    background: #d1edff;
    border: 1px solid #b3d8ff;
    color: #0066cc;
    display: block;
}

.result.error {
    background: #ffe6e6;
    border: 1px solid #ffb3b3;
    color: #cc0000;
    display: block;
}

.result.info {
    background: #f0f8ff;
    border: 1px solid #cce7ff;
    color: #0080ff;
    display: block;
}

/* Timeline (result page) */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 15px;
}

.timeline-icon.done {
    background: #d4edda;
    color: #28a745;
}

.timeline-icon.pending {
    background: #e9ecef;
    color: #6c757d;
}

.timeline-icon.fail {
    background: #f8d7da;
    color: #dc3545;
}

.timeline-icon.checking {
    background: #fff3cd;
    color: #856404;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 13px;
    color: #666;
}

/* Verify section */
.verify-section {
    border-left: 4px solid #667eea;
    background: #f0f4ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.verify-section p {
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 520px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 25px;
    }

    .progress-step .step-label {
        display: none;
    }

    .header h1 {
        font-size: 20px;
    }
}
