/**
 * Custom Payment Form - Main Stylesheet
 */

/* CSS Variables */
:root {
    --cpf-navy: #1a2f52;
    --cpf-navy-mid: #1e3a6e;
    --cpf-blue: #2356c8;
    --cpf-blue-tint: #eef3fb;
    --cpf-green: #2d9b6f;
    --cpf-green-tint: #eaf6f0;
    --cpf-red: #c0392b;
    --cpf-red-tint: #fbf0ee;
    --cpf-amber: #c8973a;
    --cpf-amber-tint: #fdf5e6;
    --cpf-paper: #fbf8f3;
    --cpf-card: #ffffff;
    --cpf-line: #e4e0d8;
    --cpf-text-dark: #1f2630;
    --cpf-text-mid: #5a6472;
    --cpf-text-soft: #8a93a1;
    --cpf-font: Helvetica, Arial, sans-serif;
    --cpf-font-sig: 'Dancing Script', cursive;
}

/* ── TOP BAR ─────────────────────────────── */
.cpf-topbar {
/*     background: var(--cpf-navy); */
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

.cpf-topbar-brand {
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    letter-spacing: -0.01em;
}

.cpf-topbar-brand span {
    color: #7ab3f5;
}

/* ── FORM CONTAINER ──────────────────────── */
.cpf-form-shell {
    max-width: 680px;
    margin: 0 auto;
    padding: 0px 20px 80px;
}

.cpf-form-title {
    font-weight: 700;
    font-size: 48px !important;
    color: var(--cpf-navy);
    text-align: center;
    margin-bottom: 6px;
}

.cpf-form-subtitle {
    font-size: 15px;
    color: var(--cpf-text-mid);
    text-align: center;
    margin-bottom: 36px;
}
@media only screen and (max-width:767px){
	.cpf-form-title {
    font-size: 34px !important;
}
}

/* ── PROGRESS BAR ────────────────────────── */
.cpf-progress-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.cpf-progress-track::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--cpf-line);
    z-index: 0;
}

.cpf-progress-fill {
    position: absolute;
    top: 18px;
    left: 20px;
    height: 2px;
    background: var(--cpf-blue);
    z-index: 1;
    transition: width 0.4s ease;
    width: 0%;
	max-width:90%;
}

.cpf-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    cursor: default;
}

.cpf-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--cpf-line);
    background: var(--cpf-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--cpf-text-soft);
    transition: all 0.3s ease;
}

.cpf-step-node.active .cpf-step-circle {
    background: var(--cpf-navy);
    border-color: var(--cpf-navy);
    color: #fff;
}

.cpf-step-node.done .cpf-step-circle {
    background: var(--cpf-blue);
    border-color: var(--cpf-blue);
    color: #fff;
}

.cpf-step-node.done .cpf-step-circle::after {
    content: "✓";
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.cpf-step-node.done .cpf-step-num {
    display: none;
}

.cpf-step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cpf-text-soft);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.cpf-step-node.active .cpf-step-label {
    color: var(--cpf-navy);
}

.cpf-step-node.done .cpf-step-label {
    color: var(--cpf-blue);
}

/* ── FORM CARD ───────────────────────────── */
.cpf-form-card {
    background: var(--cpf-card);
    border: 1px solid var(--cpf-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26, 47, 82, 0.07);
}

.cpf-card-head {
    background: var(--cpf-navy);
    padding: 22px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cpf-card-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.cpf-card-head-text h2 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.cpf-card-head-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 2px;
    margin-bottom: 0;
}

.cpf-card-body {
    padding: 30px 30px 26px;
}

/* ── FORM FIELDS ─────────────────────────── */
.cpf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.cpf-field-row.single {
    grid-template-columns: 1fr;
}

.cpf-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cpf-field-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cpf-navy);
}

.cpf-field-group input,
.cpf-field-group select,
.cpf-field-group textarea {
    border: 1.5px solid var(--cpf-line);
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--cpf-font);
    color: var(--cpf-text-dark);
    background: #fff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}

.cpf-field-group input:focus,
.cpf-field-group select:focus,
.cpf-field-group textarea:focus {
    border-color: var(--cpf-blue);
    box-shadow: 0 0 0 3px rgba(35, 86, 200, 0.1);
}

