/* =============================================================================
   transfer-number.css — styles for transfer-number.html
============================================================================= */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* ── Hero wrapper — blue gradient background ── */
.pi-hero {
    min-height: 100vh;
    background: linear-gradient(260deg, #467efe 5.26%, #61cafd 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ── Decorative background elements ── */
.pi-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Bottom layer wave — fixed to viewport bottom */
.pi-deco--bottom-layer {
    position: fixed;
    bottom: -55px;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Rocket — top right */
.pi-deco--rocket {
    top: 30%;
    right: 23%;
    width: 150px;
    opacity: 1;
}

/* Planet — mid right, below rocket */
.pi-deco--planet {
    top: 20%;
    right: 24%;
    width: 90px;
    opacity: 1;
}

/* Small cloud — top left scatter */
.pi-deco--cloud-tl {
    top: 5%;
    left: 3%;
    width: 140px;
    opacity: 0.7;
}

/* Small cloud — mid left */
.pi-deco--cloud-ml {
    top: 45%;
    left: 0%;
    width: 110px;
    opacity: 0.55;
}

/* White cloud — bottom left corner */
.pi-deco--cloud-bl {
    position: fixed;
    bottom: 100px;
    left: 0;
    width: 320px;
    opacity: 0.9;
}

/* White cloud — bottom right corner (mirrored) */
.pi-deco--cloud-br {
    position: fixed;
    bottom: 80px;
    right: 0;
    width: 280px;
    opacity: 0.85;
}

/* Small cloud — bottom center, above bottom layer */
.pi-deco--cloud-bc {
    position: fixed;
    bottom: 110px;
    right: 20%;
    transform: translateX(-50%);
    width: 130px;
    opacity: 0.5;
}

/* Background ellipse — large glow, center-left */
.pi-deco--ellipse-l {
    top: 0;
    left: 0;
    width: 300px;
    opacity: 0.55;
}

/* Background ellipse — large glow, right side */
.pi-deco--ellipse-r {
    top: 0;
    right: 0;
    width: 320px;
    opacity: 0.45;
}

/* ── Sparkling stars ── */
@keyframes sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.pi-star {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    background: #fff;
    animation: sparkle linear infinite;
}

.pi-star:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 8%;
    left: 12%;
    animation-duration: 2.8s;
    animation-delay: 0s;
    opacity: 0;
}

.pi-star:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 14%;
    left: 38%;
    animation-duration: 3.4s;
    animation-delay: 0.7s;
    opacity: 0;
}

.pi-star:nth-child(3) {
    width: 5px;
    height: 5px;
    top: 6%;
    left: 62%;
    animation-duration: 2.5s;
    animation-delay: 1.2s;
    opacity: 0;
}

.pi-star:nth-child(4) {
    width: 3px;
    height: 3px;
    top: 22%;
    left: 80%;
    animation-duration: 3.1s;
    animation-delay: 0.4s;
    opacity: 0;
}

.pi-star:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 55%;
    animation-duration: 2.9s;
    animation-delay: 1.8s;
    opacity: 0;
}

.pi-star:nth-child(6) {
    width: 3px;
    height: 3px;
    top: 18%;
    left: 25%;
    animation-duration: 3.6s;
    animation-delay: 0.9s;
    opacity: 0;
}

.pi-star:nth-child(7) {
    width: 5px;
    height: 5px;
    top: 10%;
    left: 88%;
    animation-duration: 2.7s;
    animation-delay: 2.1s;
    opacity: 0;
}

.pi-star:nth-child(8) {
    width: 3px;
    height: 3px;
    top: 35%;
    left: 7%;
    animation-duration: 3.2s;
    animation-delay: 1.5s;
    opacity: 0;
}

/* ── Nav ── */
.search-nav {
    margin-bottom: 0 !important;
    padding: 0.6rem 0 !important;
    position: relative;
    z-index: 10;
}

/* ── Main content area ── */
.pi-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 2;
}

/* ── Footer ── */
.pi-footer {
    position: absolute;
    bottom: 0;
    z-index: 10;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.pi-footer__copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.pi-footer__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pi-footer__link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s;
}

.pi-footer__link:hover {
    color: #fff;
}

/* ── Transfer card ── */
.tn-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 36px 36px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tn-card__heading {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 20px 0;
    line-height: 1.35;
}

