/* ============================================
   ImmoMatch – Formulare (Käufer + Kontakt)
   ============================================ */

.immomatch-form {
    max-width: var(--global-content-width, 1400px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Grid ---- */
.immomatch-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
.immomatch-form-full {
    grid-column: 1 / -1;
}

/* ---- Form Group ---- */
.immomatch-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95em;
}
.immomatch-form-group input[type="text"],
.immomatch-form-group input[type="email"],
.immomatch-form-group input[type="tel"],
.immomatch-form-group input[type="file"],
.immomatch-form-group select,
.immomatch-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 1em;
    background: #fff;
    transition: border-color 0.2s;
}
.immomatch-form-group input::placeholder,
.immomatch-form-group textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}
.immomatch-form-group input:focus,
.immomatch-form-group select:focus,
.immomatch-form-group textarea:focus {
    outline: none;
    border-color: #b8a98e;
    box-shadow: 0 0 0 2px rgba(184, 169, 142, 0.2);
}
.immomatch-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---- Required Star ---- */
.immomatch-form-required {
    color: #dc2626;
    font-weight: 700;
}

/* ---- Hint ---- */
.immomatch-form-hint {
    margin: 4px 0 0;
    font-size: 0.85em;
    color: #6b7280;
}

/* ---- Wishes (4 inputs) ---- */
.immomatch-form-wishes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.immomatch-form-wishes input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 1em;
    transition: border-color 0.2s;
}
.immomatch-form-wishes input:focus {
    outline: none;
    border-color: #b8a98e;
    box-shadow: 0 0 0 2px rgba(184, 169, 142, 0.2);
}

/* ---- Checkbox ---- */
.immomatch-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}
.immomatch-form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #b8a98e;
}
.immomatch-form-checkbox a {
    color: #b8a98e;
    text-decoration: underline;
}

/* ---- Submit Row ---- */
.immomatch-form-submit {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ---- Spinner ---- */
.immomatch-form-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #e5e7eb;
    border-top-color: #b8a98e;
    border-radius: 50%;
    animation: immomatch-spin 0.6s linear infinite;
}
@keyframes immomatch-spin {
    to { transform: rotate(360deg); }
}

/* ---- Message ---- */
.immomatch-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.95em;
}
.immomatch-form-message.is-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.immomatch-form-message.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .immomatch-form-grid {
        grid-template-columns: 1fr;
    }
    .immomatch-form-wishes {
        grid-template-columns: 1fr;
    }
}
