/* =============================================================
   FORM PAGE — outer wrapper. Sits inside .container.
   ============================================================= */
.form-page {
    max-width: 880px;
    margin-inline: auto;
}

.form-page__sub {
    text-align: end;
    font-size: 40px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 16px;
}

.form-page__heading {
    font-size: 35px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 32px;
}

.form-page__heading--orange {
    color: var(--color-primary);
}

.form-page__heading--navy {
    color: var(--color-text-heading);
}

@media (max-width: 1024px) {
    .form-page__heading {
        font-size: 26px;
    }

    .form-page__sub {
        font-size: 28px;
    }
}

/* =============================================================
   DISCONNECTION VARIANT — full-width form, sub as page H1, tight gap.
   Scoped to .form-page--disconnection-form so registration + privacy
   variants are unaffected.
   ============================================================= */
.form-page--disconnection-form {
    max-width: 1124px;                            /* override shared 880px cap; +4 vs 1120 to match source input w=555 */
}

.form-page--disconnection-form .form-page__sub {
    text-align: start;                            /* RTL → visual-right (source) */
    line-height: 1.2;                             /* 48px @ 40 (source), not 60 */
    scroll-margin-top: 100px;                     /* clear sticky header on anchor */
}

.form-page--disconnection-form .form-page__heading {
    line-height: 1;                               /* source 35/35 */
    margin-top: 130px;                            /* source ~143px Elementor section margin separating sub from form heading */
}

.form-page--disconnection-form .form-grid {
    gap: 10px 14px;                               /* row 10, col 14 (source) */
}

.form-page--disconnection-form input[type="tel"] {
    direction: rtl;                               /* tel defaults LTR — force RTL so asterisk anchors visual-right */
}

@media (max-width: 1024px) {
    .form-page--disconnection-form .form-page__sub {
        font-size: 40px;                            /* source 40 (not 28) */
        line-height: 1.2;                           /* 48px */
        padding-inline: 9px;                        /* align with panel--inline inset so heading text starts at x=25 (source) */
    }

    .form-page--disconnection-form .form-page__heading {
        font-size: 35px;                            /* source 35 (not 26) */
        line-height: 1;
        margin-top: 70px;                           /* source ~88px gap between sub and form heading on mobile */
        padding-inline: 9px;                        /* align with panel--inline inset so heading text starts at x=25 (source) */
    }

    .form-page--disconnection-form .form-grid {
        padding-inline: 0;                          /* drop extra inner offset */
    }
}

/* =============================================================
   PRIVACY VARIANT — narrow centered card with flat inputs +
   floating-card shadow. Scoped to .form-page--privacy so
   registration + disconnection are unaffected.
   ============================================================= */
.form-page--privacy {
    max-width: 417px;                             /* narrow centered card (source) */
}

/* Heading lives OUTSIDE .form-page--privacy as a sibling row so it spans the
   container max-width (source structure). Scope by its own modifier class. */
.form-page__heading--privacy {
    font-size: 45px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-text-muted);                       /* source navy */
    margin: 0 0 16px;
    text-align: center;
}

