/* Enerpize reseller pages — shared styles */

/* Layout */
.reseller-page {
    position: relative;
    overflow: hidden;
    background: #f1f5fa;
    min-height: calc(100vh - 118px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    box-sizing: border-box;
}
.reseller-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.reseller-bg img { position: absolute; display: block; }
.reseller-bg-texture { width: 100%; max-width: 1920px; }
.reseller-bg-logo { transform: translate(-34%, 66%); }
.reseller-bg-logo2 { transform: translate(226%, -66%); }
.reseller-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

/* Left info panel */
.reseller-aside {
    flex: 0 0 320px;
    max-width: 320px;
}
.reseller-aside-title {
    margin: 0 0 8px;
    font-family: 'Gilroy';
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    color: #0c2532;
}
.reseller-aside-desc {
    margin: 0 0 32px;
    font-family: 'Gilroy';
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    color: #415565;
}
.reseller-benefits { display: flex; flex-direction: column; gap: 16px; }
.reseller-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Gilroy';
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #0c2532;
}
.reseller-benefit svg { flex-shrink: 0; width: 15px; height: 24px; }

/* Card */
.reseller-card {
    flex: 0 1 580px;
    max-width: 580px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 13px rgba(33, 50, 66, 0.16);
    padding: 50px 61px;
}
.reseller-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.reseller-card-logo { height: 24px; width: auto; display: block; }
.reseller-card-home {
    font-family: 'Gilroy';
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: #026bff;
    text-decoration: none;
}
.reseller-card-home:hover { text-decoration: underline; }
.reseller-card .signup-row { text-align: center; margin-bottom: 0; padding-bottom: 0; }
.reseller-form-title {
    margin: 0 0 24px;
    font-family: 'Gilroy';
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #0c2532;
}
.reseller-form-desc {
    margin: -16px 0 24px;
    font-family: 'Gilroy';
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    color: #415565;
}
.reseller-form-desc p { margin: 0; }

/* Form fields */
.login-form-new { margin-top: 0; }
.login-form-new .validation-enabled { margin-bottom: 18px; }
.login-form-new .validation-enabled .input-field-new { margin-bottom: 0 !important; }
.login-form-new .error-message { margin-top: 6px !important; padding: unset; margin-bottom: 0 !important; min-height: 0 !important; }
.type-switch-parent.position-relative.validation-enabled.sec-1 { margin-bottom: 0 !important; }
.captcha-image img { border-radius: 2px; }

/* Login: remember me / forgot password */
.reseller-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.reseller-form-row .forgot-password {
    font-family: 'Gilroy';
    font-size: 16px;
    font-weight: 500;
    color: #026bff;
    text-decoration: none;
}
.reseller-form-row .forgot-password:hover { text-decoration: underline; }

/* Register wizard */
.reseller-page--wizard { justify-content: normal; padding: 0; }
.reseller-shell--wizard { align-items: stretch; }
.reseller-card--wizard { flex: 1 1 580px; max-width: none; }

