/* =========================================================
   Content pages — safabrura.co.il
   Locked state, contact form, and the plain editorial pages.
   ========================================================= */

/* ---------------------------------------------------------
   Page shell — a readable column and real typography for
   pages whose content is written in the editor.
   --------------------------------------------------------- */

body.page .site-content .page-body,
body.page-slug-weekly #content > *,
body.page-slug-live #content > *,
body.page-slug-contact #content > * {
    font-family: var(--safa-ui);
}

.page-lead {
    max-width: 62ch;
    margin: 0 auto 26px;
    text-align: center;
    font-size: 17px;
    line-height: 1.7;
    color: var(--hd-ink-soft);
}

.page-head {
    text-align: center;
    margin-bottom: 30px;
}
.page-head h1 {
    margin: 0;
    font-family: var(--safa-display);
    font-size: clamp(29px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
}
.page-head h1::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hd-accent), var(--hd-accent-2));
}

/* ---------------------------------------------------------
   Locked page
   --------------------------------------------------------- */

.locked {
    position: relative;
    overflow: hidden;
    max-width: 720px;
    margin: 10px auto 30px;
    padding: 52px 40px 46px;
    border: 1px solid rgba(92, 42, 77, .1);
    border-radius: 26px;
    background: linear-gradient(155deg, #fdf5fa 0%, #f7f1fc 48%, #fff6f0 100%);
    box-shadow: 0 10px 34px rgba(92, 42, 77, .08);
    text-align: center;
    font-family: var(--safa-ui);
    color: var(--hd-ink);
}
.locked__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
}
.locked__glow--a {
    width: 300px;
    height: 300px;
    top: -140px;
    inset-inline-start: -90px;
    background: radial-gradient(circle, #ffd6e4 0%, transparent 70%);
}
.locked__glow--b {
    width: 340px;
    height: 340px;
    bottom: -180px;
    inset-inline-end: -110px;
    background: radial-gradient(circle, #e2d1f7 0%, transparent 70%);
}
.locked__inner {
    position: relative;
    z-index: 1;
}

.locked__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(92, 42, 77, .08);
    box-shadow: 0 10px 26px rgba(92, 42, 77, .12);
}
.locked__icon svg {
    width: 30px;
    height: 30px;
    fill: var(--hd-accent);
}

.locked__eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--hd-accent);
}
.locked__title {
    margin: 0;
    font-family: var(--safa-display);
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--hd-ink);
    text-wrap: balance;
}
.locked__lead {
    margin: 14px auto 0;
    max-width: 46ch;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--hd-ink-soft);
}

.locked__list {
    list-style: none;
    margin: 24px auto;
    padding: 20px 24px;
    max-width: 420px;
    text-align: right;
    border-radius: 18px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .9);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.locked__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--hd-ink);
}
.locked__list svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    fill: #2f9e6b;
}

.locked__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.locked__btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.locked__btn--primary {
    color: #fff;
    background: linear-gradient(120deg, var(--hd-accent), var(--hd-accent-2));
    box-shadow: 0 6px 18px rgba(194, 88, 143, .3);
}
.locked__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(194, 88, 143, .4);
    color: #fff;
}
.locked__btn--ghost {
    color: var(--hd-ink);
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--hd-line);
}
.locked__btn--ghost:hover {
    transform: translateY(-2px);
    color: var(--hd-accent);
    border-color: rgba(194, 88, 143, .35);
}

.locked__help {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--hd-ink-soft);
}
.locked__help a {
    color: var(--hd-accent);
}

/* ---------------------------------------------------------
   Contact form
   --------------------------------------------------------- */

/* The theme sets no box-sizing, so a full-width input plus its padding and
   border grew past its column and the two fields in a row collided. */
.cform,
.cform *,
.cform *::before,
.cform *::after {
    box-sizing: border-box;
}

.cform {
    max-width: 620px;
    margin: 26px auto 0;
    font-family: var(--safa-ui);
    text-align: right;
}
.cform p {
    max-width: none;
    margin-inline: 0;
    text-align: right;
}
.cform__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 30px 30px;
    border: 1px solid rgba(92, 42, 77, .09);
    border-radius: 22px;
    background: linear-gradient(160deg, #fdf6fa 0%, #f8f4fd 58%, #fff7f2 100%);
    box-shadow: 0 2px 12px rgba(92, 42, 77, .05);
}
.cform__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.cform__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    min-width: 0;
}
.cform__field label {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--hd-ink);
}
.cform__field label span {
    color: var(--hd-accent);
}
.cform__field input,
.cform__field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(92, 42, 77, .14);
    border-radius: 12px;
    background: #fff;
    font-family: var(--safa-ui);
    font-size: 16px;
    color: var(--hd-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cform__field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}
.cform__field input:focus,
.cform__field textarea:focus {
    outline: none;
    border-color: rgba(194, 88, 143, .5);
    box-shadow: 0 0 0 3px rgba(194, 88, 143, .12);
}

.cform__note {
    margin: 0;
    font-size: 13.5px;
    color: var(--hd-ink-soft);
}

