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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 50%, #faf5ff 100%);
    color: #374151;
    line-height: 1.7;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

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

header h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: #1e293b;
    font-weight: 700;
}

header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

form {
    background: white;
    padding: 40px 45px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #1e293b;
}

input, select, textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #818cf8;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
}

input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

small {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
}

button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message, .error-message {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.success-message h2 {
    color: #22c55e;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.error-message h2 {
    color: #ef4444;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.success-message p, .error-message p {
    margin-bottom: 14px;
    color: #64748b;
    font-size: 1.1rem;
}

.success-message button, .error-message button {
    margin-top: 24px;
    width: auto;
    padding: 14px 32px;
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
}

footer p {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .container {
        margin: 20px auto;
    }
    
    header h1 {
        font-size: 1.7rem;
    }
    
    form {
        padding: 28px 22px;
    }
    
    input, select, textarea {
        padding: 14px 16px;
        font-size: 1rem;
    }
}
