
/* ==========================================================
   /ui/css/base/ljh-forms.css
   LJH FORMS – Global Base
   ----------------------------------------------------------
   Ansvar:
   - Formulärstruktur och spacing
   - Input, textarea, select – styling
   - Form grid och layout
   - Form row (label + input i kolumn)
   - Checkbox / radio
   - Action bar
   ----------------------------------------------------------
   ÄGER ENDAST FORMULÄR – INTE LAYOUT
   Inga fasta bredder, inga layoutregler
========================================================== */


/* ==========================================================
   FORM ROOT
========================================================== */

.ljh-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    min-width: 0;
}


/* ==========================================================
   FORM FIELD
========================================================== */

.ljh-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.ljh-form-field.is-frozen {
    opacity: 0.5;
    pointer-events: none;
}


/* ==========================================================
   FORM SHELL – Visuellt skal, ingen layout
========================================================== */

.ljh-form-shell {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    padding: 1.8rem;
    border-radius: 20px;
}


/* ==========================================================
   FORM ROW – Label + input i kolumn
   (från ljh-banner.css)
========================================================== */

.ljh-form-row {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ljh-form-row label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
}

.ljh-form-row input,
.ljh-form-row textarea {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.85);
    color: #111;
    border: 1px solid rgba(0,0,0,0.12);
}

.ljh-form-row textarea {
    min-height: 180px;
    resize: vertical;
}

.ljh-form-row ::placeholder {
    color: rgba(0,0,0,0.45);
}


/* ==========================================================
   INPUTS – input, textarea, select
========================================================== */

.ljh-form input,
.ljh-form textarea,
.ljh-form select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 0.95rem;
    font-family: inherit;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.22),
        rgba(255,255,255,0.14)
    );
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(235,245,255,0.95);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.ljh-form input:focus,
.ljh-form textarea:focus,
.ljh-form select:focus {
    outline: none;
    border-color: rgba(120,180,255,0.6);
    box-shadow: 0 0 0 2px rgba(120,180,255,0.15);
}

.ljh-form input::placeholder,
.ljh-form textarea::placeholder {
    color: rgba(180,210,255,0.4);
}


/* ==========================================================
   ACTION BAR
========================================================== */

.ljh-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.2rem;
}


/* ==========================================================
   CHECKBOX / RADIO
========================================================== */

.ljh-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ljh-checkbox input {
    accent-color: var(--ljh-aqua);
}


/* ==========================================================
   FORM GRID
========================================================== */

.ljh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.ljh-form-span-12 { grid-column: 1 / -1; }
.ljh-form-span-6  { grid-column: span 1; }

@media (max-width: 600px) {
    .ljh-form-grid   { grid-template-columns: 1fr; }
    .ljh-form-span-6 { grid-column: 1 / -1; }
}

