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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

h1 {
    color: #1a1a1a;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.required {
    color: #d32f2f;
}

input[type="text"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input[type="datetime-local"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #f9f9f9;
    color: #666;
    cursor: not-allowed;
}

input[type="datetime-local"]:focus {
    outline: none;
}

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

.help-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #999;
}

.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

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

.submit-btn.submitting::after {
    content: ' ⏳ Submitting...';
}

/* Success Message */
.success-message {
    background: #f1f8e9;
    border: 1px solid #c5e1a5;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
}

.success-content h2 {
    color: #558b2f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-content p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.success-content strong {
    color: #2e7d32;
    font-size: 1.1rem;
}

.reset-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.reset-btn:hover {
    background: #45a049;
}

/* Error Message Box */
.error-message-box {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
}

.error-message-box h3 {
    color: #c62828;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.error-message-box p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.retry-btn {
    padding: 0.75rem 2rem;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #b71c1c;
}

/* Responsive Design */
@media (max-width: 600px) {
    .form-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    input[type="text"],
    input[type="file"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
