/* Ad gate for /business. Purple field, white card. */
.ad-gate {
    --ad-yellow: #eee24b;
    --ad-yellow-deep: #e4c62a;
    --ad-purple: #4a25a9;
    --ad-ink: #2d146e;
    --ad-white: #ffffff;
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(0, 0, 0, 0.18), transparent 55%),
        var(--ad-purple);
    color: var(--ad-ink);
    font-family: 'Cairo', 'Nunito', sans-serif;
}

html:has(.ad-gate),
body:has(.ad-gate) {
    overflow-x: clip;
    background: var(--ad-purple, #4a25a9);
}
body:has(.ad-gate)::before { display: none; }

.ad-gate-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.ad-gate-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.ad-gate-brand .nook-word {
    display: block;
    width: 2.66em;
    height: 1em;
    margin-inline: auto;
    font-size: 4.4rem;
    background: url("../images/nook-word-purple.png") center / contain no-repeat;
    color: transparent;
}

.nook-o {
    position: relative;
    display: inline-block;
}

.nook-word-dot {
    position: absolute;
    top: -0.12em;
    left: 50%;
    width: 0.18em;
    height: 0.18em;
    border-radius: 50%;
    background: #fbc61b;
    transform: translateX(-50%);
}

.ad-gate-card {
    background: var(--ad-white);
    border-radius: 32px;
    padding: 36px 28px 32px;
    box-shadow: 0 24px 50px rgba(74, 37, 169, 0.14);
}

.ad-gate-ar {
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--ad-purple);
}

.ad-gate-en {
    margin: 8px 0 0;
    text-align: center;
    font-family: 'Nunito', 'Cairo', sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ad-ink);
    direction: ltr;
}

.ad-doors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.ad-door {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 132px;
    padding: 16px 14px;
    border-radius: 24px;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--ad-purple);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ad-door:hover { transform: translateY(-3px); }

.ad-door-restaurant {
    background: var(--ad-purple);
    color: var(--ad-white);
    box-shadow: 0 14px 28px rgba(74, 37, 169, 0.28);
}

.ad-door-courier {
    background: var(--ad-yellow);
    color: var(--ad-ink);
}

.ad-door-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--ad-yellow);
    color: var(--ad-purple);
}

.ad-door-courier .ad-door-icon {
    background: var(--ad-purple);
    color: var(--ad-yellow);
}

.ad-door-icon svg { width: 30px; height: 30px; }

.ad-door-ar {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.2;
}

.ad-door-en {
    font-family: 'Nunito', 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    direction: ltr;
    opacity: 0.85;
}

.ad-form-head {
    text-align: center;
    margin-bottom: 22px;
}

.ad-form-head h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--ad-purple);
}

.ad-form-head p {
    margin: 8px 0 0;
    color: #5c4a86;
}

.ad-req {
    color: #9b1c1c;
    font-style: normal;
    font-weight: 900;
}

.ad-contact-note span {
    display: block;
    margin-top: 2px;
    font-family: 'Nunito', 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    direction: ltr;
}

.ad-field { margin-bottom: 14px; }

.ad-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--ad-ink);
}

.ad-label span {
    display: block;
    font-family: 'Nunito', 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #7a6a9a;
    direction: ltr;
}

.ad-input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e4dcf4;
    background: #fbfaff;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ad-ink);
}

.ad-input:focus {
    outline: 2px solid var(--ad-purple);
    border-color: transparent;
}

.ad-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ad-stepper button {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--ad-purple);
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    cursor: pointer;
}

.ad-stepper strong {
    min-width: 2ch;
    text-align: center;
    font-size: 2rem;
    color: var(--ad-purple);
}

.ad-brand {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
    gap: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: #fbf8ff;
    border: 1px solid #efe8fb;
}

.ad-brand > * { min-width: 0; }

.ad-error {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff1f1;
    color: #9b1c1c;
    font-weight: 700;
}

.ad-submit {
    width: 100%;
    margin-top: 8px;
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    background: var(--ad-purple);
    color: white;
    font: inherit;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
}

.ad-back {
    display: inline-block;
    margin-top: 14px;
    color: var(--ad-purple);
    font-weight: 800;
    text-decoration: none;
}

.ad-foot {
    margin-top: 28px;
    text-align: center;
    color: #f8f5f2;
    line-height: 1.7;
}

.ad-foot p,
.ad-foot address {
    margin: 0;
}

.ad-foot-label {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.75;
}

.ad-foot-name {
    font-weight: 900;
    font-size: 1.05rem;
}

.ad-foot-meta,
.ad-foot-address {
    font-style: normal;
    font-weight: 700;
}

.ad-foot-place {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ad-foot-address {
    margin: 0;
    color: inherit;
}

.ad-foot-address span { display: block; }

.ad-foot-map {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 14px;
    background: var(--ad-yellow);
    color: var(--ad-purple);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.ad-foot-email,
.ad-foot-phone {
    display: block;
    margin-top: 4px;
    color: #fbc61b;
    font-weight: 900;
    font-size: 1.05rem;
    text-decoration: none;
}

.ad-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .ad-doors,
    .ad-brand { grid-template-columns: 1fr; }
    .ad-gate-card { padding: 26px 16px 22px; border-radius: 24px; }
}
