/* =================================
   CONTACT PAGE STYLES
=================================== */

.contact-page {
    background-color: var(--bg-color-light);
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.contact-section {
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    padding: 0 clamp(1rem, 6vw, 10rem);
    padding-top: 10rem;
    padding-bottom: clamp(1rem, 6vw, 10rem);
}

.contact-header {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.contact-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-intro .summary {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #444;
    padding-bottom: 2rem;
}

.contact-form {
    background-color: #ffffff;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.form-field input,
.form-field textarea {
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: border-color 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #726659;
}

.contact-submit {
    margin-top: 1rem;
    align-self: flex-start;
    background-color: rgba(50, 42, 30, 0.97);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.75rem 2rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-submit:hover {
    background-color: #555146;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.alert.success {
    background-color: #e6f4ea;
    color: #31864f;
}

.alert.error {
    background-color: #fdecea;
    color: #b43221;
}

.form-message {
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-message.success,
.form-message.error {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #2e7d32;
}

.form-message.error {
    color: #c62828;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner.show {
    display: inline-block;
}

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

@media (max-width: 900px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
}