.cpf-field-group input.error {
    border-color: var(--cpf-red);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.cpf-field-error {
    font-size: 12.5px;
    color: var(--cpf-red);
    display: none;
}

.cpf-field-error.show {
    display: block;
}

.cpf-field-hint {
    font-size: 12.5px;
    color: var(--cpf-text-soft);
    font-style: italic;
}

/* ── INFO BOX ────────────────────────────── */
.cpf-info-box {
    background: var(--cpf-blue-tint);
    border: 1px solid #d0dbf5;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 6px;
}

.cpf-info-box .cpf-info-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cpf-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.cpf-info-box .cpf-info-icon svg {
    width: 11px;
    height: 11px;
    fill: #fff;
}

.cpf-info-box p {
    font-size: 13px;
    color: #2a4a8a;
    line-height: 1.5;
    margin: 0;
}

/* ── CARRIER RADIO ───────────────────────── */
.cpf-carrier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.cpf-carrier-option {
    position: relative;
}

.cpf-carrier-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cpf-carrier-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 8px;
    border: 1.5px solid var(--cpf-line);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cpf-text-mid);
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    background: #fff;
}

.cpf-carrier-option input[type="radio"]:checked+label {
    border-color: var(--cpf-navy);
    background: var(--cpf-navy);
    color: #fff;
}

/* ── FILE UPLOAD ─────────────────────────── */
.cpf-file-upload-wrap {
    border: 2px dashed var(--cpf-line);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
    position: relative;
    background: #fdfcfb;
}

.cpf-file-upload-wrap:hover {
    border-color: var(--cpf-blue);
    background: var(--cpf-blue-tint);
}

.cpf-file-upload-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.cpf-upload-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    background: var(--cpf-blue-tint);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpf-upload-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--cpf-blue);
    stroke-width: 1.8;
    fill: none;
}

.cpf-upload-label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--cpf-navy);
    margin-bottom: 4px;
}

.cpf-upload-sub {
    font-size: 12.5px;
    color: var(--cpf-text-soft);
}

.cpf-upload-name {
    margin-top: 10px;
    font-size: 13px;
    color: var(--cpf-green);
    font-weight: 600;
    display: none;
}

/* ── PLAN CARDS ──────────────────────────── */
.cpf-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.cpf-plan-option {
    position: relative;
}

.cpf-plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cpf-plan-label {
    display: block;
    border: 1.5px solid var(--cpf-line);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: #fff;
    position: relative;
}

.cpf-plan-label:hover {
    border-color: #a8b8d8;
}

.cpf-plan-option input[type="radio"]:checked+.cpf-plan-label {
    border-color: var(--cpf-navy);
    background: var(--cpf-blue-tint);
    box-shadow: 0 0 0 2px var(--cpf-navy);
}

.cpf-plan-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--cpf-line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.cpf-plan-option input[type="radio"]:checked+.cpf-plan-label .cpf-plan-check {
    background: var(--cpf-navy);
    border-color: var(--cpf-navy);
}

.cpf-plan-check::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.cpf-plan-option input[type="radio"]:checked+.cpf-plan-label .cpf-plan-check::after {
    opacity: 1;
}

.cpf-plan-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 100px;
    background: var(--cpf-amber-tint);
    color: var(--cpf-amber);
    margin-bottom: 8px;
}

.cpf-plan-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--cpf-navy);
    margin-bottom: 4px;
/*     padding-right: 22px; */
}

.cpf-plan-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--cpf-navy);
}

.cpf-plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--cpf-text-soft);
}


.cpf-plan-option-full {
    grid-column: 1 / -1;
}

.cpf-plan-copy {
    font-size: 13px;
    line-height: 1.55;
    color: var(--cpf-text-mid);
    padding-right: 22px;
}

.cpf-custom-months-wrap {
    background: var(--cpf-paper);
    border: 1px solid var(--cpf-line);
    border-radius: 12px;
    padding: 16px;
    margin: -6px 0 18px;
}

.cpf-custom-price-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 9px;
    background: var(--cpf-blue-tint);
    color: var(--cpf-navy);
    font-size: 14px;
    font-weight: 600;
}

.cpf-custom-price-box strong {
    font-size: 18px;
}

.cpf-custom-price-box span {
    display:none;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    color: var(--cpf-text-soft);
}

/* ── SIGNATURE PAD ───────────────────────── */
.cpf-sig-wrap {
    border: 1.5px solid var(--cpf-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.cpf-sig-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13.5px;
    color: var(--cpf-text-soft);
    pointer-events: none;
    transition: opacity 0.2s;
}

#cpf-sig-canvas {
    display: block;
    width: 100%;
    height: 160px;
    cursor: crosshair;
    touch-action: none;
}

.cpf-sig-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    border-top: 1px solid var(--cpf-line);
    background: #f9f9f9;
}

.cpf-btn-clear-sig {
    font-size: 12.5px;
    color: var(--cpf-red);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--cpf-font);
    padding: 4px 0;
}

/* ── CHECKBOX ────────────────────────────── */
.cpf-checkbox-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--cpf-blue-tint);
    border: 1px solid #d0dbf5;
    border-radius: 10px;
    margin-bottom: 18px;
}

.cpf-checkbox-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--cpf-navy);
    margin-top: 2px;
    cursor: pointer;
}

