.contact-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, #f9f9f9, white);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.form-header h1 {
    margin-bottom: var(--spacing-sm);
}

.form-header p {
    color: var(--text-secondary);
}

.contact-form {
    display: grid;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

input,
textarea,
select {
    padding: var(--spacing-sm);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--olive);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(150, 147, 0, 0.1);
}

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

.required {
    color: #d32f2f;
    margin-left: 2px;
}

.submit-btn-wrapper {
    margin-top: var(--spacing-md);
    text-align: center;
}

/* Checkbox styling */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* HTMX and Response Styles */
.form-response {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.form-response.success {
    background: rgba(150, 147, 0, 0.1);
    border: 1px solid var(--olive);
}

.form-response.error {
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid #d32f2f;
}

.form-response h3 {
    margin-bottom: var(--spacing-sm);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.htmx-request.btn-primary {
    opacity: 0.7;
    cursor: wait;
    position: relative;
    pointer-events: none;
}

.htmx-request.btn-primary::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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