/* ── Scrollable number list ── */
.tn-list {
    background: #f5f5f5;
    border-radius: 14px;
    padding: 14px 16px;
    max-height: 312px;
    width: 300px;
    max-width: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tn-list::-webkit-scrollbar {
    width: 8px;
}

.tn-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.tn-list::-webkit-scrollbar-thumb {
    background: #4260CB;
    border-radius: 4px;
    border-left: 2px solid #f5f5f5;
    border-right: 2px solid #f5f5f5;
}

.tn-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
}

.tn-list__check {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.tn-list__number {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #4260CB;
    text-align: left;
    margin: 0;
}

.tn-list__delete {
    width: 34px;
    height: 34px;
    border: 1.5px solid #f5c6c6;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s;
    padding: 0;
}

.tn-list__delete:hover {
    border-color: #e57373;
}

.tn-list__delete img {
    width: 16px;
    height: 16px;
}

/* ── Not able to port section ── */
.tn-unable {
    margin: 12px 0px 24px 0px;
}

.tn-unable__title {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.tn-unable__numbers {
    font-size: 22px;
    color: #8C94B0;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

/* ── Action buttons ── */
.tn-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tn-btn {
    min-width: 160px;
    height: 48px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0 28px;
}

.tn-btn--cancel {
    background: #fff;
    color: #4260CB;
    border: 1px solid #4260CB;
}

.tn-btn--cancel:hover {
    background: #f0f3ff;
}

.tn-btn--continue {
    background-color: #4260CB;
    color: #fff;
    border: none;
}

.tn-btn--continue:hover {
    opacity: 0.9;
}

.modal-dialog {
    max-width: 720px !important;
    width: 720px;
}

.step2-account-type {
    max-width: 160px;
}

@media (max-width: 576px) {
    .tn-card {
        padding: 24px 18px 28px;
    }

    .modal-dialog {
        width: auto;
    }

    .tn-card__heading {
        font-size: 17px;
    }

    .pi-footer {
        padding: 14px 20px;
        justify-content: center;
        text-align: center;
    }

    .searchnav-items .navbar-brand {
        margin-left: 0 !important;
    }

    .tn-unable__title {
        font-size: 18px;
    }

    .tn-unable__numbers {
        font-size: 16px;
    }

    .tn-list {
        width: auto;
    }
}

/* ── Carrier Billing Modal ── */
.cb-modal-dialog {
    max-width: 540px;
}

.cb-modal-content {
    border-radius: 16px;
    border: 8px solid #d0d8f0;
    padding: 0;
    box-shadow: 0 12px 48px rgba(66, 96, 203, 0.18);
    overflow: hidden;
}

.cb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cb-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    text-align: center;
    flex: 1;
}

.cb-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.cb-close:hover {
    opacity: 1;
}

.cb-divider {
    border-color: #f7f7f7;
    margin: 0 0 14px;
    background-color: #8C94B0;
    height: 2px;
}

.cb-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 18px;
    text-align: center;
}

.cb-form-content {
    box-shadow: 0px 14px 84px 0px rgba(0, 0, 0, 0.1);
    padding: 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* Checkbox row */
.cb-check-row {
    padding: 10px 14px;
    margin-bottom: 14px;
}

.cb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.cb-checkbox {
    width: 26px;
    height: 26px;
    accent-color: #4260CB;
    cursor: pointer;
    flex-shrink: 0;
}

.cb-check-text {
    font-size: 16px;
    color: #374151;
    font-weight: 400;
}

/* Form rows */
.cb-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cb-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.cb-row--3 {
    gap: 10px;
}

.cb-input {
    flex: 1;
    height: 50px;
    border: 1px solid #e0e6f8;
    border-radius: 20px;
    padding: 0 14px;
    font-size: 14px;
    color: #374151;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.cb-input:focus {
    border-color: #4260CB;
}

.cb-input::placeholder {
    color: #9ca3af;
}

.cb-full {
    width: 100%;
}

.cb-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    cursor: pointer;
}

.cb-select-wrap {
    flex: 1;
}

.cb-input-icon-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.cb-input-icon-wrap .cb-input {
    padding-right: 36px;
}

.cb-help-icon {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Info text */
.cb-info-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin: 4px 0 20px;
    text-align: center;
}

/* Actions */
.cb-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.cb-btn {
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    border: 0;
    padding: 13px 0;
}

/* Exact same sizing as the carrier-billing modal buttons */
.cb-btn--back {
    background: #f0f1f5;
    color: #6b7280;
    min-width: 120px;
}

.cb-btn--back:hover {
    background: #e6e8ef;
    color: #4b5266;
}

.cb-btn--continue {
    background: #4260CB;
    color: #fff;
    min-width: 160px;
}

.cb-btn--continue:hover {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .cb-modal-dialog {
        max-width: calc(100% - 32px);
        width: 90%;
        margin: 16px auto;
    }

    .cb-panel {
        padding: 22px 20px 20px;
    }

    .cb-form-content {
        padding: 14px 12px;
    }

    .step2-account-type {
        max-width: 100%;
    }

    .tn-unable__numbers {
        font-size: 18px;
    }

    /* Panel 1 rows — stack vertically */
    .cb-row,
    .cb-row--3 {
        flex-direction: column;
        gap: 10px;
    }

    /* Panel 2 rows — stack vertically */
    .s2-row,
    .s2-row--2,
    .s2-row--3 {
        flex-direction: column;
        gap: 10px;
    }

    /* Remove flex:1 from s2 row children so inputs keep their natural height */
    .s2-row > *,
    .s2-row--2 > *,
    .s2-row--3 > * {
        flex: none !important;
        width: 100%;
    }

    /* All inputs/selects — pin height, prevent flex-grow stretching */
    .cb-input {
        flex: none;
        width: 100%;
        height: 44px;
        box-sizing: border-box;
    }

    .cb-select-wrap {
        flex: none;
        width: 100%;
    }

    .cb-input-icon-wrap {
        flex: none;
        width: 100%;
    }

    /* Reduce scroll container height on smaller screens */
    .s2-scroll {
        max-height: 340px;
    }
}

/* ── Sliding panels ── */
.cb-panels {
    width: 100%;
}

.cb-panel {
    width: 100%;
    padding: 28px 32px 24px;
    box-sizing: border-box;
    display: none;
}

.cb-panel.cb-panel--active {
    display: block;
}

/* ── Step indicators ── */
.tn-steps {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.tn-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 8px;
    background: #f4f4f7;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
    margin-right: 4px;
}

.tn-step:first-child {
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    margin-left: 0;
}

.tn-step--last {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%);
    margin-right: 0;
}