.cpf-checkbox-row label {
    font-size: 13.5px;
    color: #2a4a8a;
    line-height: 1.5;
    cursor: pointer;
}

.cpf-checkbox-row label a {
    color: var(--cpf-blue);
    text-decoration: underline;
}

/* ── OPTIONAL NOTES ──────────────────────── */
.cpf-field-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── REVIEW SECTION ──────────────────────── */
.cpf-review-section {
    margin-bottom: 22px;
}

.cpf-review-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cpf-text-soft);
    margin-bottom: 10px;
}

.cpf-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cpf-review-item {
    background: var(--cpf-paper);
    border: 1px solid var(--cpf-line);
    border-radius: 8px;
    padding: 10px 14px;
}

.cpf-review-item .cpf-r-key {
    font-size: 11.5px;
    color: var(--cpf-text-soft);
    margin-bottom: 2px;
}

.cpf-review-item .cpf-r-val {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--cpf-navy);
}

.cpf-plan-selected-display {
    background: var(--cpf-navy);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cpf-plan-selected-display .psd-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.cpf-plan-selected-display .psd-price {
    font-size: 22px;
    font-weight: 700;
/*     color: #7ab3f5; */
	color:#ffffff;
}

/* ── NAVIGATION ──────────────────────────── */
.cpf-form-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: space-between;
    align-items: center;
}


.cpf-btn-back {
    padding: 14px 24px;
    border: 1.5px solid var(--cpf-line);
    border-radius: 10px;
    background: #fff;
    color: var(--cpf-navy);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--cpf-font);
    cursor: pointer;
    transition: all 0.18s ease;
    min-width: 100px;
}

.cpf-btn-back:hover {
    border-color: var(--cpf-navy);
    background: #f5f5f5;
}

.cpf-btn-next {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: var(--cpf-blue);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    font-family: var(--cpf-font);
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.cpf-btn-next:hover {
    background: var(--cpf-navy);
    transform: translateY(-1px);
}

.cpf-btn-next svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
}

.cpf-btn-submit {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: var(--cpf-green);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    font-family: var(--cpf-font);
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.cpf-btn-submit:hover {
    background: #247d59;
    transform: translateY(-1px);
}

.cpf-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── STEP VISIBILITY ─────────────────────── */
.cpf-form-step {
    display: none !important;
}

.cpf-form-step.active {
    display: block !important;
}

/* Ensure step 1 is visible by default */
/* #cpf-step-1 {
    display: block !important;
} */

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 560px) {
    .cpf-form-shell {
        padding: 0px 14px 60px;
    }
    
    .cpf-card-body {
        padding: 22px 18px 20px;
    }
    
    .cpf-field-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .cpf-carrier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cpf-plan-grid {
        grid-template-columns: 1fr;
    }
    
    .cpf-review-grid {
        grid-template-columns: 1fr;
    }
    
    .cpf-step-label {
        font-size: 9px;
    }
    
    .cpf-step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .cpf-progress-track::before {
        top: 15px;
/* 		max-width:90%; */
    }
    
    .cpf-progress-fill {
        top: 15px;
    }
    
    .cpf-form-nav {
        flex-wrap: wrap;
    }
    
    .cpf-btn-back,
    .cpf-btn-next,
    .cpf-btn-submit {
        flex: 1 1 100%;
        padding: 12px 18px;
        font-size: 14px;
        min-width: unset;
    }
}

/* ── PAYMENT ELEMENT ─────────────────────── */
#cpf-payment-element {
    padding: 15px;
    border: 1.5px solid var(--cpf-line);
    border-radius: 9px;
    background: #fff;
    min-height: 100px;
}

#cpf-payment-element .StripeElement {
    padding: 10px 0;
}

#cpf-payment-error {
    color: var(--cpf-red);
    font-size: 14px;
    padding: 10px;
    background: var(--cpf-red-tint);
    border-radius: 6px;
    margin-top: 10px;
    display: none;
}

#cpf-payment-loading {
    text-align: center;
    padding: 20px;
}

#cpf-payment-loading .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--cpf-line);
    border-top-color: var(--cpf-blue);
    border-radius: 50%;
    animation: cpf-spin 0.8s linear infinite;
}

@keyframes cpf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── SUCCESS / ERROR STATES ──────────────── */
.cpf-success-message {
    background: var(--cpf-green-tint);
    border: 1px solid var(--cpf-green);
    color: #1a7a4a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.cpf-error-message {
    background: var(--cpf-red-tint);
    border: 1px solid var(--cpf-red);
    color: var(--cpf-red);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
/* Custom */
#cpf-review-mission .cpf-review-item:last-child {
    display: block;
    height: 130px;
    overflow-y: auto;
}
.cpf-topbar .cpf-topbar-brand img{
	max-width: 100px !important;
	width:103px;
	height:auto;
	object-fit:cover;
}