:root {
    --navy: #172f4a;
    --deep: #10283f;
    --gold: #dba45e;
    --ink: #172c43;
    --muted: #687583;
    --border: #dce2e8;
    --bg: #f1f4f6;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
.header {
    background: var(--deep);
    color: #fff;
}
.header-inner {
    max-width: 1328px;
    padding: 26px 32px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.wordmark {
    display: flex;
    align-items: center;
    gap: 22px;
}
.petromin {
    font-style: italic;
    font-weight: 900;
    font-size: 23px;
    letter-spacing: -1px;
}
.foton {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
}
.divider {
    width: 1px;
    height: 26px;
    background: #607084;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-caption {
    font-size: 13px;
    color: #ced7e1;
}
.language {
    background: none;
    border: 0;
    color: white;
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 15px;
    padding: 5px;
}
.language svg {
    width: 18px;
    height: 18px;
}
.layout {
    max-width: 1328px;
    margin: 40px auto 28px;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    align-items: stretch;
    gap: 0;
}
.event {
    background: var(--navy);
    color: white;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.event-copy {
    position: relative;
    z-index: 2;
    padding: 40px 40px 28px;
}
.event-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #efc38a;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.8px;
}
.event-kicker > span:first-child {
    width: 25px;
    height: 1px;
    background: var(--gold);
}
h1 {
    font-size: clamp(36px, 3.55vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.6px;
    margin: 21px 0 18px;
    font-weight: 500;
}
.event-intro {
    max-width: 430px;
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
    color: #e0e7ee;
}
.event-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 29px;
}
.detail {
    display: flex;
    gap: 13px;
    align-items: center;
}
.detail svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #e6b875;
    stroke-width: 1.5;
    flex-shrink: 0;
}
.detail strong {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    display: block;
}
.detail span {
    font-size: 13px;
    line-height: 1.55;
    color: #bbcbdc;
    display: block;
}
.event-image {
    position: relative;
    min-height: 330px;
    flex: 1;
    overflow: hidden;
}
.event-image > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
.image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #172f4a 0%,
        #172f4a00 18%,
        #08121b00 64%,
        #071520d9 100%
    );
}
.image-caption {
    position: absolute;
    bottom: 25px;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    font-size: 14px;
    line-height: 1.55;
}
.image-number {
    font-size: 11px;
    letter-spacing: 1px;
    color: #e7bd85;
    white-space: nowrap;
}
.registration {
    background: white;
    border: 1px solid #e0e5eb;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    padding: 37px 40px 26px;
    box-shadow: 12px 15px 35px #172f4a05;
}
.form-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.small-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: bold;
    color: #667586;
}
.preview-tag {
    font-size: 11px;
    color: #6a7783;
    background: #f1f4f6;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
h2 {
    font-size: 29px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin: 17px 0 12px;
}
.form-intro {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 26px;
    max-width: 350px;
}
.field {
    margin-bottom: 17px;
}
label,
legend {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
label > span[aria-hidden],
legend > span[aria-hidden] {
    color: #8b714d;
    margin-inline-start: 2px;
}
input:not([type='radio']),
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
    padding: 13px 14px;
    font-size: 15px;
    color: var(--ink);
    height: 47px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
input::placeholder {
    color: #919ba6;
}
input:focus,
select:focus {
    outline: none;
    border-color: #446386;
    box-shadow: 0 0 0 3px #25456515;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #dba45e;
    outline-offset: 4px;
}
.phone-input {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 5px;
    align-items: center;
    height: 47px;
}
.phone-input:focus-within {
    border-color: #446386;
    box-shadow: 0 0 0 3px #25456515;
}
.dial-code {
    padding: 0 14px;
    border-right: 1px solid var(--border);
    font-size: 14px;
    color: #485a6c;
}
.phone-input input {
    border: 0;
    height: 44px;
    padding-inline-start: 13px;
}
.phone-input input:focus {
    box-shadow: none;
}
.field-hint {
    display: block;
    font-size: 12px;
    color: #7a8792;
    margin-top: 6px;
}
.brand-field {
    border: 0;
    margin: 0 0 17px;
    padding: 0;
    min-width: 0;
}
.brand-field legend {
    padding: 0;
    margin-bottom: 9px;
}
.brands {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}
.brand-option {
    margin: 0;
    position: relative;
    cursor: pointer;
}
.brand-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}
.brand-option > span {
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.brand-option i {
    width: 14px;
    height: 14px;
    border: 1px solid #cbd3db;
    border-radius: 50%;
    flex-shrink: 0;
}
.brand-option input:checked + span {
    background: #f0f4f8;
    border-color: #315577;
    color: #163e63;
}
.brand-option input:checked + span i {
    border: 4px solid #315577;
}
.brand-option input:focus-visible + span {
    outline: 3px solid #dba45e;
    outline-offset: 2px;
}
.select-wrap {
    position: relative;
}
.select-wrap select {
    appearance: none;
    padding-inline-end: 38px;
}
.select-wrap svg {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 17px;
    height: 17px;
    pointer-events: none;
}
select:has(option[value='']:checked) {
    color: #919ba6;
}
.submit {
    border: 0;
    border-radius: 5px;
    background: var(--navy);
    color: white;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    margin-top: 23px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
}
.submit:hover {
    background: #24486e;
}
.submit svg {
    width: 21px;
    height: 21px;
    color: #ecc58e;
}
.preview-note {
    font-size: 12px;
    line-height: 1.5;
    color: #7a8792;
    text-align: center;
    margin: 12px 0 0;
}
.form-footer {
    border-top: 1px solid #e8ecf0;
    padding-top: 18px;
    margin-top: 22px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.6;
    color: #798590;
}
.form-footer svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
}
.footer {
    max-width: 1328px;
    padding: 0 32px 25px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #7c8792;
    font-size: 11px;
    letter-spacing: 0.3px;
}
.error {
    display: block;
    font-size: 12px;
    color: #b13236;
    margin-top: 5px;
}
.error:empty {
    display: none;
}
[aria-invalid='true'] {
    border-color: #b13236 !important;
}
.form-result {
    margin-top: 18px;
    padding: 14px;
    background: #f1f5f8;
    border: 1px solid #cfdae4;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}
.form-result[hidden] {
    display: none;
}
[dir='rtl'] .event {
    border-radius: 0 12px 12px 0;
}
[dir='rtl'] .registration {
    border: 1px solid #e0e5eb;
    border-right: 0;
    border-radius: 12px 0 0 12px;
}
[dir='rtl'] h1,
[dir='rtl'] h2 {
    letter-spacing: 0;
    line-height: 1.4;
}
[dir='rtl'] .event-kicker,
[dir='rtl'] .small-label {
    letter-spacing: 0;
}
[dir='rtl'] .select-wrap svg {
    right: auto;
    left: 15px;
}
[dir='rtl'] .submit svg {
    transform: rotate(180deg);
}
@media (min-width: 1450px) {
    .layout {
        margin-top: 52px;
    }
}
@media (max-width: 1050px) {
    .header-caption {
        display: none;
    }
    .event-copy {
        padding: 32px 28px 24px;
    }
    .registration {
        padding: 32px 28px 24px;
    }
    h2 {
        font-size: 26px;
    }
    .brand-option > span {
        padding: 0 9px;
        font-size: 12px;
    }
    .layout {
        padding: 0 24px;
    }
    .event-image {
        min-height: 320px;
    }
}
@media (max-width: 1024px) {
    .header-inner {
        padding: 21px 22px;
    }
    .petromin {
        font-size: 19px;
    }
    .foton {
        font-size: 19px;
        letter-spacing: 2px;
    }
    .wordmark {
        gap: 14px;
    }
    .divider {
        height: 23px;
    }
    .layout {
        display: block;
        margin: 20px auto;
        padding: 0 18px;
        max-width: 560px;
    }
    .event,
    .registration,
    [dir='rtl'] .event,
    [dir='rtl'] .registration {
        border-radius: 10px;
    }
    .event-copy {
        padding: 30px 25px 18px;
    }
    h1 {
        font-size: 40px;
    }
    .event-intro {
        font-size: 16px;
    }
    .event-details {
        gap: 15px;
        margin-top: 23px;
    }
    .event-image {
        height: 275px;
        min-height: 0;
        flex: none;
    }
    .image-caption {
        left: 25px;
        right: 25px;
        bottom: 22px;
    }
    .registration,
    [dir='rtl'] .registration {
        border: 1px solid #e0e5eb;
        margin-top: 18px;
        padding: 28px 25px 22px;
    }
    h2 {
        font-size: 28px;
    }
    .form-intro {
        max-width: none;
    }
    .footer {
        padding: 0 22px 24px;
        font-size: 10px;
        flex-wrap: wrap;
    }
    .header-caption {
        display: none;
    }
    .header-right {
        gap: 0;
    }
    .language {
        font-size: 14px;
    }
    .small-label {
        font-size: 10px;
    }
    .preview-tag {
        font-size: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Invitation artwork fills the panel after removing the introduction. */
.pavilion-crop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.image-shade {
    background: linear-gradient(180deg, transparent 65%, #071520d9 100%);
}

@font-face {
    font-family: Almarai;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/almarai-regular.ttf') format('truetype');
}
@font-face {
    font-family: Almarai;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/almarai-bold.ttf') format('truetype');
}
html[lang='ar'] body,
[lang='ar'] .language,
.language[lang='ar'] {
    font-family: Almarai, Arial, sans-serif;
}
html[lang='ar'] .wordmark,
html[lang='ar'] .brands {
    font-family: Arial, Helvetica, sans-serif;
}
html[lang='ar'] label,
html[lang='ar'] legend {
    line-height: 1.6;
}

/* Supplied white logo on a black header. */
.header {
    background: #000;
    color: #fff;
    border-bottom: 1px solid #222;
}
.header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
}
.header-logo {
    width: 144px;
    height: 112px;
    display: block;
    flex-shrink: 0;
}
.header-caption {
    color: #ced7e1;
}
.language {
    color: #fff;
}
@media (max-width: 1024px) {
    .header-inner {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .header-logo {
        width: 120px;
        height: auto;
    }
}

.submit:disabled {
    opacity: 0.65;
    cursor: wait;
}
.form-result[data-state='error'] {
    background: #fff4f3;
    border-color: #ecc9c5;
    color: #922e2d;
}
.form-result[data-state='success'] {
    background: #eef7f2;
    border-color: #c5dfd0;
    color: #23563c;
}

/* Horizontal supplied logo and centred copyright. */
.wordmark {
    min-width: 0;
    flex: 0 1 480px;
}
.header-logo {
    width: 480px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1970/245;
}
.header-right {
    flex-shrink: 0;
}
.footer {
    justify-content: center;
    text-align: center;
}
@media (max-width: 1024px) {
    .wordmark {
        flex-basis: 360px;
    }
    .header-logo {
        width: 360px;
    }
    .header-inner {
        gap: 18px;
    }
}

/* Banner above the registration form at every screen size. */
.layout {
    display: block;
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 32px;
}
.event,
[dir='rtl'] .event {
    display: block;
    border-radius: 12px;
    background: #161616;
}
.event-banner {
    display: block;
    width: 100%;
    height: auto;
}
.registration,
[dir='rtl'] .registration {
    width: 100%;
    max-width: none;
    margin: 28px auto 0;
    border: 1px solid #e0e5eb;
    border-radius: 12px;
    box-shadow: 0 12px 35px #172f4a08;
}
@media (max-width: 1024px) {
    .layout {
        margin: 20px auto;
        padding: 0 18px;
    }
    .registration,
    [dir='rtl'] .registration {
        margin-top: 20px;
    }
    .event,
    [dir='rtl'] .event {
        border-radius: 10px;
    }
}

/* Centre the registration introduction in both languages. */
.registration .form-top {
    justify-content: center;
    text-align: center;
}
.registration > h2 {
    text-align: center;
}
.registration .form-intro {
    max-width: none;
    text-align: center;
    margin-inline: auto;
}

/* Centre the submit action beneath the form fields. */
.registration .submit {
    width: 220px;
    max-width: 100%;
    margin: 23px auto 0;
    justify-content: center;
    gap: 16px;
}

/* Multi-step form: progress, chips, consent and done screen. */
:root {
    --petromin-red: #e80218;
}
.progress {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.progress li {
    padding-top: 10px;
    border-top: 4px solid var(--border);
    border-radius: 2px;
    text-align: center;
}
.progress li.is-current,
.progress li.is-done {
    border-top-color: var(--petromin-red);
}
.progress li.is-current {
    color: var(--ink);
    font-weight: 700;
}
.step[hidden] {
    display: none;
}
.step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
    outline: none;
}
label small,
legend small {
    font-weight: 400;
    font-size: 12px;
    color: var(--muted);
}
.choice-field {
    border: 0;
    border-bottom: 1px solid #edf0f3;
    margin: 0 0 22px;
    padding: 0 0 22px;
    min-width: 0;
}
.choice-field legend {
    padding: 0;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}
.choice-field legend small {
    margin-inline-start: 4px;
}
/* Answers sit in equal columns so every row lines up. */
.chips {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 10px;
}
.chips[data-options='budget'] {
    --cols: 5;
}
.chips[data-options='payment'] {
    --cols: 3;
}
@media (max-width: 640px) {
    .chips,
    .chips[data-options='budget'] {
        --cols: 2;
    }
}
.chip {
    position: relative;
    display: flex;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}
.chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}
.chip span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.chip:hover span {
    border-color: #9fb0c2;
}
.chip input:checked + span {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.chip input[type='checkbox']:checked + span::before {
    content: '✓';
    font-weight: 700;
    color: var(--gold);
}
.chip input:focus-visible + span {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
.consent {
    background: var(--bg);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #3d4d5d;
}
.consent p {
    margin: 0 0 12px;
}
.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    cursor: pointer;
}
.check input {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 3px 0 0;
    flex-shrink: 0;
    accent-color: var(--navy);
}
.check input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
.step-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
}
.registration .step-actions .submit {
    margin: 0;
}
.back {
    width: 220px;
    max-width: 100%;
    height: 46px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--ink);
    font-size: 15px;
}
.back:hover {
    border-color: #9fb0c2;
}
.done {
    text-align: center;
}
.done-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2f6b4c;
    color: #fff;
    display: grid;
    place-items: center;
    margin: 4px auto 16px;
}
.done-mark svg {
    width: 30px;
    height: 30px;
}
.done-text {
    max-width: 460px;
    margin: 0 auto 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}
.summary {
    max-width: 520px;
    margin: 0 auto 16px;
    padding: 6px 18px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 14px;
    text-align: start;
}
.summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.summary div:last-child {
    border-bottom: 0;
}
.summary dt {
    color: var(--muted);
}
.summary dd {
    margin: 0;
    text-align: end;
}
.reference {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
}
.reference strong {
    color: var(--ink);
    letter-spacing: 0.5px;
}
.done .back {
    margin: 0 auto;
}

/* In-page city list where supported (Edge/Chrome), so it opens under the field
   and lines up with it in English and Arabic. Other browsers keep the native menu. */
@supports (appearance: base-select) {
    #city,
    #city::picker(select) {
        appearance: base-select;
    }
    #city::picker-icon {
        display: none;
    }
    #city::picker(select) {
        margin-top: 4px;
        padding: 4px 0;
        max-height: min(320px, 50vh);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 5px;
        box-shadow: 0 12px 30px #172f4a1f;
    }
    #city option {
        padding: 9px 14px;
        font-size: 15px;
        color: var(--ink);
    }
    #city option::checkmark {
        display: none;
    }
    #city option:hover,
    #city option:focus-visible {
        background: var(--bg);
        outline: none;
    }
    #city option:checked {
        background: #f0f4f8;
        font-weight: 700;
    }
    #city option[value=''] {
        color: #919ba6;
    }
}

/* React form grouping must not add native fieldset borders or spacing. */
.form-fields {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.campaign {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: normal;
}
.campaign[lang='ar'] {
    font-family: Almarai, Arial, sans-serif;
}
.campaign .chip input {
    height: 100%;
    padding: 0;
}
