/* Institutions landing page (/mosdot). Loaded only by Mosdot.razor; uses the site colors from site.css */

.mosdot-page {
    --md-indigo: #383DC1;
    --md-amber: #FFBA00;
    --md-ink: #2b2d42;
    --md-muted: #5f6178;
    --md-tint: #f5f5fc;
    --md-line: #e3e4f2;
    color: var(--md-ink);
}

.mosdot-page section {
    scroll-margin-top: 90px;
}

/* Hero */
.md-hero {
    background: linear-gradient(180deg, var(--md-tint) 0%, #fff 100%);
    padding: 56px 0 48px;
}

/* The H1 (search terms) looks like a small pill label; site.css forces transparent background on h1, so the pill is on the span */
h1.md-eyebrow {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 14px;
}

.md-eyebrow span {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--md-line);
    color: var(--md-indigo);
    border-radius: 999px;
    padding: 4px 14px;
}

.md-title {
    font-family: 'Karantina', sans-serif;
    font-size: 88px;
    font-weight: 700;
    line-height: .95;
    color: var(--md-indigo);
    margin: 0 0 12px;
    text-wrap: balance;
}

.md-subtitle {
    font-size: 26px;
    text-wrap: balance;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 14px;
}

.md-lead {
    font-size: 18px;
    color: var(--md-muted);
    max-width: 38em;
    margin-bottom: 24px;
}

.md-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.md-phone {
    margin: 14px 0 0;
    color: var(--md-muted);
}

.md-sep {
    margin: 0 8px;
}

/* keeps "ל-" together with the email address */
.md-nowrap {
    white-space: nowrap;
}

.md-phone a,
.md-form-alt a {
    color: var(--md-indigo);
    font-weight: 500;
}

.md-perks {
    list-style: none;
    margin: 0;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--md-line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(56, 61, 193, .08);
    display: grid;
    gap: 16px;
    font-size: 20px;
    font-weight: 500;
}

.md-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.md-perks i {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--md-amber);
    color: var(--md-indigo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* Sections */
.md-section {
    padding: 56px 0;
}

.md-alt {
    background: var(--md-tint);
}

.md-narrow {
    max-width: 760px;
}

.md-h2 {
    font-family: 'Karantina', sans-serif;
    font-size: 58px;
    font-weight: 700;
    line-height: 1;
    color: var(--md-indigo);
    margin-bottom: 28px;
    text-wrap: balance;
}

.md-center {
    text-align: center;
    margin-top: 28px;
}

/* Pains */
.md-pain {
    background: #fff;
    border: 1px solid var(--md-line);
    border-radius: 14px;
    padding: 26px 24px;
    height: 100%;
}

.md-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--md-amber);
    color: var(--md-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.md-pain h3 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.md-problem {
    color: var(--md-muted);
    margin-bottom: 12px;
}

.md-solution {
    border-top: 1px dashed var(--md-line);
    padding-top: 12px;
    margin: 0;
}

/* Trust and offer lists */
.md-trust,
.md-offer {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px 32px;
}

.md-trust li,
.md-offer li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 17px;
    line-height: 1.6;
}

.md-trust i,
.md-offer i {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--md-tint);
    color: var(--md-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.md-offer i {
    background: #fff;
}

.md-trust a {
    color: var(--md-indigo);
}

.md-trust i {
    background: var(--md-amber);
    border-radius: 12px;
}

/* Hero trust badges (אנ"ש, שבת, צנוע) */
.md-badges {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.md-badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--md-line);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 15px;
}

.md-badges i,
.md-badges .md-candles {
    color: var(--md-indigo);
    font-size: 16px;
}

.md-badges .md-candles {
    font-size: 18px;
}

/* Highlighted trust cards */
.md-trust-card {
    background: #fff;
    border: 1px solid var(--md-line);
    border-top: 4px solid var(--md-amber);
    border-radius: 14px;
    padding: 24px 22px;
    height: 100%;
}

.md-trust-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 8px;
}

.md-trust-card p {
    margin: 0;
    color: var(--md-muted);
}

.md-icon .md-candles {
    font-size: 28px;
}

/* FAQ */
.md-faq {
    display: grid;
    gap: 10px;
}

.md-faq details {
    background: #fff;
    border: 1px solid var(--md-line);
    border-radius: 12px;
    padding: 0 20px;
}

.md-faq summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    padding: 16px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.md-faq summary::-webkit-details-marker {
    display: none;
}

.md-faq summary::after {
    content: "+";
    color: var(--md-indigo);
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
}

