/* Contact Form Section Styles */

/* Section Container */
.contact-section {
    padding: 6rem 0;
    background: var(--fog);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(141, 184, 50, 0.2), transparent);
}

/* Two-Column Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Left Column — Copy */
.contact-copy {
    padding-top: 1rem;
}

.contact-section .section-eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lima-bean-green);
    margin-bottom: 1rem;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.contact-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
}

.contact-details {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 2rem;
}

.contact-details p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details a {
    color: var(--lima-bean-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--wild-willow);
}

/* Right Column — Form Wrapper */
.contact-form-wrap {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

/* Form Layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Fields */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: var(--white);
    color: var(--charcoal);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--lima-bean-green);
    box-shadow: 0 0 0 3px rgba(141, 184, 50, 0.12);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

/* Submit Button */
.contact-submit {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--lima-bean-green), var(--wild-willow));
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 0.5rem;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 184, 50, 0.3);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.form-error {
    display: none;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-error.visible {
    display: block;
}

/* Thank You State */
.contact-thank-you {
    text-align: center;
    padding: 3rem 1.5rem;
}

.thank-you-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--lima-bean-green), var(--wild-willow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.thank-you-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.thank-you-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .contact-grid {
        gap: 3rem;
    }

    .contact-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-copy {
        padding-top: 0;
        text-align: center;
    }

    .contact-details {
        text-align: left;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-form-wrap {
        padding: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-form-wrap {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}
