:root {
    --primary-color: #000000;
    --primary-hover: #333333;
    --bg-color: #F7F7F8;
    --surface-color: #FFFFFF;
    --text-primary: #121212;
    --text-secondary: #6B7280;
    --border-color: #E6E8EB;
    --error-color: #EF4444;
    --success-color: #10B981;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.form-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.contact-form {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.input-row {
    display: flex;
    gap: 8px;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

select {
    width: 130px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' 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 12px center;
    padding-right: 32px;
}

input::placeholder {
    color: #9CA3AF;
}

input:focus, select:focus {
    outline: none;
    border-color: #A1A1AA;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

input:disabled {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
    border-color: #E6E8EB;
}

button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

button:hover {
    background: var(--primary-hover);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

.status-message {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    min-height: 20px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
}

.status-message.show {
    opacity: 1;
    transform: translateY(0);
}

.status-error {
    color: var(--error-color);
}

.status-success {
    color: var(--success-color);
}

@media (max-width: 480px) {
    .contact-form {
        padding: 24px;
        border-radius: 12px;
    }
}
