/* Self Subscription International Component Styles */

/* Payment Option Styles */
.disabled-payment-option {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
}

.disabled-payment-option:hover {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
}

/* Option Card Styles */
.option-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: #6690ff !important;
    background-color: #f0f4ff !important;
}

/* Wizard Styles */
.wizard {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px !important;
    gap: 24px;
    padding: 1.5rem 2.25rem;
}

.card-footer .btn {
    flex-shrink: 0;
}

/* Wizard Navigation Styles */
.wizard__nav {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
    width: 100%;
}

.wizard__nav__step {
    flex: 1 !important;
    height: 8px !important;
    border-radius: 4px !important;
    background-color: #E0E0E0 !important;
    border: none !important;
    outline: none !important;
    position: relative;
    min-width: 0;
}

.wizard__nav__step.active {
    background-color: #366796 !important;
    border: none !important;
    outline: none !important;
}

.wizard__nav__step.current {
    background-color: #366796 !important;
    border: none !important;
    outline: none !important;
}

.wizard__nav__step a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wizard__nav__step.disabled-step a {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.wizard__nav__step.disabled-step a:hover {
    background-color: transparent !important;
}

/* Region Selection Styles */
.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.region-btn {
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.region-btn:hover {
    transform: translateY(-1px);
}

.region-btn.selected {
    background-color: #e0e7ff;
    border: 1px solid #6690ff;
    color: #343a40;
    box-shadow: 0 2px 4px rgba(102, 144, 255, 0.2);
}

.region-btn.selected:hover {
    background-color: #c7d2fe;
    border-color: #4f46e5;
}

.region-btn.unselected {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.region-btn.unselected:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

/* Continent Selection Styles */
.continent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.continent-btn {
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.continent-btn:hover {
    transform: translateY(-1px);
}

.continent-btn.selected {
    background-color: #e0e7ff;
    border: 1px solid #6690ff;
    color: #343a40;
    box-shadow: 0 2px 4px rgba(102, 144, 255, 0.2);
}

.continent-btn.selected:hover {
    background-color: #c7d2fe;
    border-color: #4f46e5;
}

.continent-btn.unselected {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.continent-btn.unselected:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

/* Monthly Leads Input Styles */
.input-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.monthly-leads-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    background-color: white;
    transition: all 0.3s ease;
}

.monthly-leads-input:focus {
    border-color: #6690ff;
    box-shadow: 0 0 0 3px rgba(102, 144, 255, 0.1);
    outline: none;
}

.monthly-leads-input:invalid {
    border-color: #ef4444;
}

/* Confirmation page styles */
.checkmark-circle {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-circle i {
    color: #666666;
    font-size: 18px;
}

.confirmation-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.confirmation-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.confirmation-value {
    font-size: 18px;
    font-weight: 500;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.confirmation-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.edit-btn {
    border: 1px solid #40739E !important;
    color: #40739E !important;
    background-color: white !important;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.edit-btn:hover,
.edit-btn:focus {
    background-color: white !important;
    color: #40739E !important;
    border: 1px solid #40739E !important;
    outline: 2px dotted #40739E;
    outline-offset: 2px;
}

/* Company details form styling */
.form-label {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-control {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: white;
    border-color: #40739E;
    box-shadow: 0 0 0 3px rgba(64, 115, 158, 0.1);
}

.form-check-input {
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #40739E;
    border-color: #40739E;
}

.form-check-label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

/* Contract step styling */
.contract-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.contract-section {
    margin-bottom: 24px;
}

.contract-section:last-child {
    margin-bottom: 0;
}

.contract-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.contract-row:last-child {
    border-bottom: none;
}

.contract-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 180px;
    display: inline-block;
}

.contract-value {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
    line-height: 1.4;
    margin-left: auto;
}

.contract-section-title {
    color: #374151;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
}

.budget-table thead th {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.budget-table thead th.text-end {
    text-align: right;
}

.budget-table tbody td {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.budget-table tbody td.text-end {
    text-align: right;
}

.budget-table tbody tr:last-child td {
    border-bottom: none;
}

.lead-type-name {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.lead-type-desc {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

.budget-total-row td {
    padding-top: 20px;
    font-size: 16px;
}

.budget-total-row td strong {
    color: #374151;
    font-weight: 700;
}

.signature-section {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: right;
}

.signature-field {
    margin-bottom: 20px;
}

.signature-label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.signature-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: #f9fafb;
}

.signature-input:focus {
    outline: none;
    border-color: #40739E;
    box-shadow: 0 0 0 3px rgba(64, 115, 158, 0.1);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.terms-check {
    margin-top: 2px;
}

.terms-label {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.terms-link {
    color: #40739E;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.sign-button {
    background-color: #40739E;
    color: white;
    border: 1px solid #40739E;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sign-button:hover:not(:disabled) {
    background-color: #2c5a7a;
    border-color: #2c5a7a;
}

.sign-button:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}

/* Banner Illustration Styles */
.banner-illustration>.cta-self-subscription {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.banner-illustration>.cta-self-subscription .row {
    padding: 0 !important;
}

.banner-illustration>.cta-self-subscription .col-xl-5 {
    display: none !important;
}

.banner-illustration>.cta-self-subscription .col-xl-7 {
    padding: 0 !important;
    width: 100% !important;
}

/* DEV-5420: Keep banner card content inside the card on smaller screens.
   The illustration SVGs have fixed pixel widths; without these guards the
   flex children keep their default min-width:auto, refuse to shrink, and
   the text spills outside the card edge. */
.cta-self-subscription,
.cta-self-subscription .banner-inner {
    min-width: 0;
}

.cta-self-subscription .banner-illustration svg,
.cta-self-subscription .banner-illustration img {
    max-width: 100%;
    height: auto;
}

.cta-self-subscription h3,
.cta-self-subscription p {
    overflow-wrap: break-word;
}

/* Loader Styles */
.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #ed7e00;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-left: 4px solid #019ee1;
    border-bottom: 4px solid transparent;
    animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Updating Pricing Styles */
.updating-pricing .region-btn:disabled,
.updating-pricing .continent-btn:disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .region-grid,
    .continent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pricing Summary styles */
.pricing-summary {
    max-width: 400px;
    margin: 0 auto 20px auto;
}

.pricing-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #333;
}

.pricing-section {
    padding: 12px 16px;
    margin: 8px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 6px;
}

.section-header.clickable {
    cursor: pointer;
    padding: 4px 0;
    border-radius: 4px;
}

.section-header.clickable:hover {
    /* The chevron badge (below) is the hover affordance; keep the row itself at
       full opacity so the solid badge fill and its labels do not fade. */
    opacity: 1;
}

.section-header.clickable .fa-chevron-down,
.section-header.clickable .fa-chevron-right {
    font-size: 11px;
    color: #40739E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #eef2f7;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.section-header.clickable:hover .fa-chevron-down,
.section-header.clickable:hover .fa-chevron-right {
    background-color: #40739E;
    color: #fff;
}

.section-title-value {
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

.section-header .section-title {
    flex-shrink: 0;
    margin-right: auto;
}

.section-title {
    font-weight: 400;
    color: #333;
    margin: 0;
    font-size: 14px;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.origin-country {
    color: #333;
    font-size: 14px;
}

.expandable-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.expandable-option .fa-chevron-down,
.expandable-option .fa-chevron-right {
    color: #333;
}

.expandable-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.option-text {
    color: #333;
    font-size: 14px;
}

.cost-adjustment {
    color: #ef4444;
    font-weight: 600;
    font-size: 14px;
    margin-right: 8px;
}

.expanded-content {
    margin-top: 8px;
    padding-left: 4px;
}

.region-item,
.continent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.region-name,
.continent-name {
    color: #333;
}

.lead-type-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lead-type-price {
    font-size: 12px;
    color: #666;
}

.lead-type-helper {
    font-size: 13px;
    margin-top: 4px;
}

.total-section {
    background-color: #40739e;
    padding: 20px;
    color: white;
    margin: 0;
    border-radius: 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.total-label {
    font-size: 20px;
    font-weight: 700;
}

.total-calculation {
    text-align: right;
}

.calculation-container {
    position: relative;
    min-height: 24px;
    display: block;
    margin-bottom: 4px;
}

.calculation {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.calculation-multi {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: normal;
    font-size: 20px;
    font-weight: 700;
}

.unit-label {
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}

.divider-line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 16px 0;
    width: 100%;
}

.monthly-spend {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 400;
}

.monthly-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.monthly-amount {
    font-size: 18px;
    font-weight: 600;
    margin-left: auto;
}

.monthly-label {
    font-size: 16px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .pricing-summary {
        max-width: 100%;
    }

    .total-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .total-calculation {
        text-align: center;
        margin-top: 8px;
    }
}

/* ======================================== */
/* Payment Step Redesign Styles (DEV-6031) */
/* ======================================== */

.payment-recommendation-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #e8f4f8;
    border: 1px solid #2596be;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 16px;
}

.payment-recommendation-banner .banner-icon {
    color: #2596be;
    font-size: 18px;
    flex-shrink: 0;
}

.payment-recommendation-banner .banner-text {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
}

.payment-recommendation-banner .banner-text strong {
    font-weight: 700;
}

.payment-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-section-heading .heading-icon {
    color: #374151;
    font-size: 20px;
    margin-top: 3px;
}

.payment-section-heading h1 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 20px;
}

.payment-section-heading p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.payment-how-it-works {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.payment-how-it-works h2 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 16px;
}

.payment-how-it-works-item {
    text-align: left;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}

.payment-how-it-works-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e8eef4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #366796;
    font-size: 16px;
}

.payment-how-it-works-item h6 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    font-size: 14px;
}

.payment-how-it-works-item p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.payment-details-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.payment-details-heading .heading-icon {
    color: #374151;
    font-size: 18px;
}

.payment-details-heading h2 {
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    font-size: 16px;
}

.payment-method-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
}

.payment-method-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-method-card.selected {
    border-left: 4px solid #366796;
    border-color: #366796;
    background-color: #fff;
}

.payment-method-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.payment-method-card .method-info h6 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    font-size: 15px;
}

.payment-method-card .method-info p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

.payment-method-card .method-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.payment-recommended-badge {
    background-color: #2f5574;
    color: #fff;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.payment-added-badge {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.payment-method-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-method-radio.checked {
    background-color: #22a6b3;
    color: #fff;
    font-size: 12px;
}

.payment-method-radio.checked i {
    color: #fff !important;
}

.payment-method-radio.unchecked {
    border: 2px solid #d1d5db;
    background-color: #fff;
}

.payment-step-error {
    margin-top: 16px;
}

@media (max-width: 768px) {
    .payment-how-it-works .row > div {
        margin-bottom: 16px;
    }

    .payment-how-it-works .row > div:last-child {
        margin-bottom: 0;
    }

    .payment-method-card .method-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
}
