/* Contact Page */

.contact-page {
    background: var(--sienna);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.contact-header {
    text-align: center;
    padding: 2rem 0;
}

.contact-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--cream);
}

.contact-header .page-intro {
    font-size: 1rem;
    font-weight: 400;
    color: var(--cream-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content */
.contact-content {
    padding: 2rem 0 4rem;
    flex: 1;
}

.contact-content .container {
    max-width: 600px;
}

/* Form */
.contact-form {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--color-shadow);
    padding: 2rem;
}

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

.contact-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.contact-form .required {
    color: var(--color-primary);
}

.contact-form .optional {
    color: var(--color-text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

/* Input styling */
.contact-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--color-shadow);
    transition: all 0.2s ease;
}

.contact-form .form-input:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--color-shadow);
}

.contact-form .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 6px 6px 0 var(--color-shadow);
}

.contact-form .form-input::placeholder {
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Textarea */
.contact-form .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--color-shadow);
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 150px;
}

.contact-form .form-textarea:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--color-shadow);
}

.contact-form .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 6px 6px 0 var(--color-shadow);
}

.contact-form .form-textarea::placeholder {
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Error messages */
.form-error {
    color: #c0392b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 700;
}

.form-errors {
    background: #fdecea;
    border: 2px solid #c0392b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-errors .form-error {
    margin: 0;
}

/* Form actions */
.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-border);
    text-align: center;
}

.form-actions .btn {
    min-width: 250px;
}

/* Success message */
.contact-success {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--color-shadow);
    padding: 3rem 2rem;
    text-align: center;
}

.contact-success .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-primary);
    color: var(--cream);
    border: 3px solid var(--color-border);
    border-radius: 50%;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 var(--color-shadow);
}

.contact-success h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.contact-success p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Turnstile widget styling */
.cf-turnstile {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (min-width: 768px) {
    .contact-header {
        padding: 3rem 0;
    }

    .contact-header h1 {
        font-size: 2.25rem;
    }

    .contact-header .page-intro {
        font-size: 1.125rem;
    }

    .contact-content {
        padding: 3rem 0 4rem;
    }
}

@media (max-width: 600px) {
    .contact-form {
        padding: 1.5rem;
    }

    .contact-success {
        padding: 2rem 1.5rem;
    }

    .form-actions .btn {
        width: 100%;
    }
}
