/* Sign-up page (Figma: QF - BilAraby - WebsiteDesign - Concept 2, Signup frames 40002467:86404 / 40006037:28209 / 40006042:28532 / 40006042:29191).
   Builds on account-revamp.css (.acv background, .acv-panel card, fields, chips, buttons); only the page layout and the four-step card live here. */

.sup { min-height: 100vh; padding-bottom: 160px; }
.sup::before { background-image: url('../images/signup-revamp/noise.png'); height: min(1178px, 100%); }
.sup .acv-deco-a { inset: 28% -6.05% -69.17% -0.38%; background-image: url('../images/signup-revamp/wave-a.svg'); }
.sup .acv-deco-b { inset: -1.31% -5.51% -48.32% -7.32%; background-image: url('../images/signup-revamp/wave-b.svg'); }

.sup-grid {
    display: grid;
    grid-template-columns: minmax(0, 656fr) minmax(0, 743fr);
    column-gap: clamp(32px, 9vw, 172px);
    align-items: start;
    max-width: 1600px;
    margin-inline: auto;
}

/* ---------- Left: back, tagline, logotype ---------- */
.sup-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 90px;
    min-width: 0;
}
.sup .acv-back { position: static; }
.sup-tagline {
    margin: 0;
    font: 700 clamp(30px, 2.5vw, 48px) / 1.1667 'Almarai', sans-serif;
    color: #fff;
}
.sup-tagline span { color: #eec78a; }
.sup-logotype { display: block; width: 100%; max-width: 656px; height: auto; }

/* ---------- The card ---------- */
.sup-card { width: 100%; }
.sup-step { display: none; flex-direction: column; }
.sup-step.is-active { display: flex; animation: supStepIn .35s ease both; }
@keyframes supStepIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.sup-step-photo.is-active { min-height: 674px; }
.sup-sub {
    margin: 4px 0 0;
    font: 400 16px/24px 'Almarai', sans-serif;
    color: var(--hr-brown-400, #49473d);
}
.sup-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 40px;
    border-bottom: 1px solid #fff;
}
.sup-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 40px 40px;
}
.sup-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sup-signin {
    font: 700 16px/24px 'Almarai', sans-serif;
    color: var(--hr-brown-500, #1b190c);
    text-decoration: none;
    cursor: pointer;
}
.sup-signin span { color: #e19d33; }
.sup-skip { color: var(--hr-brown-900, #0b0b05); }

/* Terms checkbox: 24px box, #dddac7 border, 6px radius. */
.sup-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font: 400 16px/24px 'Almarai', sans-serif;
    color: var(--hr-brown-400, #49473d);
    cursor: pointer;
}
.sup-check > span:last-child { flex: 1 1 0; min-width: 0; }
.sup-check input { position: absolute; opacity: 0; pointer-events: none; }
.sup-check-box {
    position: relative;
    flex: none;
    width: 24px;
    height: 24px;
    border: 1px solid #dddac7;
    border-radius: 6px;
    background: rgba(255, 255, 255, .7);
    transition: background-color .2s ease, border-color .2s ease;
}
.sup-check input:focus-visible + .sup-check-box { box-shadow: 0 0 0 3px rgba(225, 157, 51, .3); }
.sup-check input:checked + .sup-check-box { background: var(--hr-yellow-500, #d98500); border-color: var(--hr-yellow-500, #d98500); }
.sup-check input:checked + .sup-check-box::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.sup-check a { color: var(--hr-brown-500, #1b190c); text-decoration: underline; }
.sup-check-field { gap: 0; }

/* ---------- Sign-in page (Figma Login frame 40002525:106901): same hero, a narrower card centred on it ---------- */
.sup-grid.is-signin { grid-template-columns: minmax(0, 656fr) minmax(0, 562fr); align-items: center; min-height: calc(100vh - 210px); }
.sup-signin-page { padding-bottom: 60px; }
.sup-grid.is-signin { padding-top: 60px; box-sizing: border-box; }
.sup-grid.is-signin .sup-hero { align-self: start; margin-top: -60px; }
.sup-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sup-close { flex: none; box-sizing: border-box; width: 56px; height: 56px; padding: 0; border-radius: 50%; }
.sup-close-icon {
    width: 24px;
    height: 24px;
    background: url('../images/signup-revamp/close-circle.svg') center / 100% 100% no-repeat;
}
.sup-signin-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sup-check-sm .sup-check-box { width: 16px; height: 16px; border-radius: 4px; }
.sup-check-sm input:checked + .sup-check-box::after { left: 4px; top: 0; width: 4px; height: 9px; border-width: 0 2px 2px 0; }
.sup-check-sm { align-items: center; }
.sup-forgot { font: 400 16px/24px 'Almarai', sans-serif; color: var(--hr-brown-400, #49473d); text-decoration: none; }
.sup-forgot:hover { color: var(--hr-brown-500, #1b190c); text-decoration: underline; }

/* ---------- Step 2: profile picture ---------- */
.sup-avatar { position: relative; width: 150px; height: 150px; margin: 25px auto; }
.sup-avatar-tile {
    position: absolute;
    inset: -25px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 53px;
    background: url('../images/signup-revamp/avatar-placeholder.svg') -45.78px -35.38px / 289.6px no-repeat,
        linear-gradient(0deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .6) 47%, rgba(255, 255, 255, .45) 103%),
        rgba(0, 0, 0, .05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .03), 2px 20px 20px rgba(0, 0, 0, .03), inset 0 8px 12px rgba(255, 255, 255, .23);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
}
.sup-avatar-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sup-avatar-tile img[hidden] { display: none; }
.sup-avatar-edit {
    position: absolute;
    right: -53.5px;
    bottom: -7px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1.5px solid #fff;
    background: rgba(255, 255, 255, .6);
}
.sup-avatar-edit img { width: 24px; height: 24px; }

/* ---------- Step 4: content preference tiles ---------- */
.sup-ctypes { display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); gap: 20px 15px; justify-content: center; width: 100%; max-width: 279px; }
.sup-ctypes .acv-ctype { width: 132px; height: 132px; gap: 10px; border-radius: 20px; font-size: 21px; line-height: 32px; }
.sup-ctypes .acv-ctype-icon { width: 42px; height: 42px; }
.sup-ctypes .acv-ctype[data-value="videos"] .acv-ctype-icon,
.sup-ctypes .acv-ctype[data-value="events"] .acv-ctype-icon { width: 52px; height: 52px; }

.sup-chips { width: 100%; }

@media (max-width: 991.98px) {
    .sup { padding-top: 120px; padding-bottom: 80px; }
    .sup-grid, .sup-grid.is-signin { grid-template-columns: minmax(0, 1fr); row-gap: 32px; align-items: start; min-height: 0; padding-top: 0; }
    .sup-grid.is-signin .sup-hero { margin-top: 0; }
    .sup-signin-page { padding-bottom: 40px; }
    .sup-hero { gap: 24px; }
    .sup-logotype { display: none; }
    .sup-tagline { font-size: 28px; }
    .sup-step-photo.is-active { min-height: 0; }
    .sup .acv-panel-head { text-align: left; }
    .sup-section { padding: 40px 24px; }
    .sup-foot { padding: 20px 24px 28px; }
    .sup .acv-panel-body { padding: 20px 24px 28px; }
    .sup-avatar { margin: 40px auto; }
}
@media (max-width: 575.98px) {
    .sup-signin-row { gap: 8px; }
    .sup-signin-row .sup-check, .sup-forgot { font-size: 14px; white-space: nowrap; }
    .sup-close { width: 48px; height: 48px; }
    .sup-avatar-edit { right: -40px; }
    .sup-ctypes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 300px; }
    .sup-ctypes .acv-ctype { width: auto; height: 112px; font-size: 16px; line-height: 24px; }
    .sup-actions { flex-wrap: wrap; }
    .sup-foot .acv-btn, .sup-foot .acv-pill { padding-inline: 20px; }
}

/* Forgot / reset password notes */
.sup-note { margin: 0 0 24px; font: 400 14px/20px 'Almarai', sans-serif; color: var(--hr-brown-400, #49473d); }
.sup-forgot { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Desktop: the sign-up card scales with screen height - compact at 800px tall, full Figma size from 1100px - so no step needs scrolling. */
@media (min-width: 992px) {
    .sup-signup-page { padding-top: clamp(152px, calc(2.67vh + 130.7px), 160px); padding-bottom: clamp(24px, calc(5.33vh - 18.7px), 40px); }
    .sup-signup-page .sup-hero { gap: clamp(48px, calc(14vh - 64px), 90px); }
    .sup-signup-page .acv-panel-head { padding: clamp(18px, calc(7.33vh - 40.7px), 40px) 40px clamp(10px, calc(4.67vh - 27.3px), 24px); }
    .sup-signup-page .acv-title { font-size: clamp(28px, calc(1.33vh + 17.3px), 32px); line-height: clamp(36px, calc(1.33vh + 25.3px), 40px); }
    .sup-signup-page .sup-sub { font-size: clamp(14px, calc(.67vh + 8.7px), 16px); line-height: clamp(20px, calc(1.33vh + 9.3px), 24px); }
    .sup-signup-page .acv-panel-body { gap: clamp(12px, calc(6.67vh - 41.3px), 32px); padding: clamp(14px, calc(3.33vh - 12.7px), 24px) 40px clamp(22px, calc(6vh - 26px), 40px); }
    .sup-signup-page .acv-form-grid { gap: clamp(10px, calc(4.67vh - 27.3px), 24px) 24px; }
    .sup-signup-page .acv-field { gap: clamp(4px, calc(1.33vh - 6.7px), 8px); }
    .sup-signup-page .acv-label,
    .sup-signup-page .sup-check { font-size: clamp(14px, calc(.67vh + 8.7px), 16px); line-height: clamp(20px, calc(1.33vh + 9.3px), 24px); }
    .sup-signup-page .acv-input,
    .sup-signup-page .acv-select { height: clamp(44px, calc(4vh + 12px), 56px); padding-block: clamp(10px, calc(2vh - 6px), 16px); }
    .sup-signup-page .sup-step-photo.is-active { min-height: 0; }
}

/* Keep the diamond line's end clear of the card (card's left edge + 200px line offset - 24px gap). */
@media (min-width: 992px) {
    .sup::after { max-width: none; width: min(1051px, calc(52.2vw + 176px)); }
    .sup-signin-page::after { width: min(1051px, calc(57.4vw + 176px)); }
}

/* The searchable country select2 follows the card's height-scaled field size (see the sign-up block above). */
@media (min-width: 992px) {
    .sup-signup-page .ba-select2-container.select2-container .select2-selection {
        height: clamp(44px, calc(4vh + 12px), 56px);
        padding-block: clamp(10px, calc(2vh - 6px), 16px);
    }
}
