/* ---------- Contact form container ---------- */
.contact-form-container {
    width: 100%;
    margin: 2rem 0;
    padding: 1rem 0;
    max-width: var(--dl-size-size-maxcontent);
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(51, 51, 51, 0.8) 100%,
            rgba(100, 100, 70, 0.8) 10.47%),
        url("/public/Auto-Turf/autoturf-bred.JPG");
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

.contact-form-box {
    width: 70%;
    align-self: center;
    justify-self: center;
    background-color: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 4rem;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ---------- Form layout ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* ---------- Two-column inputs ---------- */
.contact-form-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    background-color: var(--green-opaque);
    padding: 1rem;
    border-radius: 12px;
    box-sizing: border-box;
}

/* left column */
.contact-form-input input,
.contact-form-input select {
    grid-column: 1 / 2;
}

/* right column textarea */
.contact-form-input textarea {
    grid-column: 2 / 3;
    grid-row: 1 / span 6;
    height: 100%;
    min-height: 250px;
    /* shorter */
    align-self: stretch;
    resize: none;
}

/* ---------- Inputs compact styling ---------- */
.Input-properties {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.Input-properties:focus {
    outline: none;
    border-color: var(--engbakken-color);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}

/* ---------- Bottom section ---------- */
.contact-text-box {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0 0.25rem 0;
    border-radius: 10px;
}

.contact-text-box p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

/* ---------- Button ---------- */
.contact-button {
    margin-top: 0.5rem;
    background-color: var(--engbakken-color);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 1rem 2rem;
    border-radius: 20rem;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.contact-button:hover {
    background-color: var(--logo-color);
    transform: scale(1.05) skewX(-10deg);
}

/* ---------- Captions (above contact form) ---------- */
.contact-text-box .caption {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bolder;
    color: var(--engbakken-color);
}

.contact-text-box .sub-caption {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
}

h2.contact-form-subtitle {
    display: block;
    justify-self: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.contact-form-field label img {
    width: 50%;
    justify-self: center;
}

/* Always-visible interest list */
.contact-form-field.interest-shared {
    display: block;
    width: 100%;
    margin-top: 1rem;
    background-color: white;

}

/* Header counter text */
.contact-form-field.interest-shared .content {
    font-weight: bold;
}

/* Scrollable list container */
.contact-form-field.interest-shared .content-container {
    display: block;
    height: 4rem;             /* Fixed height */
    overflow: hidden;         /* Hide overflow content */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 2rem;
    scrollbar-width: thin;
}

/* Unordered list reset */
.contact-form-field.interest-shared .content-box {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each interest element */
.contact-form-field.interest-shared .content-element {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

/* Item label */
.contact-form-field.interest-shared .content-element span {
    flex: 1;
    font-weight: bold;
}

/* Close button (X icon) */
.contact-form-field.interest-shared .close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: SVG icon coloring */
.contact-form-field.interest-shared .close-button svg path {
    stroke: #ff7777;
    stroke-width: 5;
    fill: none;
}



/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .contact-form-input {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

    .contact-form-input textarea {
        grid-column: 1 / 2;
        grid-row: auto;
        min-height: 180px;
    }

    .contact-button {
        width: 100%;
    }
}