/* ================================================================
   Malmön – Vinterförvaring-formulär
   Layout: stor light-gray "fält-platta" med label inuti till
   vänster och input-area till höger (matchar mockup-stilen).
   ================================================================ */

.malmon-ws {
    box-sizing: border-box;
    width: 100%;
}

.malmon-ws__heading {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f1f39;
}

.malmon-ws__intro {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}
/* Astra-fälla: 2 klasser slår .entry-content p */
.malmon-ws .malmon-ws__intro { margin-bottom: 1.5rem; }

/* ── Formulär-grid ────────────────────────────────────────────── */
.malmon-ws__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Row för Motor/er + Drev/axel (side-by-side på desktop) */
.malmon-ws__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ── Fält ─────────────────────────────────────────────────────── */
/* Label OVANFÖR input – matchar boat-contact-stilen */
.malmon-ws__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.malmon-ws__label {
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #0f1f39;
    opacity: 0.7;
    line-height: 1.2;
}

.malmon-ws__req {
    color: #c0392b;
    font-weight: 500;
    opacity: 1;
}

.malmon-ws__input,
.malmon-ws__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background-color: #ffffff;
    border: 1px solid rgba(15, 31, 57, 0.18);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f1f39;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.malmon-ws__textarea {
    min-height: 120px;
    resize: vertical;
}

.malmon-ws__input:focus,
.malmon-ws__textarea:focus {
    outline: none;
    border-color: #0f1f39;
    box-shadow: 0 0 0 2px rgba(15, 31, 57, 0.08);
}

.malmon-ws__input::placeholder,
.malmon-ws__textarea::placeholder {
    color: rgba(15, 31, 57, 0.4);
}

/* ── Honeypot (göms helt) ─────────────────────────────────────── */
.malmon-ws__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ── Skicka-knapp ─────────────────────────────────────────────── */
.malmon-ws__submit-row {
    margin-top: 0.5rem;
}

.malmon-ws__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: #0f1f39;
    color: #f5f6f8;
    border: 1px solid #0f1f39;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.malmon-ws__submit:hover {
    background-color: #f5f6f8;
    color: #0f1f39;
}
.malmon-ws__submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* Spinner */
.malmon-ws__submit-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: malmon-ws-spin 0.7s linear infinite;
}
.malmon-ws.is-loading .malmon-ws__submit-spinner { display: inline-block; }
@keyframes malmon-ws-spin { to { transform: rotate(360deg); } }

/* ── Notice ───────────────────────────────────────────────────── */
.malmon-ws__notice {
    margin: 1rem 0 0;
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 3px solid #0f1f39;
    background-color: rgba(15, 31, 57, 0.04);
    color: #0f1f39;
}
.malmon-ws__notice--success {
    border-left-color: #2f7a4f;
    background-color: rgba(47, 122, 79, 0.08);
    color: #1f4a31;
}
.malmon-ws__notice--error {
    border-left-color: #c0392b;
    background-color: rgba(192, 57, 43, 0.07);
    color: #8a2a1f;
}
/* Astra-p-fälla (2 klasser) */
.malmon-ws .malmon-ws__notice { margin-top: 1rem; }

/* ── Mobil ────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .malmon-ws__row {
        grid-template-columns: 1fr;
    }
    .malmon-ws__submit { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   LAYOUT: Centrerad variant – sätts via wrapper-klass .malmon-ws--centered
   ════════════════════════════════════════════════════════════════════ */
.malmon-ws--centered {
    margin-left: auto;
    margin-right: auto;
    /* max-width sätts av Elementor-kontrollen */
}

.malmon-ws--centered .malmon-ws__heading,
.malmon-ws--centered .malmon-ws__intro {
    text-align: center;
}

.malmon-ws--centered .malmon-ws__submit-row {
    text-align: center;
}

/* Knappen i centrerat läge – inline-flex centreras av text-align på row */
.malmon-ws--centered .malmon-ws__submit {
    margin-left: auto;
    margin-right: auto;
}
