/* ===== Contact Form Section ===== */

/* ── Section wrapper ──────────────────────────────────────────────────────── */
.contact-form-section {
    padding-top: var(--spacing-xl, 4rem);
    padding-bottom: var(--spacing-xl, 4rem);
}

.contact-form-section--bg-light {
    background-color: var(--color-blue-50);
}

.contact-form-section--bg-white {
    background-color: #ffffff;
}

/* ── Outer container ─────────────────────────────────────────────────────── */
.contact-form__container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ── Grid: single column by default, two columns when image is present ────── */
.contact-form__grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .contact-form-section--has-image .contact-form__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

/* Without image: narrower centred form column */
.contact-form-section:not(.contact-form-section--has-image) .contact-form__form-col {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ── Form column ─────────────────────────────────────────────────────────── */
.contact-form__form-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Header: title + description ────────────────────────────────────────── */
.contact-form__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 50% !important;
}

.contact-form__title {
    margin: 0;
    line-height: 1.2;
}

.contact-form__description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-body);
    margin: 0;
}

/* ── Decorative separator line ───────────────────────────────────────────── */
.contact-form__divider {
    border: none;
    border-top: 2px solid var(--color-blue-50, #e8f0f8);
    margin: 0 0 2rem;
}

/* ── Form layout ────────────────────────────────────────────────────────── */
.contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Two-column row for Voornaam + Achternaam */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .contact-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Field group (label + control) ──────────────────────────────────────── */
.contact-form__field-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact-form__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.4;
}

.contact-form__required {
    color: var(--dark-pink, #b83773);
    margin-left: 0.125rem;
}

/* ── Input, select, textarea – shared base ──────────────────────────────── */
.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    width: 100% !important;
    font-family: inherit !important;
    font-size: var(--font-size-base, 1rem) !important;
    color: var(--color-body) !important;
    background-color: #ffffff   !important;
    border: 1.5px solid var(--grey-blue, #e8e8ed) !important;
    border-radius: var(--radius-lg, 1rem) !important;
    padding: 0.75rem 1.125rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
    border-color: var(--dark-pink, #b83773);
    box-shadow: 0 0 0 3px rgb(184 55 115 / 0.15);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: #9ca3af;
}

/* ── Select: custom chevron ──────────────────────────────────────────────── */
.contact-form__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Textarea ───────────────────────────────────────────────────────────── */
.contact-form__textarea {
    min-height: 10rem;
    resize: vertical;
    line-height: 1.6;
}

/* ── Submit button ──────────────────────────────────────────────────────── */
.contact-form__actions {
    margin-top: 0.25rem;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    background-color: var(--dark-pink, #b83773);
    color: #ffffff;
    font-family: inherit;
    font-size: var(--font-size-base, 1rem);
    font-weight: 800;
    -webkit-font-smoothing: antialiased;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-transform: lowercase;
}

.contact-form__submit:hover {
    background-color: var(--color-primary-hover, #cf457e);
}

.contact-form__submit:active {
    transform: scale(0.97);
}

.contact-form__submit:focus-visible {
    outline: 1px dashed var(--dark-pink, #b83773);
    outline-offset: 4px;
}

/* ── Footer text ────────────────────────────────────────────────────────── */
.contact-form__footer-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-body);
}

.contact-form__footer-icon {
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
    fill: var(--color-body);
    opacity: 0.6;
}

/* ── Image column ────────────────────────────────────────────────────────── */
.contact-form__image-col {
    width: 100%;
}

.contact-form__image-wrap {
    border-radius: var(--radius-lg, 1.25rem);
    overflow: hidden;
    width: 100%;
}

.contact-form__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

@media (min-width: 1024px) {
    .contact-form__image {
        aspect-ratio: unset;
        height: 100%;
        min-height: 600px;
    }

    .contact-form__image-wrap {
        height: 100%;
    }

    .contact-form__image-col {
        position: sticky;
        top: 2rem;
        align-self: start;
    }
}

/* ── Column order modifiers (desktop only) ───────────────────────────────── */
@media (min-width: 1024px) {
    .contact-form__form-col--order-1  { order: 1; }
    .contact-form__form-col--order-2  { order: 2; }
    .contact-form__image-col--order-1 { order: 1; }
    .contact-form__image-col--order-2 { order: 2; }
}

/* Mobile: always form first, image below regardless of image position setting */
@media (max-width: 1023px) {
    .contact-form__form-col  { order: 1; }
    .contact-form__image-col { order: 2; }
}