.cform__submit {
    align-self: flex-end;
    padding: 12px 34px;
    border: 0;
    border-radius: 999px;
    font-family: var(--safa-ui);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, var(--hd-accent), var(--hd-accent-2));
    box-shadow: 0 6px 18px rgba(194, 88, 143, .3);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cform__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(194, 88, 143, .4);
}

/* the honeypot must be reachable by robots and invisible to people */
.cform__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cform__done {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(47, 125, 91, .09);
    border: 1px solid rgba(47, 125, 91, .2);
}
.cform__done svg {
    flex: none;
    width: 22px;
    height: 22px;
    fill: #2f9e6b;
}
.cform__done strong {
    display: block;
    font-size: 16px;
    color: #2f7d5b;
}
.cform__done span {
    font-size: 14.5px;
    color: var(--hd-ink-soft);
}
.cform__error {
    margin: 0 0 16px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    color: #b4573b;
    background: rgba(196, 96, 70, .09);
    border: 1px solid rgba(196, 96, 70, .22);
}

/* ---------------------------------------------------------
   Contact details, above the form
   --------------------------------------------------------- */

/* Only the page's own paragraphs — the form's fields are paragraphs too,
   and centring them collapsed the whole form into a narrow column. */
.page-slug-contact #content > p {
    max-width: 62ch;
    margin-inline: auto;
    text-align: center;
    font-size: 17px;
    line-height: 1.8;
    color: var(--hd-ink-soft);
}

/* ---------------------------------------------------------
   Weekly bulletin
   --------------------------------------------------------- */

.page-slug-weekly #content h1,
.page-slug-weekly #content h2 {
    text-align: center;
    font-family: var(--safa-display);
}
.page-slug-weekly #content > p,
.page-slug-weekly #content > div {
    text-align: center;
}
/* the download link, whatever the editor wrapped it in — but only links
   that were already meant to look like buttons, not ordinary prose links */
.page-slug-weekly #content .wp-block-button__link,
.page-slug-weekly #content a[style*="background"],
.page-slug-weekly #content a[class*="button"],
.page-slug-weekly #content a[class*="btn"] {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--hd-accent), var(--hd-accent-2)) !important;
    color: #fff !important;
    font-size: 16.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(194, 88, 143, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.page-slug-weekly #content .wp-block-button__link:hover,
.page-slug-weekly #content a[style*="background"]:hover,
.page-slug-weekly #content a[class*="button"]:hover,
.page-slug-weekly #content a[class*="btn"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(194, 88, 143, .4);
}

/* ---------------------------------------------------------
   Live broadcasts
   --------------------------------------------------------- */

.page-slug-live #content {
    max-width: 780px;
    margin: 0 auto;
}
.page-slug-live #content h1,
.page-slug-live #content h2,
.page-slug-live #content h3 {
    font-family: var(--safa-display);
    text-align: center;
    line-height: 1.3;
}
.page-slug-live #content p {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--hd-ink);
}

/* The join button comes from the Meet plugin */
.page-slug-live #content .ovs-meet-button,
.page-slug-live #content a.ovs-join-meeting,
.page-slug-live #content .ovs-gmm-button {
    display: inline-block;
    padding: 14px 38px !important;
    border-radius: 999px !important;
    background: linear-gradient(120deg, #d6396b, #c2588f) !important;
    color: #fff !important;
    border: 0 !important;
    font-family: var(--safa-ui) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 24px rgba(214, 57, 107, .32) !important;
}

/* Blocks of flat colour typed into the editor, softened into cards.
   Remove these three rules if the page is ever re-written in blocks. */
.page-slug-live #content [style*="background"] {
    background: linear-gradient(160deg, #fdf6fa 0%, #f8f4fd 58%, #fff7f2 100%) !important;
    border: 1px solid rgba(92, 42, 77, .09);
    border-radius: 18px;
    padding: 20px 24px !important;
    margin: 18px 0 !important;
    box-shadow: 0 2px 12px rgba(92, 42, 77, .05);
    color: var(--hd-ink) !important;
}
.page-slug-live #content [style*="background"] p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 600px) {
    .locked {
        padding: 38px 22px 34px;
        border-radius: 20px;
    }
    .locked__actions .locked__btn {
        flex: 1 1 100%;
        text-align: center;
    }
    .cform__form {
        padding: 22px 18px 24px;
    }
    .cform__row {
        grid-template-columns: 1fr;
    }
    .cform__submit {
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .locked__btn,
    .cform__submit,
    .page-slug-weekly #content .wp-block-button__link {
        transition: none !important;
    }
}

/* ---------------------------------------------------------
   Checkout
   The markup and ids belong to the payment plugin — this only
   dresses them. Nothing here may rename or reorder a field.
   --------------------------------------------------------- */

.checkout,
.checkout * {
    box-sizing: border-box;
}

.checkout {
    max-width: 620px;
    margin: 0 auto;
    padding: 4px 0 30px;
    font-family: var(--safa-ui);
    color: var(--hd-ink);
    text-align: right;
}

