/* Styles for the contact page */

:root {
    --dark-green: #2A403D;
    --light-green: #4A6B66;
    --accent-green: #6B8E23;
    --background-light: #F5F7F5;
    --text-color: #333333;
}

.contact-container {
    max-width: 50rem;
    margin: 0 auto;
    padding: 1rem 2rem 2rem 2rem;
    font-family: "Lato", Calibri, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-text {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.form-group-half {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label,
.form-group-half label {
    font-size: 1.1rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group-half input {
    padding: 0.75rem;
    border: 2px solid var(--light-green);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Lato", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group-half input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(107, 142, 35, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.required {
    color: darkgreen;
    display: inline-block;
    font-weight: bold;
    margin: 0;
}

.note {
    font-size: 0.9rem;
    color: #666;
    margin: .5rem 0 0 0;
    text-align: left;
}

.flash-success {
    color: var(--accent-green);
    background-color: #e6ffe6;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-align: center;
}

.flash-error {
    color: #d9534f;
    background-color: #f2dede;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .contact-text {
        font-size: 1.1rem;
    }

    .form-group-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .contact-container {
        padding: 1rem 1rem 1.25rem 1rem;
        margin: 0.75rem;
        font-size: 1.05rem;
    }

    .contact-text {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }

    .form-group-row {
        gap: 0.75rem;
    }

    .form-group label,
    .form-group-half label {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group-half input {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .form-group textarea {
        min-height: 110px;
    }

    .submit-btn-container {
        justify-content: stretch;
    }

    .submit-btn-container .btn-primary {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    .note {
        font-size: 0.85rem;
    }
}

@media (max-width: 420px) {
    .contact-container {
        padding: 0.75rem 0.75rem 1rem 0.75rem;
        margin: 0.5rem;
        font-size: 1rem;
    }

    .contact-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .form-group-row {
        gap: 0.65rem;
    }

    .form-group label,
    .form-group-half label {
        font-size: 0.95rem;
    }

    .submit-btn-container .btn-primary {
        padding: 0.8rem 0.9rem;
        font-size: 0.95rem;
    }

    .note {
        font-size: 0.8rem;
    }
}