.tn-step--active {
    background: rgba(66, 96, 203, 1);;
}

.tn-step__label {
    font-size: 16px;
    font-weight: 700;
    color: #8C94B0;
    line-height: 1.2;
}

.tn-step--active .tn-step__label {
    color: #fff;
}

.tn-step__sub {
    font-size: 14px;
    color: #8c94b0;
    line-height: 1.3;
    text-align: center;
}

.tn-step--active .tn-step__sub {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Plan table ── */
.tn-plan-table-wrap {
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-top: 32px;
    /* Auto height: fits the rows, shows up to ~3, then scrolls for more. */
    max-height: 260px;
    overflow-y: auto;
}

.tn-plan-table-wrap::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.tn-plan-table-wrap::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.tn-plan-table-wrap::-webkit-scrollbar-thumb {
    background: #4260CB;
    border-radius: 4px;
    border-left: 2px solid #f5f5f5;
    border-right: 2px solid #f5f5f5;
}

.sp-sidebar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.sp-sidebar::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.sp-sidebar::-webkit-scrollbar-thumb {
    background: #4260CB;
    border-radius: 4px;
}

.tn-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tn-plan-table thead th {
    font-weight: 600;
    color: #1a1a2e;
    padding: 8px 10px 10px;
    text-align: left;
    border-bottom: 1px solid #eef0f8;
    white-space: nowrap;
}

.tn-plan-table tbody td {
    padding: 10px 10px;
    vertical-align: middle;
}

.tn-plan-table tbody tr+tr td {
    border-top: 1px solid #f3f4f8;
}

.tn-plan-number {
    font-size: 16px;
    color: #374151;
    white-space: nowrap;
}

.tn-plan-select-wrap {
    position: relative;
}

.tn-plan-select {
    height: 38px;
    border: 1px solid #e0e6f8;
    padding: 0 28px 0 12px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    color: #374151;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("../images/icons/blue-arrow-down.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    outline: none;
    min-width: 200px;
}

.tn-plan-select:focus {
    border-color: #4260CB;
}

.tn-price-input {
    height: 38px;
    border: 1px solid #e0e6f8;
    border-radius: 20px;
    padding: 0 12px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #374151;
    background: rgba(231, 231, 231, 0.45);
    outline: none;
    width: 110px;
    cursor: default;
}

.tn-plan-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tn-plan-delete svg {
    width: 26px;
    height: 26px;
}

.tn-plan-delete:hover svg circle {
    stroke: #c0392b;
}

/* ── Step 2 ── */
.s2-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.s2-scroll::-webkit-scrollbar {
    width: 5px;
}

.s2-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.s2-scroll::-webkit-scrollbar-thumb {
    background: #4260CB;
    border-radius: 4px;
}

.s2-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.s2-optional {
    font-weight: 400;
    color: #8c94b0;
    font-size: 12px;
}

.s2-info-icon {
    cursor: help;
    display: flex;
    align-items: center;
}

.s2-info-text {
    font-size: 11px;
    color: #8c94b0;
    font-weight: 400;
}

.s2-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.s2-row--2 > * {
    flex: 1;
}

.s2-row--3 > * {
    flex: 1;
}

.s2-check-row {
    margin-bottom: 10px;
}

.s2-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.s2-link {
    color: #4260CB;
    text-decoration: underline;
}

.s2-link:hover {
    color: #2a45a8;
}

/* ── Step 3 ── */
.s3-payment-wrapper {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.s3-payment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.s3-payment-wrap {
    display: flex;
    gap: 12px;
}

.s3-payment-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

.s3-payment-select-wrap {
    /* Constant width — never changes with the selected option. */
    flex: 0 0 240px;
    width: 240px;
    min-width: 0;
}

.s3-payment-select {
    font-size: 12px;
    height: 36px;
}

.s3-payment-btn {
    height: 50px;
    padding: 0 18px;
    background: #4260CB;
    color: #fff;
    border: none;
    border-radius: 32px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.s3-payment-btn:hover {
    opacity: 0.88;
}

.s3-account-info-wrap {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.s3-account-info {
    margin-bottom: 4px;
}

.s3-info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    justify-content: space-between;
}

.s3-info-item {
    font-size: 12px;
    color: #374151;
}

.s3-info-key {
    font-weight: 600;
    color: #1a1a2e;
}

.s3-order-table-wrap {
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.s3-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 12px;
}

.s3-order-table thead {
    background-color: #eff9ff;
}

.s3-order-table thead th {
    font-weight: 600;
    color: #1a1a2e;
    padding: 12px 8px 8px;
    text-align: left;
    background: linear-gradient(95.35deg, rgba(70, 126, 254, 0.1) 5.26%, rgba(97, 202, 253, 0.1) 100%);
}

.s3-order-table tbody td {
    padding: 9px 8px;
    color: #374151;
    border-bottom: 1px solid #f3f4f8;
}

.s3-price {
    font-weight: 600;
    color: #1a1a2e;
}

.s3-period {
    color: #8c94b0;
    font-size: 11px;
}

.s3-total-wrap {
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.s3-totals {
    padding: 4px 0;
}

.s3-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #374151;
}

.s3-grand {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    border-top: 1px solid #eef0f8;
    padding-top: 10px;
    margin-top: 4px;
}

.s3-total-label {
    color: #6b7280;
}

.s3-grand .s3-total-label {
    color: #1a1a2e;
}

.s3-pay-btn {
    min-width: 210px;
}

@media (max-width: 576px) {
    .cb-panel {
        padding: 20px 16px 18px;
    }

    .tn-step__label {
        font-size: 10px;
    }

    .tn-step__sub {
        font-size: 7.5px;
    }

    .s2-row--2,
    .s2-row--3 {
        flex-direction: column;
    }

    .s3-payment-row {
        flex-direction: column;
        align-items: center;
    }

    .s3-payment-wrap {
        flex-direction: column;
        width: 100%;
    }

    .s3-payment-select-wrap {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cb-btn {
        font-size: 13px;
        min-width: 110px;
        padding: 10px 22px;
    }
    .cb-btn--continue { min-width: 130px; }

    .cb-actions {
        gap: 4px;
    }

    .tn-step__sub {
        display: none;
    }
}

/* ── Secure Payment Panel ── */
.sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
}

.sp-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    flex: 1;
    text-align: center;
}

.sp-body {
    display: flex;
    min-height: 340px;
    box-shadow: 0 8px 32px rgba(70, 126, 254, .22);
    border-radius: 4px;
    border: 4px solid white;
}

/* Left sidebar */
.sp-sidebar {
    width: 160px;
    flex-shrink: 0;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #eef0f8;
    background: #fafbff;
}

.sp-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    background: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.sp-tab:hover {
    background: #eef1ff;
    color: #4260CB;
}

.sp-tab--active {
    background: linear-gradient(90deg, #467efe 0%, #61caff 100%);
    color: #fff;
    border-radius: 0px 50px 50px 0px;
}

.sp-tab--active:hover {
    background: linear-gradient(90deg, #467efe 0%, #61caff 100%);
    color: #fff;
}

.sp-tab__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Right form area */
.sp-form-area {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 440px;
}

.sp-form {
    display: none;
}

.sp-form--active {
    display: block;
}

.sp-form-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.sp-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.sp-field-group {
    margin-bottom: 14px;
}

.sp-input {
    width: 100%;
    height: 44px;
    border: 1px solid #e0e6f8;
    border-radius: 50px;
    padding: 0 16px;
    font-size: 13px;
    color: #374151;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.sp-input:focus {
    border-color: #4260CB;
}

.sp-input::placeholder {
    color: #9ca3af;
}

.sp-textarea {
    height: 80px;
    border-radius: 14px;
    padding: 10px 16px;
    resize: none;
}

.sp-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.sp-select-wrap {
    position: relative;
}

.sp-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.sp-row .sp-field-group {
    flex: 1;
}

/* Scrollbar */
.sp-form-area::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.sp-form-area::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.sp-form-area::-webkit-scrollbar-thumb {
    background: #4260CB;
    border-radius: 4px;
}

/* Footer */
.sp-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 24px 20px;
    border-top: 1px solid #eef0f8;
}

/* Responsive */
@media (max-width: 767px) {
    .sp-body {
        flex-direction: column;
    }

    .sp-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #eef0f8;
        padding: 10px 12px;
        gap: 6px;
    }

    .sp-tab {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12px;
    }

    .sp-form-area {
        padding: 16px;
        max-height: 360px;
    }

    .sp-row {
        flex-direction: column;
        gap: 0;
    }
}

/* CB-BILLING-START */

/* ─────────────────────────────────────────────────────────────────────────────
   Current Carrier Billing Info panel — Submit Offer styling, elevated inner card.
   Shared by port-in.html and multi-number.html (both link this file).
   ───────────────────────────────────────────────────────────────────────────── */
#carrierBillingModal .modal-dialog { max-width: 820px !important; }
#cbPanelBilling .cb-x { position: absolute; top: 4%; right: 3%; }
#cbPanelBilling .modal-title { font-size: 26px; font-weight: 700; color: #14172b; margin: 0 0 16px; }
#cbPanelBilling .cb-title-line { border: 0; border-top: 1px solid #e9ecf5; margin: 0 0 18px; opacity: 1; }
#cbPanelBilling .cb-subtitle { color: #6b7280; font-size: 16px; }

.offer-form {
    padding: 0 !important;
}
/* Elevated inner card holding the form */
#cbPanelBilling .cb-inner {
    box-shadow: 0 14px 60px rgba(20, 40, 120, 0.08);
    border: 1px solid #f0f2f8;
    border-radius: 20px;
    padding: 22px 22px 8px;
    margin-bottom: 22px;
}

/* Business-account checkbox — regular weight (not bold) */
#cbPanelBilling .cb-biz-check { display: flex; align-items: center; gap: 10px; padding: 4px 2px 14px; margin: 0; }
#cbPanelBilling .cb-biz-check .form-check-input { width: 20px; height: 20px; margin: 0; float: none; flex: 0 0 auto; cursor: pointer; }
#cbPanelBilling .cb-biz-check .form-check-label { font-weight: 400 !important; color: #14172b; font-size: 16px; margin: 0; cursor: pointer; }
#cbPanelBilling .cb-line { border: 0; border-top: 1px solid #e9ecf5; margin: 0 0 16px; opacity: 1; }

/* Account / Pin help badges */
#cbPanelBilling .cb-help-wrap { position: relative; }
#cbPanelBilling .cb-help { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: #4260CB; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: help; }

#cbPanelBilling .cb-fineprint { color: #8890a6; font-size: 14px; margin: 0 auto 22px; max-width: 640px; }

/* Actions — gray Back, blue Continue */
#cbPanelBilling .cb-actions { display: flex; justify-content: center; gap: 16px; }
#cbPanelBilling .cb-btn-back { background: #f0f1f5; color: #6b7280; border: 0; border-radius: 50px; padding: 13px 0px; font-weight: 600; min-width: 120px; }
#cbPanelBilling .cb-btn-back:hover { background: #e6e8ef; color: #4b5266; }
#cbPanelBilling .btn-blue { min-width: 160px; }

@media (max-width: 767px) {
    #cbPanelBilling { padding: 26px 20px 22px; }
    #cbPanelBilling .cb-inner { padding: 16px 14px 4px; }
    #cbPanelBilling .cb-actions { flex-direction: column-reverse; }
    #cbPanelBilling .cb-btn-back, #cbPanelBilling .btn-blue { width: 100%; }
}
/* CB-BILLING-END */

/* CB-DROPDOWN-START */
/* ─────────────────────────────────────────────────────────────────────────────
   Custom form dropdowns for the carrier-billing modal — same look as the
   allnumbers.html "show-all" dropdowns. A JS enhancer (transfer-number.js)
   replaces each native <select> with this; the native <select> stays hidden
   underneath so form values + updatePrice keep working. Menu is fixed-positioned
   so it isn't clipped by the scrolling plan table.
   ───────────────────────────────────────────────────────────────────────────── */
.cb-dd { position: relative; width: 100%; }

.cb-dd__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 1px solid #e7e7e7;
    border-radius: 30px;
    background: #fff;
    color: #222328;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 15px 22px;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s;
}