/* Panel chrome: tighter padding + drop-shadow (source) */
.form-page--privacy .form-panel--privacy {
    background: rgb(244, 242, 242);
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Inner gutter — source nests an extra inner column (10px padding + 20px
   margin-end) inside the panel, leaving form width ~357px. Total right
   gutter from panel = 10 + 20 + 10 = 40px (left gutter = 10 + 10 = 20px). */
.form-page--privacy .form-panel--privacy .form-grid {
    margin-inline-end: 30px;                      /* 10 inner-padding + 20 inner-margin */
    margin-inline-start: 10px;                    /* 10 inner-padding */
    gap: 12px;                                    /* source row pitch: 52px (40 + 12) */
}

/* Flat rectangular inputs (no border, no radius) — source */
.form-page--privacy .form-field input[type="text"],
.form-page--privacy .form-field input[type="email"],
.form-page--privacy .form-field input[type="tel"],
.form-page--privacy .form-field input[type="number"],
.form-page--privacy .form-field select,
.form-page--privacy .form-field textarea {
    border: 0;
    border-radius: 0;
    font-size: 17px;
    color: var(--color-text-muted);
}

/* Select chevron on visual-right in RTL (source) */
.form-page--privacy .form-field select {
    background-position: right 16px center;
    padding-inline-start: 42px;
    padding-inline-end: 16px;
}

/* Submit: flat rectangle, bold 18px (source) */
.form-page--privacy .form-field--submit input[type="submit"] {
    border-radius: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* File input — source uses native browser chrome with a screen-reader-only label.
   No custom button: remove form.css custom file-button rules and let the
   native <input type="file"> render unstyled. */
.form-page--privacy .form-field--file input[type="file"] {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13.33px;                           /* native UA default */
    color: rgb(0, 0, 0);
}

/* a11y utility — visually hide while keeping for screen readers (source: elementor-screen-only) */
.elementor-screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Disclaimer overrides: centered, navy, no underline on link (source) */
.form-page--privacy .form-disclaimer {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.form-page--privacy .form-disclaimer a {
    text-decoration: none;
}

@media (max-width: 1024px) {
    .form-page--privacy {
        max-width: 100%;                            /* full container at mobile */
    }

    .form-page__heading--privacy {
        font-size: 34px;
    }

    .form-page--privacy .form-panel--privacy {
        padding: 10px 15px 0;
    }

    .form-page--privacy .form-disclaimer {
        font-size: 10px;                            /* source: 10px on mobile */
    }

    /* Mobile drops the 20px inner-margin; inner gutters become symmetric 10px L/R. */
    .form-page--privacy .form-panel--privacy .form-grid {
        margin-inline-end: 10px;
        margin-inline-start: 10px;
    }
}

/* =============================================================
   FORM PANEL — grey rounded container (privacy-form pattern).
   Use .form-panel--inline to skip the panel chrome (disconnection).
   ============================================================= */
.form-panel {
    background: var(--color-bg-alt);
    border-radius: 15px;
    padding: 40px 56px;
}

.form-panel--inline {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .form-panel {
        padding: 24px 16px;
    }

    .form-page--disconnection-form .form-panel--inline {
        padding: 0 9px;
    }

    /* disconnection: match source x=25 (16 container + 9 inner) */
}

/* =============================================================
   FORM GRID — field layout. 2col vs 1col on desktop; both stack on mobile.
   ============================================================= */
.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid--1col {
    grid-template-columns: 1fr;
}

.form-grid--2col {
    grid-template-columns: 1fr 1fr;
}

.form-field--full {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .form-grid--2col {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   FORM FIELD — wrapper. Inputs styled to match the CF7-shaped
   form-band already used on home/product. Source field shape:
   white bg, thin grey border, 16-20px padding, ~46px tall.
   ============================================================= */
.form-field {
    margin: 0;
}

/* Nested-label CF7 field — input lives INSIDE its <label>; the visible label
   text is a <span class="form-field__label"> shown above the control. */
.form-field label {
    display: block;
}

.form-field__label {
    display: block;
    margin-block-end: 6px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-text);
}

.form-field .wpcf7-form-control-wrap {
    display: block;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="file"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 8px 16px;
    border-radius: 18px;
    border: 1px solid rgb(105, 114, 125);
    background: var(--color-white);
    color: rgb(4, 0, 0);
    font-size: 16px;
    font-family: inherit;
    line-height: 1.4;
    box-sizing: border-box;
}

.form-field input {
    height: 40px;
}

.form-field textarea {
    min-height: 100px;
    padding: 5px 14px;
    resize: vertical;
}

.form-field select {
    height: 40px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23697283' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: left 16px center;       /* RTL: chevron on visual-left */
    background-size: 12px 8px;
    padding-inline-start: 16px;
    padding-inline-end: 42px;                    /* leave space for chevron */
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgb(105, 114, 125);
}

/* Submit button — orange full-width inside the form grid */
.form-field--submit input[type="submit"],
.form-submit {
    width: 100%;
    padding: 0 24px;
    background: var(--color-primary);
    color: var(--color-white);
    border: 0;
    border-radius: 15px;
    font-weight: 500;
    font-size: 15px;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    height: 40px;
}

.form-submit:hover,
.form-field--submit input[type="submit"]:hover {
    background: var(--color-primary-hover);
}

/* File upload — minimal native styling */
.form-field--file input[type="file"] {
    padding: 10px;
    height: auto;
}

/* Required asterisk shown in placeholder text (CF7 convention is usually a separate label) */
.form-field--required label::after {
    content: "*";
    color: var(--color-primary);
    margin-inline-start: 4px;
}

/* =============================================================
   FORM DISCLAIMER — small grey text under the form, with inline link.
   ============================================================= */
.form-disclaimer {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text);
    margin-block-start: 18px;
    text-align: start;
}

.form-disclaimer a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* About page — image+text alternating + service charter.
 * Patterns:
 *   .about-hero          — dark full-bleed banner with centered white title
 *   .image-text          — two-column section: image + body, alternating side
 *   .service-charter     — heading + flat list of value subsections
 */

/* Section bottom padding before footer (matches product.css convention). */
.site-main > section:last-child {
    padding-block-end: 60px;
}

@media (max-width: 1024px) { .site-main > section:last-child { padding-block-end: 32px; } }

