/* Partner-Gratis-Lose — Frontend */

.pl-lp__inner {
    width: min(1330px, 100% - 2rem);
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}

/* Intro above the form */
.pl-intro {
    margin: 0 0 1.75rem;
}

.pl-lp .pl-intro__title {
    margin: 0 0 0.75rem;
    color: #1D1D1B;
    font-weight: 700;
}

.pl-intro__text {
    margin: 0;
    color: #333333;
    line-height: 1.6;
}

/* Form — laid out to the content column, styled to LAY6 */
.pl-lp .wpcf7 form {
    display: flex;
    flex-direction: column;
}

.pl-label {
    order: 0;
    margin: 1.25rem 0 0.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1D1D1B;
}

.pl-label:first-of-type {
    margin-top: 0;
}

.pl-row {
    order: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.pl-row .wpcf7-form-control-wrap {
    flex: 1 1 0;
    min-width: 0;
}

.pl-row--half {
    max-width: calc(50% - 0.5rem);
}

/* Address: one row on desktop, two per row on tablet, stacked on mobile */
.pl-row--address {
    flex-wrap: wrap;
}

.pl-row--address .wpcf7-form-control-wrap[data-name="street"] { flex: 3 1 0; }
.pl-row--address .wpcf7-form-control-wrap[data-name="house_number"] { flex: 1 1 0; }
.pl-row--address .wpcf7-form-control-wrap[data-name="postal_code"] { flex: 1 1 0; }
.pl-row--address .wpcf7-form-control-wrap[data-name="city"] { flex: 2 1 0; }

.pl-lp .wpcf7 form input[type="text"],
.pl-lp .wpcf7 form input[type="email"],
.pl-lp .wpcf7 form input[type="tel"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #C4C4C4;
    border-radius: 2px;
    background: #ffffff;
    /* match the .pl-error / .wpcf7-not-valid-tip size */
    font-size: 26px;
}

.pl-lp .wpcf7 form input::placeholder {
    color: #9B9B9B;
}

.pl-dsgvo-row {
    order: 5;
    margin: 1.5rem 0 0;
    padding-left: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: #333333;
}

.pl-dsgvo-row .wpcf7-form-control-wrap,
.pl-dsgvo-row .wpcf7-acceptance,
.pl-dsgvo-row .wpcf7-list-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.pl-dsgvo-row .wpcf7-list-item-label:empty {
    display: none;
}

.pl-dsgvo-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.pl-dsgvo-row label {
    margin: 0;
    font-size: inherit;
    cursor: pointer;
}

/* Required marker — the acceptance checkbox is a mandatory CF7 field. */
.pl-dsgvo-row label::after {
    content: " *";
}

.pl-lp .wpcf7 .altcha-widget-wrap {
    order: 6;
    margin: 1.25rem 0 0;
}

.pl-submit-row {
    order: 7;
    margin: 1.75rem 0 0;
    text-align: center;
}

.pl-lp .wpcf7 form .wpcf7-submit {
    display: inline-block;
    width: auto;
    min-width: min(440px, 100%);
    padding: 1rem 3rem;
    border: 0 !important;
    border-radius: 999px !important;
    background-color: var(--e-global-color-primary, #B70E0B) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.pl-lp .wpcf7 form .wpcf7-submit:hover {
    background-color: #8F0B08 !important;
}

.pl-required-note {
    order: 8;
    margin: 0.9rem 0 0;
    color: #4A4A4A;
    font-size: 0.9rem;
}

.pl-fliesstext {
    order: 9;
    margin: 2rem 0 0;
    padding: 1.5rem 0;
    border-top: 2px solid var(--e-global-color-primary, #B70E0B);
    border-bottom: 2px solid var(--e-global-color-primary, #B70E0B);
    color: #333333;
    font-size: 1.125rem;
    line-height: 1.2;
}

.pl-fliesstext a {
    color: var(--e-global-color-primary, #B70E0B);
}

.pl-lp .wpcf7 form .wpcf7-response-output {
    order: 10;
}

/* Tablet: address falls to two per row, form field font steps down */
@media (max-width: 1024px) {
    .pl-row--address .wpcf7-form-control-wrap[data-name="street"],
    .pl-row--address .wpcf7-form-control-wrap[data-name="city"] {
        flex: 1 1 calc(62% - 0.5rem);
    }
    .pl-row--address .wpcf7-form-control-wrap[data-name="house_number"],
    .pl-row--address .wpcf7-form-control-wrap[data-name="postal_code"] {
        flex: 1 1 calc(38% - 0.5rem);
    }
    .pl-lp .pl-label {
        font-size: 24px !important;
    }
    .pl-lp .wpcf7 form input[type="text"],
    .pl-lp .wpcf7 form input[type="email"],
    .pl-lp .wpcf7 form input[type="tel"],
    .pl-lp .wpcf7-not-valid-tip {
        font-size: 20px !important;
    }
}

/* Mobile: every field on its own row, form field font steps down again */
@media (max-width: 600px) {
    .pl-row {
        flex-direction: column;
        gap: 1rem;
    }
    .pl-row .wpcf7-form-control-wrap {
        flex: 0 0 auto;
        width: 100%;
    }
    .pl-row--half {
        max-width: none;
    }
    .pl-lp .wpcf7 form .wpcf7-submit {
        min-width: 0;
        width: 100%;
    }
    .pl-lp .pl-label {
        font-size: 18px !important;
    }
    .pl-lp .wpcf7 form input[type="text"],
    .pl-lp .wpcf7 form input[type="email"],
    .pl-lp .wpcf7 form input[type="tel"],
    .pl-lp .wpcf7-not-valid-tip {
        font-size: 14px !important;
    }
}

/* Hero — full-bleed stripe background, content aligned to the page content column */
.pl-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #bae1e8;
    background-image: url(../img/partner-lottery/pl_hero_bg.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pl-hero__inner {
    position: relative;
    width: min(1330px, 100% - 2rem);
    margin-inline: auto;
    min-height: clamp(400px, 38vw, 640px);
}

.pl-hero__couple {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: clamp(340px, 34vw, 600px);
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
}

.pl-hero__wordmark {
    position: absolute;
    top: clamp(1rem, 2.4vw, 2.25rem);
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    font-family: "Dunant", sans-serif;
    font-weight: 800;
    line-height: 0.9;
    font-size: clamp(1.8rem, 3vw, 3.4rem);
}

.pl-hero__wm--1 { color: #B70E0B; }
.pl-hero__wm--2 { color: #1D1D1B; }
.pl-hero__wm--3 { color: #1CA5C4; }

.pl-hero__badges {
    position: absolute;
    top: clamp(1rem, 2.4vw, 2.25rem);
    right: 0;
    z-index: 3;
    width: clamp(120px, 12vw, 200px);
}

.pl-hero__heart {
    display: block;
    width: 100%;
    height: auto;
}

.pl-hero__handshake {
    position: absolute;
    right: -10%;
    bottom: -14%;
    width: 46%;
    height: auto;
}

.pl-hero__overlay {
    position: absolute;
    left: 0;
    bottom: clamp(1rem, 2.4vw, 2rem);
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-family: "Dunant", sans-serif;
    font-weight: 800;
    line-height: 1;
    font-size: clamp(2.2rem, 5.2vw, 5rem);
}

.pl-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pl-notice {
    margin: 1em 0;
    padding: 1em 1.25em;
    background: #f5f5f5;
    border-left: 4px solid var(--e-global-color-primary, #B70E0B);
    color: #333333;
    line-height: 1.5;
    /* keep the sticky header from covering the notice when we scroll to it */
    scroll-margin-top: 160px;
}

.pl-notice--confirmed {
    border-left-color: #1CA5C4;
}

.pl-notice--success {
    border-left-color: #46b450;
}

.pl-notice__text {
    margin: 0 0 0.75em;
}

.pl-notice__text:last-child {
    margin-bottom: 0;
}

.pl-confirmed {
    margin: 0;
}

.pl-confirmed__title {
    margin: 0 0 1rem;
    color: #1D1D1B;
    font-weight: 700 !important;
}

.pl-confirmed__text {
    margin: 0 0 1.5rem;
    font-size: 1.125rem;
    color: #333333;
}

.pl-confirmed__cta {
    margin: 0 0 0.5rem;
    text-align: center;
}

.pl-btn {
    display: inline-block;
    min-width: min(440px, 100%);
    padding: 1rem 3rem;
    border-radius: 999px;
    background-color: var(--e-global-color-primary, #B70E0B) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.25rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none !important;
}

.pl-btn:hover,
.pl-btn:focus {
    background-color: #8F0B08 !important;
    color: #ffffff !important;
}

.pl-confirmed__crosssell {
    margin: 2.5rem 0 0;
}

/* Force our brand button over the Elementor default button style, which would
   otherwise win and render it as an outline. */
.wpcf7 .pl-resend {
    display: inline-block;
    margin: 0;
    padding: 0.6em 1.4em !important;
    border: 0 !important;
    border-radius: 2px !important;
    background-color: var(--e-global-color-primary, #B70E0B) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    text-decoration: none !important;
    cursor: pointer;
}

.wpcf7 .pl-resend:hover,
.wpcf7 .pl-resend:focus {
    background-color: #8F0B08 !important;
    color: #ffffff !important;
}

.wpcf7 .pl-resend[disabled] {
    opacity: 0.6 !important;
    cursor: default;
}

/* Footer: the top divider only makes sense as a separator above a cross-sell
   block. On this template it is an orphan line unless the confirmed view
   actually renders one, so hide it otherwise. */
.page-template-partner_lottery_landingpage .footer-line1 {
    display: none;
}

.page-template-partner_lottery_landingpage:has(.pl-confirmed__crosssell) .footer-line1 {
    display: block;
}

/* Closed window (not started / ended / quota reached) — replaces the form. */
.pl-closed {
    margin: 0 0 2rem;
}

.pl-closed__text {
    color: #1D1D1B;
    line-height: 1.5;
}

.pl-closed__text p {
    margin: 0 0 0.75em;
}

.pl-closed__cta {
    margin: 1.5rem 0 0;
    text-align: center;
}

/* "Fast fertig!" would be wrong above a closed notice. */
.pl-lp--closed .pl-hero__overlay {
    visibility: hidden;
}
