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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

.terms-box {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

.terms-box h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.terms-content {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.terms-content h3 {
    font-size: 1rem;
    margin: 15px 0 10px 0;
    color: #333;
}

.terms-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.terms-content li {
    margin-bottom: 5px;
}

form {
    padding: 20px;
}

.error-message {
    background: #fee;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    color: #c0392b;
    margin: 0;
}

.checkbox-container {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Success page */
.success-card {
    text-align: center;
    padding: 50px 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-card h1 {
    color: #27ae60;
    margin-bottom: 10px;
}

.success-card p {
    color: #666;
    margin-bottom: 20px;
}

.continue-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.redirect-notice {
    color: #999;
    font-style: italic;
}