.reseller-stepper { display: flex; flex-direction: column; }
.reseller-step { display: flex; gap: 12px; position: relative; padding-bottom: 30px; }
.reseller-step:last-child { padding-bottom: 0; }
.reseller-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 2px;
    width: 2px;
    background: #cfd6dc;
    z-index: 0;
}
.reseller-step.is-done:not(:last-child)::before { background: #29b80b; }
.reseller-step-marker {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #cfd6dc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.reseller-step.is-active .reseller-step-marker { border-color: #29b80b; }
.reseller-step.is-active .reseller-step-marker::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #29b80b;
}
.reseller-step.is-done .reseller-step-marker { border-color: #29b80b; background: #29b80b; }
.reseller-step.is-done .reseller-step-marker::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    color: #fff;
}
.reseller-step-text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.reseller-step-title {
    font-family: 'Gilroy';
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: #415565;
}
.reseller-step.is-active .reseller-step-title { color: #29b80b; }
.reseller-step.is-done .reseller-step-title { color: #0c2532; }
.reseller-step-sub {
    font-family: 'Gilroy';
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #98a2b3;
}
.reseller-step-badge {
    display: inline-block;
    background: #e7f0ff;
    color: #026bff;
    font-family: 'Gilroy';
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.reseller-terms-title {
    margin: 0 0 12px;
    font-family: 'Gilroy';
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: #0c2532;
}
.reseller-step-panel[hidden] { display: none; }

.wizard-actions { display: flex; gap: 16px; margin-top: 8px; }
.wizard-actions .register-button { min-width: 0 !important; flex: 1 1 auto; margin-top: 0; }
.wizard-back-btn {
    flex: 0 0 140px;
    max-width: 140px;
    height: 60px;
    border: none;
    border-radius: 2px;
    background: #eef2f6;
    color: #0c2532;
    font-family: 'Gilroy';
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.wizard-back-btn:hover { background: #e2e8f0; }
.terms_box {
    height: 160px;
    overflow-y: auto;
    width: 100%;
    background: #f1f5fa;
    padding: 24px;
    border: 1px solid #98a2b3;
    border-radius: 2px;
}
.register-name-row { display: flex; gap: 16px; }
.register-name-row > div { flex: 1; min-width: 0; }

/* Register: logo upload */
.dz-hidden-input { display: none; }
#dropzonewidget {
    border: 1px dashed #026bff;
    background: rgba(2, 107, 255, 0.05);
    border-radius: 2px;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #415565;
    font-family: 'Gilroy';
    font-size: 16px;
    font-weight: 500;
    padding: 12px;
    text-align: center;
}
#dropzonewidget .dz-message { margin: 0; }
#dropzonewidget .dz-message::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0ee";
    margin-inline-end: 8px;
    color: #026bff;
}

/* Register: selects / phone / country (selectize) */
.input-field select.input-content {
    border: none;
    flex: 1;
    padding: 8px 16px;
    font-size: 16px;
    background: transparent;
    width: 100%;
    height: 100%;
    outline: none;
}
.form-group-flex { display: flex; flex: auto; flex-direction: row; min-height: 0; }
.form-flex-grow { width: 0; flex: auto; margin-inline-start: -1px; }
.form-flex-shrink { flex: 0 0 110px; max-width: 110px; min-width: 110px; width: 110px; }
.selectize-dropdown { min-width: 200px; }
.selectize-input img,
.selectize-dropdown img {
    border-radius: 2px;
    margin-inline-end: 8px;
    width: 20px !important;
    flex-shrink: 0;
}
.selectize-control.input-content.single { padding: unset; }
#AgencyCountryCode + .selectize-control { width: 100%; }
#AgencyCountryCode + .selectize-control .selectize-input {
    display: flex !important;
    align-items: center;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 8px 16px;
    min-height: 43px;
    width: 100%;
}
#AgencyCountryCode + .selectize-control .selectize-input > div {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#phone_div { direction: ltr; }

/* Navbar */
.rsl-nav {
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: 30px;
    background: #f1f5fa;
    border-bottom: unset;
    font-family: 'Gilroy', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.rsl-nav.is-scrolled { border-bottom-color: transparent; box-shadow: 0 4px 13px rgba(33, 50, 66, .10); }
.rsl-nav__inner {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: padding .2s ease;
}
.rsl-nav.is-scrolled .rsl-nav__inner { padding-top: 12px; padding-bottom: 12px; }
.rsl-nav__brand { display: flex; align-items: center; gap: 16px; text-decoration: none; flex-shrink: 0; }
.rsl-nav__logo { height: 38px; width: auto; display: block; }
.rsl-nav__divider { width: 1px; height: 38px; background: #e6ebf2; display: block; }
.rsl-nav__brand-label { font-size: 18px; line-height: 20px; font-weight: 500; color: #0c2532; white-space: nowrap; }
.rsl-nav__links { display: flex; align-items: center; gap: 28px; }
.rsl-nav__ext,
.rsl-nav__login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    color: #0c2532;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}
.rsl-nav__ext:hover,
.rsl-nav__login:hover { color: #026bff; }
.rsl-nav__ext svg { width: 16px; height: 16px; }
.rsl-nav__login svg { width: 20px; height: 20px; }
.rsl-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 35px;
    border-radius: 2px;
    background: linear-gradient(90deg, #026bff 30%, #005ad9 100%);
    color: #fff;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s ease;
}
.rsl-nav__cta:hover { opacity: .92; color: #fff; }
.rsl-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.rsl-nav__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #0c2532;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.rsl-nav.is-open .rsl-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rsl-nav.is-open .rsl-nav__toggle span:nth-child(2) { opacity: 0; }
.rsl-nav.is-open .rsl-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive */
@media (max-width: 991px) {
    .reseller-page { min-height: 0; display: block; padding: 60px 0; }
    .reseller-shell { flex-direction: column; gap: 32px; }
    .reseller-aside { flex-basis: auto; max-width: none; width: 100%; padding-top: 0; position: static; }
    .reseller-card { flex-basis: auto; max-width: 100%; width: 100%; padding: 32px 24px; }
    .rsl-nav__cta { font-size: 18px; padding: 10px 28px; }
    .rsl-nav__links { gap: 20px; }
}
@media (max-width: 767px) {
    .rsl-nav__toggle { display: flex; }
    .rsl-nav__links {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 24px 20px;
        background: #fff;
        border-bottom: 1px solid #e6ebf2;
        box-shadow: 0 8px 13px rgba(33, 50, 66, .10);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }
    .rsl-nav.is-open .rsl-nav__links { opacity: 1; visibility: visible; transform: translateY(0); }
    .rsl-nav__ext,
    .rsl-nav__login { padding: 12px 4px; font-size: 17px; }
    .rsl-nav__cta { margin-top: 8px; font-size: 17px; padding: 12px 24px; }
}
@media (max-width: 575px) {
    .register-name-row { flex-direction: column; gap: 0; }
    .reseller-form-title { font-size: 26px; }
    .reseller-card { padding: 24px 18px; }
    .wizard-back-btn { flex-basis: 110px; max-width: 110px; }
}
