/* ==========================================================
   /ui/css/modules/ljh-campaign-order.css
   ----------------------------------------------------------
   LJH – Kundens beställningsformulär (offer.php)
   ----------------------------------------------------------
   Ansvar:
     - Fristående sida: bakgrund, header, footer
     - Kampanjrutan (skyltens utseende i liten version)
     - Formulärkort: fält, val, kryssrutor, fel, knapp
     - Tack-ruta, kampanjval, meddelanderuta

   Prefix: ljh-offer-
   Laddas direkt av /offer.php (inte via css_loader)
   Designspråk: Aqua Dark Glass (formulärfält i HR-stil)
   Version: V 0.04
   ========================================================== */


/* ==========================================================
   1. SIDA
   ---------------------------------------------------------- */

.ljh-offer-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #dbe6f5;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(0, 120, 200, 0.18), transparent 60%),
        #0a0f1a;
}

.ljh-offer-body *,
.ljh-offer-body *::before,
.ljh-offer-body *::after {
    box-sizing: border-box;
}

.ljh-offer-body [hidden] {
    display: none !important;
}

.ljh-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ljh-offer-logo-link {
    display: inline-flex;
}

.ljh-offer-logo {
    display: block;
    height: 48px;
    width: auto;
    border-radius: 6px;
}

.ljh-offer-back {
    font-size: 13px;
    color: #9fb3c8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ljh-offer-back:hover {
    color: #dbe9ff;
}

.ljh-offer-main {
    flex: 1;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 28px 16px 56px;
}

.ljh-offer-footer {
    padding: 18px 16px 28px;
    text-align: center;
    font-size: 12px;
    color: #6f8399;
}


/* ==========================================================
   2. KORT + RUBRIKER
   ---------------------------------------------------------- */

.ljh-offer-card {
    margin-bottom: 20px;
    padding: 28px 32px;
    border-radius: 16px;
    background: rgba(0, 180, 220, 0.04);
    border: 0.5px solid rgba(0, 200, 255, 0.18);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.ljh-offer-h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    color: #f2f6fb;
}

.ljh-offer-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: #9fb3c8;
}

.ljh-offer-link {
    color: #5bc8ff;
}


/* ==========================================================
   3. KAMPANJRUTAN (skyltens utseende)
   ---------------------------------------------------------- */

.ljh-offer-campaign {
    margin-bottom: 20px;
    padding: 22px 28px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96),
        rgba(240, 245, 255, 0.94)
    );
    border: 3px solid #e6c36a;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        inset 0 2px 10px rgba(255, 255, 255, 0.7);
}

.ljh-offer-campaign-label {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7f99;
}

.ljh-offer-campaign-title {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
    color: #5b8fe8;
    letter-spacing: 0.3px;
}

.ljh-offer-campaign-price {
    font-size: 34px;
    font-weight: 700;
    color: #1b5e20;
}

.ljh-offer-campaign-price span {
    margin-left: 6px;
    font-size: 17px;
    font-weight: 500;
    color: #6b7f99;
}

.ljh-offer-campaign-old {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2px;
    font-size: 15px;
}

.ljh-offer-old-price {
    color: #9aa6b8;
    text-decoration: line-through;
}

.ljh-offer-save {
    font-weight: 600;
    color: #2e7d32;
}

.ljh-offer-campaign-valid {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1b5e20;
}


/* ==========================================================
   4. FORMULÄR – FÄLTGRUPPER
   ---------------------------------------------------------- */

.ljh-offer-fieldset {
    margin: 0 0 22px;
    padding: 0;
    border: none;
    min-width: 0;
}

.ljh-offer-legend {
    margin: 0 0 12px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5bc8ff;
}

.ljh-offer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ljh-offer-field {
    min-width: 0;
    margin-bottom: 14px;
}

.ljh-offer-field-full {
    margin-top: 16px;
}

.ljh-offer-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9fb3c8;
}

.ljh-offer-req {
    color: #f0a020;
}


/* ==========================================================
   5. FÄLT (HR-stil)
   ---------------------------------------------------------- */

.ljh-offer-input {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #f2f6fb;
    background: rgba(0, 200, 255, 0.05);
    border: 0.5px solid rgba(0, 200, 255, 0.25);
    border-radius: 8px;
    outline: none;
    color-scheme: dark;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ljh-offer-input:focus {
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.12);
}

