/********** Partner Register — aligned to homepage design system **********/
body.partner-home.partner-register {
    background: #F4F7F8;
}

/* Keep promo bar + nav visible on all viewports (including mobile) */
body.partner-home.partner-register .ph-topbar,
body.partner-home.partner-register .ph-nav {
    display: block !important;
    visibility: visible !important;
}

body.partner-home.partner-register .ph-topbar-panel {
    display: inline-flex !important;
    visibility: visible !important;
}

body.partner-home.partner-register .ph-nav-toggle {
    display: inline-flex !important;
}

@media (min-width: 992px) {
    body.partner-home.partner-register .ph-nav-toggle {
        display: none !important;
    }
}

.reg-page {
    font-family: var(--font-body, 'Figtree', sans-serif);
    color: var(--graphite, #2C3E50);
}

.reg-page h1,
.reg-page h2,
.reg-page h3 {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
}

/* ——— Hero ——— */
.reg-hero {
    position: relative;
    background:
        radial-gradient(ellipse 55% 70% at 92% 35%, rgba(14, 149, 148, 0.28), transparent 62%),
        radial-gradient(ellipse 35% 40% at 5% 90%, rgba(14, 149, 148, 0.06), transparent 55%),
        linear-gradient(165deg, #0f1a24 0%, #15202b 45%, #121d26 100%);
    color: #fff;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
    text-align: left !important;
}

.reg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(110deg, transparent 0%, transparent 50%, rgba(0,0,0,0.4) 80%, #000 100%);
    pointer-events: none;
}

.reg-hero .ph-wrap {
    position: relative;
    z-index: 1;
    text-align: left !important;
}

.reg-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    margin: 0;
    margin-right: auto;
    margin-left: 0;
    text-align: left !important;
}

.reg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(79, 209, 197, 0.5);
    border-radius: 999px;
    background: rgba(14, 149, 148, 0.06);
    color: #5eead4;
    font-family: var(--font-body, 'Figtree', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.reg-hero-badge-icon {
    color: #4fd1c5;
    font-size: 0.6rem;
    line-height: 1;
}

body.partner-home.partner-register .reg-hero h1,
.reg-hero h1 {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: clamp(2.35rem, 4.8vw, 3.75rem);
    font-weight: 800 !important;
    line-height: 1.08;
    color: #FFFFFF !important;
    margin: 0 0 1.15rem;
    letter-spacing: -0.02em;
    max-width: none;
    text-align: left !important;
}

.reg-hero-title-white {
    color: #FFFFFF !important;
}

.reg-hero-accent {
    color: #F26B1D !important;
}

.reg-hero-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78) !important;
    margin: 0 0 1.5rem;
    max-width: 40rem;
    text-align: left !important;
}

.reg-hero-lead strong {
    color: #FFFFFF !important;
    font-weight: 700;
}

.reg-progress {
    display: flex;
    justify-content: flex-start;
    gap: 0.45rem;
    align-items: center;
}

.reg-progress span {
    display: block;
    height: 5px;
    width: 42px;
    border-radius: 3px;
}

.reg-progress span:nth-child(1) { background: #F26B1D; }
.reg-progress span:nth-child(2) { background: rgba(226, 232, 240, 0.9); }
.reg-progress span:nth-child(3) { background: #22C55E; }

@media (min-width: 768px) {
    .reg-hero {
        padding: 4.25rem 0 4.75rem;
    }
}

/* ——— Layout ——— */
.reg-body {
    padding: 2rem 0 4rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
    background: #F4F7F8;
}

@media (min-width: 768px) {
    .reg-body {
        padding: 2.5rem 0 4.5rem;
    }
}

.reg-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .reg-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
        gap: 1.75rem;
    }
}

/* ——— Form card ——— */
.reg-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 36px rgba(11, 46, 79, 0.08);
    padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 768px) {
    .reg-card {
        padding: 2rem 2.15rem 1.75rem;
    }
}

.reg-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a2836;
    margin: 0 0 0.35rem;
}

.reg-card-sub {
    font-size: 0.9rem;
    color: #6B7785;
    margin: 0 0 1.75rem;
}

.reg-section {
    margin-bottom: 1.85rem;
    padding-bottom: 1.65rem;
    border-bottom: 1px solid #EEF1F4;
}

.reg-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}

.reg-section-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    color: #0E9594;
    margin-bottom: 1.1rem;
}

.reg-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E8F6F5;
    border: none;
    color: #0E9594;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.reg-grid {
    display: grid;
    gap: 1rem 1.15rem;
}

@media (min-width: 640px) {
    .reg-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.reg-grid .reg-field-full {
    grid-column: 1 / -1;
}

.reg-field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #3A4654;
    margin-bottom: 0.4rem;
}

.reg-req {
    color: #F26B1D;
    margin-left: 0.15rem;
}

