* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

h1 {
    text-align: center;
    color: #2563eb;
    margin-bottom: 32px;
    font-size: 2.4em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #334155;
    font-size: 0.95em;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    color: #1e293b;
}

input:hover, select:hover, textarea:hover {
    border-color: #cbd5e1;
}

input:focus, select:focus, textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: white;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 1em;
}

.optional {
    color: #64748b;
    font-style: italic;
    font-size: 0.85em;
    font-weight: 400;
    margin-left: 6px;
}

button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.required-field::after {
    content: " *";
    color: #dc2626;
}

/* Floating label animation (optional) */
.form-group.floating-label {
    padding-top: 20px;
}

.form-group.floating-label label {
    position: absolute;
    top: 24px;
    left: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    border-radius: 4px;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label select:focus + label,
.form-group.floating-label select:valid + label {
    top: 0;
    font-size: 0.8em;
    color: #2563eb;
}

/* Error states */
.error-message {
    color: #dc2626;
    font-size: 0.85em;
    margin-top: 6px;
    display: none;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #dc2626;
}

.has-error .error-message {
    display: block;
}

/* Success state */
.success-message {
    background-color: #ecfdf5;
    color: #059669;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 32px 24px;
        margin: 40px auto;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 2em;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
        margin: 20px auto;
    }
    
    input, select, textarea {
        padding: 12px 14px;
    }
} 