@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Inter:wght@400;500;600&display=swap");

.contact-us-form {
    --ink: #173c19;
    --accent: #3f5f32;
    --accent-hover: #2f4a25;
    --field: #f1f4f0;
    --muted-ink: #767676;
    --lead-ink: #4a4d4b;
    --placeholder: #8a8f8b;
    --error: #b42318;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: var(--ink);
}

.contact-eyebrow {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted-ink);
}

.contact-heading {
    margin: .5rem 0 .75rem;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--ink);
}

.contact-lead {
    margin: 0 0 3rem;
    font-size: 1.1rem;
    color: var(--lead-ink);
}

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

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-input {
    width: 100%;
    height: 58px;
    padding: 0 1.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--field);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-input::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

.contact-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(63, 95, 50, .15);
}

.contact-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 22px;
    cursor: pointer;
}

.contact-select:invalid,
.contact-select:disabled {
    color: var(--placeholder);
}

.contact-textarea {
    height: 380px;
    padding: 1.25rem 1.75rem;
    border-radius: 28px;
    resize: vertical;
}

.contact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
}

.contact-terms {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--lead-ink);
    cursor: pointer;
}

.contact-terms input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 2.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease;
}

.contact-submit svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-submit:hover {
    background: var(--accent-hover);
}

.contact-submit:focus-visible,
.contact-terms input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.product-context {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    background: var(--field);
}

.product-context-image {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.product-context-title {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.product-context-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .875rem;
    line-height: 1.4;
    color: var(--muted-ink);
}

.contact-success {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1.5rem;
    padding: 14px 18px;
    border: 1px solid #cfe3d3;
    border-radius: 16px;
    background: #eef5ec;
    color: var(--ink);
    font-size: .95rem;
}

.contact-us-form .alert-danger {
    margin-bottom: 1.5rem;
    padding: 14px 18px;
    border: 1px solid #f4c7c3;
    border-radius: 16px;
    background: #fdf1f0;
    color: var(--error);
    font-size: .95rem;
}

.contact-us-form .invalid-feedback {
    display: block;
    margin: .35rem 0 0 1.25rem;
    font-size: .875rem;
    color: var(--error);
}

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

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

    .contact-textarea {
        height: 240px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-submit {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-input,
    .contact-submit {
        transition: none;
    }
}