.reg-field .form-control,
.reg-field select.form-control,
.reg-field textarea.form-control {
    height: auto;
    min-height: 46px;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: #1a2836;
    background: #F7F9FA;
    border: 1px solid #E3E8ED;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-field .form-control:focus,
.reg-field select.form-control:focus,
.reg-field textarea.form-control:focus {
    background: #fff;
    border-color: #0E9594;
    box-shadow: 0 0 0 3px rgba(14, 149, 148, 0.15);
    outline: none;
}

.reg-field .form-control::placeholder,
.reg-field textarea.form-control::placeholder {
    color: #9AA3AD;
}

.reg-field select.form-control {
    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='%236B7785' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.2rem;
}

.reg-field textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Mobile: rounded corners only — dark +91 prefix + light input */
.reg-mobile {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
    overflow: hidden;
    border: 1px solid #E3E8ED;
    border-radius: 8px;
    background: #F7F9FA;
    min-height: 46px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-mobile:focus-within {
    border-color: #0E9594;
    box-shadow: 0 0 0 3px rgba(14, 149, 148, 0.15);
    background: #fff;
}

.reg-mobile-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-width: 86px;
    padding: 0 0.95rem;
    background: #2C3E50;
    color: #FFFFFF;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

.reg-flag {
    font-size: 1.05rem;
    line-height: 1;
    display: inline-block;
}

.reg-code-text {
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

.reg-mobile .mobileNumber.form-control,
.reg-mobile .mobileNumber {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 46px;
    height: auto;
    margin: 0;
    border: none !important;
    border-radius: 0 8px 8px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.7rem 1.1rem;
    font-size: 0.92rem;
    color: #1a2836;
}

.reg-mobile .mobileNumber:focus {
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
}

.reg-mobile .mobileNumber::placeholder {
    color: #9AA3AD;
}

.reg-field .error-message,
.reg-field .error,
.reg-page .error-msg,
.reg-page #error-msg,
.reg-page #mobile-error,
.reg-page .products-error {
    display: block;
    color: #E74C3C;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.35rem;
    min-height: 0;
}

.reg-products-label {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #E07A3A;
}

/* ——— Product pills (checkbox tags) ——— */
.reg-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.reg-pill {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    margin: 0;
}

.reg-pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.reg-pill-ui {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem 0.5rem 0.55rem;
    border-radius: 999px;
    border: 1.5px solid #D8DEE5;
    background: #fff;
    color: #3A4654;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.reg-pill-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1.5px solid #C5CED6;
    background: #fff;
    flex-shrink: 0;
}

.reg-pill-check::after {
    content: '';
    display: none;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.reg-pill input:checked + .reg-pill-ui {
    background: #E8F6F5;
    border-color: #0E9594;
    color: #0B5F5E;
}

.reg-pill input:checked + .reg-pill-ui .reg-pill-check {
    background: #0E9594;
    border-color: #0E9594;
}

.reg-pill input:checked + .reg-pill-ui .reg-pill-check::after {
    display: block;
}

.reg-pill:hover .reg-pill-ui {
    border-color: #0E9594;
}

/* ——— Submit row ——— */
.reg-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.35rem;
    padding-top: 0.5rem;
}

.reg-submit {
    appearance: none;
    border: none;
    background: #F26B1D;
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(242, 107, 29, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.reg-submit:hover {
    background: #d95a12;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(242, 107, 29, 0.5);
}

.reg-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.reg-secure {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 22rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6B7785;
}

.reg-secure i {
    color: #F26B1D;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ——— Sidebars ——— */
.reg-aside {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.reg-side-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(11, 46, 79, 0.07);
    padding: 1.35rem 1.3rem 1.4rem;
}

.reg-side-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2836;
    margin: 0 0 1.15rem;
}

.reg-side-title i {
    color: #E8A317;
    font-size: 0.95rem;
}

.reg-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.reg-steps::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 10px;
    bottom: 18px;
    width: 1.5px;
    background: #E4E9EE;
}

.reg-step {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.75rem;
    padding-bottom: 1.15rem;
}

.reg-step:last-child {
    padding-bottom: 0;
}

.reg-step-num {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E8F6F5;
    color: #0E9594;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reg-step strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2836;
    margin-bottom: 0.2rem;
}

.reg-step p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6B7785;
}

.reg-why {
    background: #1a2836;
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(11, 46, 79, 0.12);
    padding: 1.5rem 1.4rem 1.55rem;
    text-align: left;
}

.reg-why h3 {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 1.2rem;
    text-align: left;
}

.reg-why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reg-why-list li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.7rem;
    align-items: start;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.78);
    text-align: left;
}

.reg-why-list li i {
    color: #2DD4BF;
    margin-top: 0.28rem;
    font-size: 0.82rem;
}

.reg-why-list strong {
    color: #FFFFFF;
    font-weight: 700;
}

.reg-alert {
    display: none;
    margin-bottom: 1rem;
    text-align: center;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

@media (max-width: 575.98px) {
    .reg-body {
        padding-top: 1.5rem;
    }

    .reg-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .reg-submit {
        width: 100%;
        justify-content: center;
    }

    .reg-secure {
        max-width: none;
    }
}
