/**
 * RentOut page styles
 * Extracted from inline styles in Views/Home/RentOut.cshtml
 */

/* Calculator card */
.rent-calc {
    background: var(--sam-white);
    border-radius: var(--radius-xl);
    padding: var(--s-5) var(--s-5);
    box-shadow: var(--shadow-3);
}

/* Calculator results/error box shared styles */
.rent-calc__result,
.rent-calc__error {
    margin: var(--s-4) 0 var(--s-2);
    padding: var(--s-3);
    background: var(--sam-brown-light);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}

/* Calculator result price */
.rent-calc__result-price {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--sam-dark);
    font-variant-numeric: tabular-nums;
}

/* Calculator submit button */
.rent-calc__submit {
    width: 100%;
    justify-content: center;
    margin-top: var(--s-3);
}

/* Final CTA single column layout */
.rent-out-cta .final-cta__card {
    grid-template-columns: 1fr;
    text-align: center;
}

.rent-out-cta .final-cta__text {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.rent-out-cta .final-cta__ctas {
    justify-content: center;
}

/* Equal width buttons in hero and CTA sections */
.hero-btns {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
}

.hero-btns .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
    padding:var(--s-3)
}

.rent-out-cta .final-cta__ctas .btn {
    min-width: 180px;
    justify-content: center;
}

.pricing-card__actions .btn {
    min-width: 140px;
    justify-content: center;
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        min-width: unset;
    }

    .rent-out-cta .final-cta__ctas {
        flex-direction: column;
        width: 100%;
    }

    .rent-out-cta .final-cta__ctas .btn {
        width: 100%;
        min-width: unset;
    }
}

/* ── Hero ──────────────────────────────────────────────────────────
   Moved out of the ~110-line <style> block that used to sit in
   Views/Home/RentOut.cshtml, so it caches with the rest of this file. */
.hero {
    background: var(--sam-dark);
    color: #fff;
    padding: 80px 0 56px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(255, 109, 89, .15) 0%, transparent 60%);
}

.hero .inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    position: relative;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: 0 0 20px;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 480px;
}

/* Layout is set by the .hero-btns rule above, shared with the CTA section; the hero
   copy just needs room between the buttons and what follows. */
.hero-btns {
    margin-bottom: 48px;
}

.hero-bullets {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hero-bullets li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 17px;
    color: rgba(255, 255, 255, .85);
}

.hero-bullets li::before {
    content: "✓";
    color: var(--sam-red);
    font-weight: 700;
}

/* The second hero column. It was called .hero-img and was hidden below 1100px —
   understandably, for something named after a decorative image, except that it holds
   the rent calculator, the page's main tool. Hiding it left the calculator reachable
   only through the "Beräkna hyra" button and a trip to /Home/RentalCalculator on every
   phone and tablet. Renamed for what it is, and it now stacks under the hero copy
   instead of disappearing. */
.hero-calc {
    align-self: center;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .hero .inner {
        grid-template-columns: 1fr;
        /* One column, so the calculator sits below the copy rather than beside it;
           bottom-alignment of two unequal columns no longer means anything. */
        align-items: start;
        gap: 32px;
    }

    .hero-calc {
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 0 32px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .inner {
        padding: 0 16px;
    }

    /* The calculator now sits directly below these buttons rather than beside them,
       so the 48px that separated them from the next section is too much here. */
    .hero-btns {
        margin-bottom: 24px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