.ljh-offer-input::placeholder {
    color: rgba(159, 179, 200, 0.5);
    opacity: 1;
}

.ljh-offer-input.has-error {
    border-color: rgba(255, 90, 90, 0.8);
}

textarea.ljh-offer-input {
    min-height: 96px;
    resize: vertical;
}

select.ljh-offer-input option {
    color: #111;
    background: #fff;
}


/* ==========================================================
   6. VAL (radio) + KRYSSRUTOR
   ---------------------------------------------------------- */

.ljh-offer-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.ljh-offer-choice,
.ljh-offer-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #dbe6f5;
    background: rgba(0, 200, 255, 0.04);
    border: 0.5px solid rgba(0, 200, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ljh-offer-choice:hover,
.ljh-offer-check:hover {
    border-color: rgba(0, 200, 255, 0.45);
    background: rgba(0, 200, 255, 0.08);
}

.ljh-offer-choice input,
.ljh-offer-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #00c8ff;
}

.ljh-offer-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
}

.ljh-offer-consent {
    margin: 4px 0 6px;
    align-items: flex-start;
    font-size: 13px;
    color: #b7c6d8;
}

.ljh-offer-web-extra {
    margin-top: 16px;
}


/* ==========================================================
   7. FEL + MEDDELANDEN
   ---------------------------------------------------------- */

.ljh-offer-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #ff8a8a;
}

.ljh-offer-alert {
    margin-bottom: 18px;
    padding: 10px 14px;
    font-size: 13px;
    color: #ff9a9a;
    background: rgba(220, 50, 50, 0.1);
    border: 0.5px solid rgba(220, 50, 50, 0.35);
    border-radius: 8px;
}


/* ==========================================================
   8. KNAPP
   ---------------------------------------------------------- */

.ljh-offer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 0.5px solid rgba(0, 200, 255, 0.12);
}

.ljh-offer-btn {
    display: inline-block;
    padding: 12px 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #04121f;
    background: linear-gradient(145deg, #fff6b0, #f3d76a, #d4a21e);
    border: 2px solid #c99b18;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ljh-offer-btn:hover {
    transform: translateY(-1px);
}

.ljh-offer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* ==========================================================
   9. TACK-RUTA
   ---------------------------------------------------------- */

.ljh-offer-success {
    text-align: center;
}

.ljh-offer-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1db97d;
    background: rgba(29, 185, 125, 0.12);
    border: 1px solid rgba(29, 185, 125, 0.45);
    border-radius: 50%;
}


/* ==========================================================
   10. KAMPANJVAL + MEDDELANDERUTA
   ---------------------------------------------------------- */

.ljh-offer-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ljh-offer-choose-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    text-decoration: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96),
        rgba(240, 245, 255, 0.94)
    );
    border: 3px solid #e6c36a;
    border-radius: 14px;
    transition: transform 0.2s ease;
}

.ljh-offer-choose-item:hover {
    transform: translateY(-2px);
}

.ljh-offer-choose-title {
    font-size: 20px;
    font-weight: 700;
    color: #5b8fe8;
}

.ljh-offer-choose-price {
    font-size: 24px;
    font-weight: 700;
    color: #1b5e20;
}

.ljh-offer-choose-valid {
    font-size: 13px;
    color: #4a5f7a;
}

.ljh-offer-choose-go {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2a4a;
}

.ljh-offer-message {
    text-align: center;
}


/* ==========================================================
   11. SPÄRRFÄLT MOT ROBOTAR
   ----------------------------------------------------------
   Ligger utanför skärmen (inte display:none, så enkla robotar
   fortfarande fyller i det). Syns aldrig för människor.
   ========================================================== */

.ljh-offer-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* ==========================================================
   12. SMALA SKÄRMAR
   ---------------------------------------------------------- */

@media (max-width: 640px) {

    .ljh-offer-card {
        padding: 22px 18px;
    }

    .ljh-offer-row,
    .ljh-offer-checks,
    .ljh-offer-choose-grid {
        grid-template-columns: 1fr;
    }

    .ljh-offer-campaign-title {
        font-size: 24px;
    }

    .ljh-offer-actions {
        justify-content: stretch;
    }

    .ljh-offer-actions .ljh-offer-btn {
        width: 100%;
    }
}