/* Team registration — sits inside the public header and footer. */
.reg-page {
    background:
        radial-gradient(ellipse 42% 28% at 92% 0%, rgba(255, 168, 92, .22), transparent 70%),
        #f4f6fb;
    padding: 28px 0 72px;
}

.reg-wrap {
    width: min(100% - 32px, var(--nic-container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(280px, .68fr);
    gap: 34px;
    align-items: start;
}

.reg-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nic-navy);
}

.reg-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.reg-lead {
    max-width: 640px;
    margin: 14px 0 0;
    color: var(--nic-muted);
    font-size: 15.5px;
}

.reg-lead::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 16px;
    border-radius: 4px;
    background: var(--nic-orange);
}

/* ---------------------------------------------------------------- stepper */
.reg-steps {
    --reg-progress: 0%;
    display: flex;
    gap: 8px;
    margin: 28px 0 22px;
    padding: 0;
    list-style: none;
    position: relative;
}

.reg-steps::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--nic-orange) var(--reg-progress), #e1e7f0 var(--reg-progress));
}

.reg-steps li { flex: 1; position: relative; z-index: 1; text-align: center; }

.reg-steps button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8b95a8;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.reg-steps button span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e7edf5;
    color: #7d8798;
    font-size: 13px;
    font-weight: 700;
}

.reg-steps .is-current button,
.reg-steps .is-done button { color: var(--nic-navy); }

.reg-steps .is-current button span,
.reg-steps .is-done button span {
    background: var(--nic-orange);
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(244, 106, 10, .9);
}

/* ---------------------------------------------------------------- cards */
.reg-card {
    margin-top: 16px;
    padding: 22px 22px 20px;
    border: 1px solid #e6ebf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px -28px rgba(11, 31, 92, .55);
}

.reg-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.reg-card-head h2,
.reg-success h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.reg-card-head p,
.reg-success p { margin: 2px 0 0; color: var(--nic-muted); font-size: 13.5px; }

.reg-index {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--nic-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.reg-span-2 { grid-column: 1 / -1; }

.reg-extra { margin-top: 14px; }
.reg-extra[hidden] { display: none; }

.reg-field { min-width: 0; }

.reg-field label,
.reg-field legend,
.reg-label {
    display: block;
    margin-bottom: 6px;
    color: #5c677d;
    font-size: 13px;
    font-weight: 600;
}

.reg-field abbr,
.reg-declare abbr {
    color: var(--nic-orange);
    text-decoration: none;
    font-weight: 700;
}

.reg-page input[type="text"],
.reg-page input[type="email"],
.reg-page input[type="tel"],
.reg-page input:not([type]),
.reg-page select,
.reg-page textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    background: #fff;
    color: var(--nic-ink);
    font: inherit;
    font-size: 14.5px;
}

.reg-page textarea { min-height: 110px; resize: vertical; }

.reg-page input::placeholder,
.reg-page textarea::placeholder { color: #9aa3b5; }

.reg-page select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c677d' d='M1 1.2 6 6.2 11 1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}

.reg-page input:focus,
.reg-page select:focus,
.reg-page textarea:focus {
    outline: none;
    border-color: var(--nic-orange);
    box-shadow: 0 0 0 3px rgba(244, 106, 10, .15);
}