.md-faq details[open] summary::after {
    content: "−";
}

.md-faq summary:focus-visible {
    outline: 3px solid var(--md-amber);
    outline-offset: 2px;
}

.md-faq details p {
    margin: 0 0 16px;
    color: var(--md-muted);
}

/* Videos */
.md-video {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1d2a3a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.md-video iframe,
.md-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.md-video-thumb {
    padding: 0;
    background: none;
    cursor: pointer;
}

.md-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.md-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: var(--md-amber);
    color: var(--md-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding-left: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .15s ease;
}

.md-video-thumb:hover .md-play,
.md-video-thumb:focus-visible .md-play {
    transform: scale(1.08);
}

.md-video-thumb:focus-visible {
    outline: 3px solid var(--md-amber);
    outline-offset: -3px;
}

.md-video-title {
    font-weight: 500;
    margin: 12px 0 0;
}

/* Pricing */
.md-tier {
    border: 1px solid var(--md-line);
    border-radius: 14px;
    padding: 26px 22px;
    text-align: center;
    height: 100%;
    background: #fff;
}

.md-tier-main {
    border: 2px solid var(--md-amber);
    box-shadow: 0 10px 30px rgba(255, 186, 0, .18);
}

.md-tier h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 14px;
}

.md-price {
    font-size: 18px;
    color: var(--md-muted);
    margin: 0;
}

.md-price span {
    font-size: 44px;
    font-weight: 700;
    color: var(--md-indigo);
}

.md-price-note {
    color: var(--md-muted);
    margin: 4px 0 0;
}

.md-price-text {
    font-size: 18px;
    margin-bottom: 16px;
}

.md-tier-mail {
    margin: 12px 0 0;
    color: var(--md-muted);
    font-size: 15px;
}

.md-tier-mail a {
    color: var(--md-indigo);
}

.md-price-footer {
    text-align: center;
    color: var(--md-muted);
    margin: 22px 0 0;
}

/* Form */
.md-form-wrap {
    max-width: 680px;
}

.md-form-card {
    background: #fff;
    border: 1px solid var(--md-line);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(56, 61, 193, .08);
}

.md-form-card .md-h2 {
    margin-bottom: 8px;
}

.md-form-intro {
    color: var(--md-muted);
    margin-bottom: 22px;
}

.md-form-card .form-control,
.md-form-card .form-select {
    min-height: 48px;
    font-size: 17px;
}

.md-form-card .form-control[dir="ltr"] {
    text-align: right;
}

.md-form-alt {
    text-align: center;
    color: var(--md-muted);
    margin: 18px 0 0;
}

.md-result {
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.md-result p {
    margin: 0;
}

.md-result-ok {
    background: #e9f8ef;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.md-result-ok i {
    color: #18a957;
    font-size: 28px;
}

.md-result-error {
    background: #fdecec;
    border: 1px solid #f3c2c2;
}

.md-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.md-result a:not(.btn) {
    color: var(--md-indigo);
    font-weight: 500;
}

.md-field-hint {
    color: var(--md-muted);
    font-size: 15px;
    margin: 0 0 8px;
}

/* Honeypot: visually hidden but not display:none (some bots skip hidden fields).
   Clipped in place rather than pushed off-screen, which would widen an RTL page. */
.md-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

/* This page offers "first month free", not the site-wide "25 מסמכים חינם" floating button from Header.razor.
   mosdot.css is loaded only on /mosdot, so the site-wide button is hidden here only. */
div.position-fixed:has(> a.hebrew-text[href="https://oadminew.co.il/newcompany"]) {
    display: none !important;
}

.md-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1050;
}

/* Mobile sticky bar */
.md-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
}

.md-sticky .btn {
    font-size: 17px;
    padding: 10px 8px;
}

@media (max-width: 991.98px) {
    .mosdot-page {
        padding-bottom: 70px;
    }
}

@media (max-width: 767.98px) {
    .md-hero {
        padding: 32px 0 36px;
    }

    .md-title {
        font-size: 60px;
    }

    .md-subtitle {
        font-size: 21px;
    }

    .md-lead {
        font-size: 17px;
    }

    .md-actions .btn {
        width: 100%;
    }

    .md-perks {
        font-size: 18px;
        padding: 18px 20px;
    }

    .md-section {
        padding: 40px 0;
    }

    .md-h2 {
        font-size: 46px;
    }

    .md-trust,
    .md-offer {
        grid-template-columns: 1fr;
    }

    .md-form-card {
        padding: 26px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .md-play {
        transition: none;
    }
}
