/*
 * Galera — wholesale landing (vzuttya-galera-optom)
 */

.opt-hero,
.opt-benefits,
.opt-terms,
.opt-catalog,
.opt-steps,
.opt-form,
.opt-cta { padding: 64px 0; }

/* ── First screen ───────────────────────────────────────────────────────── */
.opt-hero {
    padding-top: 28px;
    background: linear-gradient(180deg, var(--color-primary-soft) 0%, #FFF 78%);
}

.opt-hero__inner {
    display: flex;
    align-items: center;
    gap: 56px;
}

.opt-hero__content { flex: 1 1 560px; min-width: 0; }
.opt-hero__media   { flex: 0 1 480px; min-width: 0; margin: 0; }

.opt-hero__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.opt-hero__title { margin: 8px 0 16px; }

.opt-hero__text {
    margin: 0;
    max-width: 58ch;
    font-size: 17px;
    color: var(--color-muted);
}

.opt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.opt-hero__phone { gap: 10px; }

.opt-hero__note {
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 14px;
}

/* Four short facts read as one band, not as two stacked pairs. */
.opt-hero__facts { margin-top: 44px; }

.opt-hero__facts .numbers__item {
    flex: 1 1 calc(25% - 12px);
    max-width: calc(25% - 12px);
}

@media (max-width: 1023px) {
    .opt-hero__facts .numbers__item { flex: 1 1 calc(50% - 8px); max-width: calc(50% - 8px); }
}

@media (max-width: 479px) {
    .opt-hero__facts .numbers__item { flex: 1 1 100%; max-width: 100%; }
}

/* ── Why us ─────────────────────────────────────────────────────────────── */
.opt-benefits { background: var(--color-bg-alt); }

.opt-benefits__head,
.opt-terms__head,
.opt-catalog__head,
.opt-steps__head { margin-bottom: 32px; }

.opt-benefits__title,
.opt-terms__title,
.opt-catalog__title,
.opt-steps__title { margin: 0; }

.opt-benefits__text,
.opt-terms__text,
.opt-catalog__text,
.opt-steps__text {
    margin: 12px 0 0;
    max-width: 62ch;
    color: var(--color-muted);
}

.opt-benefits__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.opt-card {
    flex: 1 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    padding: 26px 24px;
    border-radius: var(--radius);
    background: #FFF;
}

.opt-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.opt-card__title {
    margin: 0 0 8px;
    font-size: 18px;
}

.opt-card__text {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
}

/* ── Terms + price ladder ───────────────────────────────────────────────── */
.opt-terms__body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.opt-terms__list {
    display: flex;
    flex: 1 1 560px;
    flex-wrap: wrap;
    gap: 20px 32px;
    margin: 0;
    min-width: 0;
}

.opt-terms__row {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.opt-terms__term {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
}

.opt-terms__desc {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
}

.opt-price {
    flex: 0 1 360px;
    min-width: 0;
    padding: 30px 28px;
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #FFF;
}

.opt-price__title {
    margin: 0 0 18px;
    color: #FFF;
    font-size: 20px;
}

.opt-price .tiers__qty   { color: rgba(255, 255, 255, .75); }
.opt-price .tiers__value { color: #FFF; }
.opt-price .tiers__row   { border-bottom-color: rgba(255, 255, 255, .18); }

.opt-price__note {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

.opt-price .btn { width: 100%; }

.opt-price__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.opt-price__phone:hover { color: rgba(255, 255, 255, .8); }

/* ── What we supply ─────────────────────────────────────────────────────── */
.opt-catalog { background: var(--color-bg-alt); }

.opt-catalog__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.opt-group {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    padding: 24px 26px;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: #FFF;
}

.opt-group__title {
    margin: 0 0 8px;
    font-size: 19px;
}

.opt-group__text {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.opt-steps__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
}

.opt-steps__list .steps__item {
    flex: 1 1 calc(25% - 18px);
    max-width: calc(25% - 18px);
    flex-direction: column;
    gap: 12px;
}

/* ── Form ───────────────────────────────────────────────────────────────── */
.opt-form {
    scroll-margin-top: calc(var(--header-height) + 24px);
    background: var(--color-navy);
    color: #FFF;
}

.opt-form__inner {
    display: flex;
    gap: 56px;
}

.opt-form__content {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    min-width: 0;
}
.opt-form__body    { flex: 0 1 520px; min-width: 0; }

.opt-form__title {
    margin: 0 0 14px;
    color: #FFF;
}

.opt-form__text {
    margin: 0;
    max-width: 48ch;
    color: rgba(255, 255, 255, .78);
}

.opt-form__points {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.opt-form__point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
}

.opt-form__point svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--color-primary-light);
}

.opt-form__direct { margin-top: 28px; }

.opt-form__direct-title {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.opt-form__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
}

.opt-form__phone:hover { color: var(--color-primary-light); }

.opt-form__hours {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
}

.opt-form__missing {
    margin: 0 0 16px;
    color: var(--color-text);
}

.opt-form__body .jet-fb-form-block,
.opt-form__body > .opt-form__missing {
    padding: 32px;
    border-radius: var(--radius);
    background: #FFF;
}

.opt-form__body > .btn { width: 100%; gap: 10px; }

/* ── Closing CTA ────────────────────────────────────────────────────────── */
.opt-cta { background: var(--color-primary); color: #FFF; }

.opt-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.opt-cta__content { flex: 1 1 520px; min-width: 0; }

.opt-cta__title {
    margin: 0 0 10px;
    color: #FFF;
}

.opt-cta__text {
    margin: 0;
    max-width: 56ch;
    color: rgba(255, 255, 255, .85);
}

.opt-cta__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.opt-cta__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.opt-cta__phone:hover { color: rgba(255, 255, 255, .8); }

/* ── Adaptive ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .opt-hero__inner   { gap: 36px; }
    .opt-terms__body   { gap: 28px; }
    .opt-card          { flex: 0 1 calc(50% - 10px); max-width: calc(50% - 10px); }
    .opt-steps__list .steps__item { flex: 0 1 calc(50% - 12px); max-width: calc(50% - 12px); }
}

@media (max-width: 1023px) {
    .opt-hero,
    .opt-benefits,
    .opt-terms,
    .opt-catalog,
    .opt-steps,
    .opt-form,
    .opt-cta         { padding: 48px 0; }
    .opt-hero        { padding-top: 24px; }

    .opt-hero__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
    .opt-hero__content { flex: 0 1 auto; width: 100%; }

    /* Full-width it grew to half the screen and pushed the CTA out of view. */
    .opt-hero__media { flex: 0 1 auto; width: 100%; max-width: 520px; align-self: center; }
    .opt-hero__image { max-height: 260px; object-fit: cover; }
    .opt-hero__facts { margin-top: 32px; }

    .opt-terms__body { flex-direction: column; }
    .opt-terms__list { flex: 0 1 auto; width: 100%; }

    /* Stretched across the full width the price rows drift too far apart. */
    .opt-price       { flex: 0 1 auto; width: 100%; max-width: 560px; }

    .opt-form__inner { flex-direction: column; gap: 32px; }
    .opt-form__content,
    .opt-form__body  { flex: 0 1 auto; width: 100%; }
    .opt-form__direct { margin-top: 0; }

    .opt-cta__inner  { flex-direction: column; align-items: flex-start; gap: 24px; }
    .opt-cta__content { flex: 0 1 auto; }
    .opt-cta__actions { width: 100%; }
}

@media (max-width: 767px) {
    .opt-hero,
    .opt-benefits,
    .opt-terms,
    .opt-catalog,
    .opt-steps,
    .opt-form,
    .opt-cta          { padding: 36px 0; }

    .opt-hero__text   { font-size: 16px; max-width: none; }
    .opt-hero__actions .btn { width: 100%; }

    .opt-card         { flex: 0 1 100%; max-width: 100%; padding: 22px 20px; }
    .opt-terms__row   { flex: 0 1 100%; max-width: 100%; }
    .opt-group        { flex: 0 1 100%; max-width: 100%; padding: 20px 22px; }
    .opt-steps__list .steps__item { flex: 0 1 100%; max-width: 100%; }

    .opt-price        { padding: 24px 20px; }
    .opt-form__phone  { font-size: 22px; }
    .opt-form__body .jet-fb-form-block,
    .opt-form__body > .opt-form__missing { padding: 22px 18px; }
    .opt-cta__actions .btn { width: 100%; }
}

/* ── Wholesale form layout ──────────────────────────────────────────────── */
/* Seven stacked fields made the card ~1000px tall — too much friction for ad
   traffic. Short fields go two per row and the checkboxes become chips.
   Rows are matched through the class JetFormBuilder puts on the input, so
   without :has() support the form simply stays single-column. */
.opt-form .jet-form-builder {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.opt-form .jet-form-builder-row {
    /* A row is a flex ITEM of the form, but must stay a block inside itself:
       as a flex container it put the label and the fields side by side and the
       checkbox group overflowed the card. */
    display: block;
    flex: 1 1 100%;
    min-width: 0;
    margin-bottom: 0;
}

.opt-form .jet-form-builder-row:has(.opt-half) {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
}

.opt-form .jet-form-builder textarea.jet-form-builder__field { min-height: 92px; }

/* Checkbox chips */
.opt-form .jet-form-builder-row:has(.opt-chips) .jet-form-builder__fields-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.opt-form .jet-form-builder-row:has(.opt-chips) .jet-form-builder__field-wrap {
    flex: 0 1 auto;
}

.opt-form .jet-form-builder-row:has(.opt-chips) .jet-form-builder__field-label {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-bg);
    font-size: 14px;
    transition: border-color var(--transition), background-color var(--transition);
}

.opt-form .jet-form-builder-row:has(.opt-chips) .jet-form-builder__field-label:hover {
    border-color: var(--color-primary);
}

.opt-form .jet-form-builder-row:has(.opt-chips) .jet-form-builder__field-label:has(:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.opt-form .jet-form-builder-row.field-type-submit-field { margin-top: 4px; }

/* Reassurance under the button */
/* Sits on the dark section, not on the white card. */
.opt-form__legal {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    text-align: center;
}

/* The direct-contact block reads as a card, not a stray line. It sits right
   under the bullets: pinned to the bottom it left a 250px hole mid-column. */
.opt-form__direct {
    align-self: flex-start;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
}

/* Two short fields still fit side by side on a tablet; only a phone needs
   the single column. */
@media (max-width: 599px) {
    .opt-form .jet-form-builder-row:has(.opt-half) { flex: 1 1 100%; max-width: 100%; }
}