.reg-page .input-validation-error { border-color: #d92d20; }

.reg-page .field-validation-error,
.reg-page .field-validation-valid:empty { display: block; }
.reg-page .field-validation-error:empty,
.reg-page .field-validation-valid { display: none; }

.reg-page .field-validation-error {
    margin-top: 4px;
    color: #c4321a;
    font-size: 12.5px;
    font-weight: 600;
}

.reg-hint, .reg-status {
    margin: 4px 0 0;
    color: var(--nic-muted);
    font-size: 12.5px;
}

.reg-status.is-ok { color: #17803d; font-weight: 600; }
.reg-status.is-bad { color: #c4321a; font-weight: 600; }

.reg-inline {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.reg-inline > input,
.reg-inline > .reg-phone { flex: 1; min-width: 0; }

.reg-phone {
    display: flex;
    align-items: center;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.reg-phone span {
    padding: 0 12px;
    border-right: 1px solid #dbe2ec;
    color: var(--nic-navy);
    font-weight: 700;
    background: #f7f9fc;
}

.reg-phone input {
    border: 0 !important;
    box-shadow: none !important;
    min-height: 44px;
}

.reg-phone:focus-within {
    border-color: var(--nic-orange);
    box-shadow: 0 0 0 3px rgba(244, 106, 10, .15);
}

.reg-choices { display: flex; flex-wrap: wrap; gap: 8px; min-height: 46px; align-items: center; }

.reg-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #dbe2ec;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

.reg-choice:has(input:checked) {
    border-color: var(--nic-orange);
    background: var(--nic-orange-100);
    color: var(--nic-navy);
}

.reg-choice input { width: 16px; height: 16px; accent-color: var(--nic-orange); }

.reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.reg-btn-otp { background: var(--nic-orange); color: #fff; }
.reg-btn-otp:hover { background: var(--nic-orange-600); color: #fff; }
.reg-btn-code { background: #10284f; color: #fff; }
.reg-btn-code:hover { background: var(--nic-navy); color: #fff; }
.reg-btn-verify { min-width: 118px; background: #e9f8ef; border-color: #b7e7c8; color: #17803d; }
.reg-btn-verify.is-verified { background: #d9f5e4; }
.reg-btn-primary { background: var(--nic-orange); color: #fff; box-shadow: 0 10px 18px -12px rgba(244, 106, 10, .95); }
.reg-btn-primary:hover { background: var(--nic-orange-600); color: #fff; }
.reg-btn-draft { background: #fff; border-color: #d5dce8; color: var(--nic-navy); }
.reg-btn-draft:hover { border-color: var(--nic-navy); color: var(--nic-navy); }
.reg-btn:disabled { opacity: .7; cursor: default; }

.reg-member { position: relative; }
.reg-member + .reg-member { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e4eaf2; }
.reg-member[hidden] { display: none; }

.reg-remove {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #9aa3b5;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.reg-remove:hover { color: #c4321a; }
.reg-remove[hidden] { display: none; }

.reg-add-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: #8b95a8;
    font-size: 13px;
}

.reg-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: var(--nic-navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.reg-add:disabled { color: #b0b8c8; cursor: default; }

.reg-challenges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.reg-challenge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 108px;
    margin: 0;
    padding: 14px 12px;
    border: 1.5px solid #e3e9f2;
    border-radius: 12px;
    background: #fff;
    color: var(--nic-navy);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.reg-challenge i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f6fb;
    color: var(--nic-blue-500);
    font-size: 15px;
}

.reg-challenge:has(input:checked) {
    border-color: var(--nic-orange);
    background: #fff7f1;
    box-shadow: 0 0 0 1px var(--nic-orange);
}

.reg-challenge:has(input:checked) i { background: var(--nic-orange); color: #fff; }
.reg-challenge input { position: absolute; opacity: 0; pointer-events: none; }
.reg-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.reg-count {
    display: block;
    margin-top: 4px;
    text-align: right;
    color: #8b95a8;
    font-size: 12px;
}

.reg-declare {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--nic-ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.reg-declare input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--nic-orange); flex: 0 0 auto; }

.reg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.reg-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f3c2b8;
    border-radius: 10px;
    background: #fff4f1;
    color: #9f2c18;
    font-size: 14px;
    font-weight: 600;
}

.reg-alert ul { margin: 0; padding-left: 1.1rem; }

.reg-success { display: flex; gap: 14px; align-items: flex-start; }
.reg-success .reg-index { background: #17803d; }
.reg-success .reg-btn { margin-top: 12px; }

.is-hidden { display: none !important; }

/* ---------------------------------------------------------------- sidebar */
.reg-aside { position: sticky; top: 92px; }

.reg-script {
    margin: 0 0 -8px 18px;
    font-size: 1.7rem;
    color: #12306a;
}

.reg-photo,
.reg-ghats {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
}

.reg-photo img,
.reg-ghats img { display: block; width: 100%; height: 280px; object-fit: cover; }
.reg-photo img { object-position: 50% 42%; height: 320px; }
.reg-ghats { position: relative; margin-top: 18px; }
.reg-ghats img { height: 230px; object-position: center 60%; }

.reg-ghats-script {
    position: absolute;
    right: 18px;
    bottom: 22px;
    margin: 0;
    color: #fff;
    font-size: 1.55rem;
    text-shadow: 0 2px 10px rgba(11, 31, 92, .45);
    transform: rotate(-8deg);
}

.reg-aside-title {
    margin: 22px 0 8px;
    font-size: clamp(1.8rem, 2.4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.12;
}

.reg-aside-title span {
    display: block;
    color: var(--nic-orange);
}

.reg-aside-title span::after {
    content: "";
    display: block;
    width: 78%;
    height: .42em;
    margin-top: .05em;
    background: var(--nic-swoosh) no-repeat left center / 100% 100%;
}

.reg-aside-lead { margin: 8px 0 0; color: var(--nic-muted); }

.reg-points { margin: 18px 0 0; padding: 0; list-style: none; }
.reg-points li { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.reg-points span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
}
.reg-points .is-orange { background: #fff1e4; color: var(--nic-orange); }
.reg-points .is-blue { background: #e8f1ff; color: #2f6fd0; }
.reg-points .is-green { background: #e7f8ee; color: #1f9d55; }
.reg-points p { margin: 0; color: var(--nic-navy); font-weight: 700; line-height: 1.25; font-size: 14.5px; }

@media (max-width: 1100px) {
    .reg-wrap { grid-template-columns: 1fr; }
    .reg-aside { position: static; }
    .reg-photo img { height: 260px; }
}

@media (max-width: 760px) {
    .reg-grid,
    .reg-challenges { grid-template-columns: 1fr; }
    .reg-inline { flex-direction: column; }
    .reg-btn { width: 100%; }
    .reg-steps button { font-size: 11px; }
    .reg-script { margin-left: 0; }
}