.cb-dd__toggle:hover,
.cb-dd__toggle.open {
    border-color: #4260cb;
}

.cb-dd__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-dd__toggle.is-placeholder .cb-dd__text {
    color: #9ca3af;
}

.cb-dd__arrow {
    width: 13px;
    height: 8px;
    flex-shrink: 0;
    transition: transform .2s;
}

.cb-dd__toggle.open .cb-dd__arrow {
    transform: rotate(180deg);
}

/* Menu (fixed-positioned by JS; these are the visual styles) */
.cb-dd__menu {
    position: fixed;
    z-index: 1080;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(34, 35, 40, .10);
    padding: 6px 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.cb-dd__menu.open {
    display: block;
}

.cb-dd__menu::-webkit-scrollbar {
    width: 5px;
}

.cb-dd__menu::-webkit-scrollbar-thumb {
    background: #4260cb;
    border-radius: 4px;
}

.cb-dd__search {
    padding: 8px 12px;
}

.cb-dd__search input {
    width: 100%;
    height: 38px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.cb-dd__search input:focus {
    border-color: #4260cb;
}

.cb-dd__opt {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    color: rgba(34, 35, 40, 0.6);
    transition: background .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-dd__opt:hover {
    background: #4260CB;
    color: white;
}

.cb-dd__opt.active {
    background: #4260CB;
    color: #fff;
}

.cb-dd__opt.hidden {
    display: none;
}

/* Plan-table dropdowns are a touch more compact */
#stepContent1 .cb-dd__toggle {
    padding: 8px 18px;
    font-size: 13px;
    min-width: 200px;
}
/* CB-DROPDOWN-END */

/* THANKYOU-START */
.order-thanks-modal { z-index: 1065; }
/* width:auto !important cancels transfer-number.css's generic `.modal-dialog{width:720px}`
   so this modal sizes exactly like allnumbers (max-width 720, responsive). */
.order-thanks-modal .modal-dialog { max-width: 720px !important; width: auto !important; }
.order-thanks-modal .modal-content { position: relative; }
.order-thanks-close {
    position: absolute; top: 22px; right: 24px; border: none; background: transparent;
    cursor: pointer; padding: 6px; z-index: 2; line-height: 0;
}
.order-thanks-close img { display: block; width: 20px; height: 20px; }
.order-thanks-close:hover { opacity: .7; }
.order-thanks-body { padding: 26px 56px 46px; text-align: center; }
.order-thanks-astro { width: 200px; height: auto; margin: 0 auto 6px; display: block; }
.order-thanks-title { font-size: 32px; font-weight: 700; color: #222328; margin: 0 0 22px; }
.order-thanks-text { font-size: 18px; color: #8c94b0; line-height: 1.55; margin: 0 0 18px; }
.order-thanks-strong { font-size: 19px; color: #222328; font-weight: 500; line-height: 1.55; margin: 0 0 28px; }
.order-thanks-btn { min-width: 240px; padding-left: 40px; padding-right: 40px; }
@media (max-width: 575.98px) {
    .order-thanks-body { padding: 24px 24px 34px; }
    .order-thanks-title { font-size: 24px; }
    .order-thanks-text, .order-thanks-strong { font-size: 16px; }
}
/* THANKYOU-END */