.checkout__head {
    text-align: center;
    margin-bottom: 24px;
}
.checkout__eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--hd-accent);
}
.checkout__title {
    margin: 0;
    font-family: var(--safa-display);
    font-size: clamp(27px, 3.6vw, 36px);
    font-weight: 700;
    line-height: 1.2;
}
.checkout__lead {
    margin: 12px auto 0;
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.7;
    color: var(--hd-ink-soft);
}

/* the plugin's own intro line, now a caption over the form */
.checkout #icredit-payment-pre {
    max-width: none;
    margin: 0 0 10px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--hd-ink-soft);
    text-align: center;
}

/* ---------- What is being bought ---------- */

.checkout #icredit-plan-information {
    max-width: none;
    margin: 0 0 18px;
    padding: 20px 24px;
    border: 1px solid rgba(92, 42, 77, .09);
    border-radius: 18px;
    background: linear-gradient(160deg, #fdf6fa 0%, #f8f4fd 58%, #fff7f2 100%);
    box-shadow: 0 2px 12px rgba(92, 42, 77, .05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: auto;
    float: none;
    overflow: visible;
}
.checkout #icredit-plan-information .plan-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--hd-line);
    font-size: 17px;
    font-weight: 600;
    color: var(--hd-ink);
    font-variant-numeric: tabular-nums;
    width: auto;
    float: none;
}
.checkout #icredit-plan-information .plan-info:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.checkout #icredit-plan-information .plan-info label {
    font-size: 14px;
    font-weight: 400;
    color: var(--hd-ink-soft);
    margin: 0;
    display: block;
}

/* ---------- The form ---------- */

.checkout #icredit-form-holder {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 26px 26px 24px;
    float: none;
    border: 1px solid rgba(92, 42, 77, .09);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(92, 42, 77, .05);
}

.checkout #icredit-form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: auto;
    float: none;
}
.checkout .icredit-form-input {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* the address gets the full width, as an address needs */
.checkout .icredit-form-input.input-address {
    grid-column: 1 / -1;
    width: auto;
}
.checkout .icredit-form-input-label {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--hd-ink);
    width: auto;
    float: none;
    padding: 0;
    text-align: right;
}
.checkout .icredit-form-input-element {
    width: auto;
    float: none;
}
.checkout .icredit-form-input-element input,
.checkout .icredit-form-input.input-address #address,
.checkout .icredit-form-input-element #email {
    width: 100%;
    max-width: none;
    padding: 11px 14px;
    border: 1px solid rgba(92, 42, 77, .14);
    border-radius: 12px;
    background: #fff;
    font-family: var(--safa-ui);
    font-size: 16px;
    color: var(--hd-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.checkout .icredit-form-input-element input:focus {
    outline: none;
    border-color: rgba(194, 88, 143, .5);
    box-shadow: 0 0 0 3px rgba(194, 88, 143, .12);
}

.checkout #icredit-subscriptions-submit {
    margin-top: 20px;
    width: auto;
    float: none;
    text-align: center;
}
.checkout #icredit-proceed-to-payment {
    width: 100%;
    padding: 14px 30px;
    border: 0;
    border-radius: 999px;
    font-family: var(--safa-ui);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, var(--hd-accent), var(--hd-accent-2));
    box-shadow: 0 8px 22px rgba(194, 88, 143, .32);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.checkout #icredit-proceed-to-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(194, 88, 143, .42);
}
/* the plugin adds .loading while it works — keep that legible */
.checkout #icredit-proceed-to-payment.loading {
    opacity: .55;
    transform: none;
    cursor: progress;
}

/* ---------- Notices ---------- */

.checkout__alert,
.checkout #icredit-already-subscribed {
    max-width: none;
    margin: 0 0 16px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15.5px;
    line-height: 1.6;
    text-align: center;
    background: rgba(196, 96, 70, .09);
    border: 1px solid rgba(196, 96, 70, .22);
    color: #b4573b;
}
.checkout #icredit-already-subscribed {
    background: rgba(47, 125, 91, .10);
    border-color: rgba(47, 125, 91, .2);
    color: #2f7d5b;
}
.checkout__alert a {
    color: inherit;
    font-weight: 600;
}

.checkout__empty {
    text-align: center;
    padding: 30px 0;
}
.checkout__empty p {
    margin: 0 0 16px;
    color: var(--hd-ink-soft);
}

/* ---------- Reassurance ---------- */

.checkout__foot {
    margin-top: 22px;
    text-align: center;
}
.checkout__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--hd-ink-soft);
}
.checkout__secure svg {
    flex: none;
    width: 15px;
    height: 15px;
    fill: #2f9e6b;
}
.checkout__links {
    margin: 0;
    font-size: 13.5px;
    color: var(--hd-ink-soft);
}
.checkout__links a {
    color: var(--hd-ink-soft);
    text-decoration: none;
}
.checkout__links a:hover {
    color: var(--hd-accent);
    text-decoration: underline;
}
.checkout__links span {
    padding: 0 7px;
    opacity: .5;
}

@media (max-width: 560px) {
    .checkout #icredit-form-inputs {
        grid-template-columns: 1fr;
    }
    .checkout #icredit-form-holder {
        padding: 20px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout #icredit-proceed-to-payment {
        transition: none !important;
    }
}
