/* ---------- Progress bar ---------- */
.lf2-progress-wrap {
    margin: 0 0 28px;
    padding: 12px 0 8px;
}

.lf2-progress-wrap .lf2-progress__steps {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0 8px;
    position: relative;
    gap: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Connector line — two segments for 3 circles */
.lf2-progress-wrap .lf2-progress__steps::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18%;
    right: 18%;
    height: 2px;
    background: #d6dce0;
    z-index: 0;
}

@media (max-width: 600px) {
    .lf2-progress-wrap .lf2-progress__steps::before {
        left: 10%;
        right: 10%;
    }
}

.lf2-progress__step {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    max-width: 33.33%;
    text-align: center;
}

.lf2-progress__circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05em;
    line-height: 1;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lf2-progress__label {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.25;
    color: #007b92;
    padding: 0 4px;
}

@media (max-width: 600px) {
    .lf2-progress__label {
        font-size: 0.82em;
    }
}

.lf2-progress__step--complete .lf2-progress__circle {
    background: #2e7d32;
    border: 2px solid #2e7d32;
    color: #fff;
}

.lf2-progress__step--complete .lf2-progress__label {
    color: #2e7d32;
}

.lf2-check {
    font-size: 1.15em;
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

.lf2-progress__step--active .lf2-progress__circle {
    background: #007b92;
    border: 2px solid #007b92;
    color: #fff;
}

.lf2-progress__step--active .lf2-progress__label {
    color: #007b92;
}

.lf2-progress__step--pending .lf2-progress__circle {
    background: #fff;
    border: 2px solid #b0bec5;
    color: #b0bec5;
}

.lf2-progress__step--pending .lf2-progress__label {
    color: #90a4ae;
}

/* Step 3 — payment failed */
.lf2-progress__step--failed .lf2-progress__circle {
    background: #c62828;
    border: 2px solid #c62828;
    color: #fff;
}

.lf2-progress__step--failed .lf2-progress__label {
    color: #c62828;
}

.lf2-x {
    font-size: 1.15em;
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

/* Page intro */
.lf-page-intro {
    margin-bottom: 28px;
}

/* Section title */
.lf-section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
}

/* Required asterisk */
.lf-req {
    color: #c62828;
    margin-right: 2px;
}

.lf-form input:not([type="checkbox"]),
.lf-form input:not([type="checkbox"]):focus,
.lf-form input:not([type="checkbox"]):hover {
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    padding: 15px 10px;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    line-height: 1;
    font-size: 1.1em;
    color: #111111;
    font-weight: 400;
    display: block;
    height: auto;
    outline: none;
}

.lf-form input:not([type="checkbox"]):focus {
    border-color: #0D6F8C;
    box-shadow: 0 0 0 2px rgba(13, 111, 140, 0.12);
}

/* Form labels (register style) */
.lf-form label {
    color: #111111;
    font-size: 1.05em;
    margin-bottom: 5px;
    display: block;
    font-weight: 400;
}

/* Plate form */
.lf-plate-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lf-plate-input-wrap {
    flex: 1 1 220px;
    min-width: 160px;
}

/* Benefits row */
.lf-benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.lf-benefit-item {
    flex: 1 1 180px;
    background: #f0f9fc;
    border: 1px solid #c9e8f0;
    border-radius: 8px;
    padding: 18px 16px;
    text-align: center;
}

.lf-benefit-item strong {
    display: block;
    font-size: 1em;
    font-weight: 700;
    color: #007b92;
    margin-bottom: 6px;
}

.lf-benefit-item span {
    font-size: 0.88em;
    color: #546e7a;
}

.licensefee_charge_details .items > li.licensefee_pay_row {
    background-color: #e8f4f8 !important;
    border: 1px solid #90caf9;
    box-sizing: border-box;
}

.licensefee_charge_details .items > li.licensefee_pay_row > strong {
    color: #0d47a1;
    font-size: 1.5em;
}

.licensefee_fee_disclaimer {
    font-size: 0.95em;
    color: #555;
    line-height: 1.55;
    padding: 0 5px;
    max-width: 100%;
}

/* Customer block */
.lf-customer-block {
    margin-bottom: 24px;
}

.lf2-customer-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    max-width: 560px;
}

.lf2-customer-fields > li {
    width: 100%;
}

/* Terms row */
.lf2-terms-row {
    margin: 12px 0 18px;
    max-width: 560px;
}

/* Client validation message */
.lf2-client-validation {
    color: #c62828;
    font-size: 0.93em;
    margin: 0 0 10px;
    min-height: 1.25em;
}

/* Pay actions */
.lf2-pay-actions {
    margin: 16px 0 10px;
}

.lf2-btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    min-height: 48px;
    min-width: 220px;
}

.lf2-btn-pay-body {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lf2-btn-pay-spinner {
    display: none;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lf2-btn-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.lf2-btn-pay.is-loading {
    cursor: wait;
    pointer-events: none;
}

.lf2-btn-pay.is-loading .lf2-btn-pay-body {
    opacity: 0;
}

.lf2-btn-pay.is-loading .lf2-btn-pay-spinner {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -11px;
    margin-top: -11px;
}

@keyframes lf2-btn-spin {
    to { transform: rotate(360deg); }
}

/* Disclosure text */
.lf2-disclosure {
    font-size: 0.82em;
    color: #90a4ae;
    margin: 6px 0 20px;
    line-height: 1.45;
}

/* Payment panel */
.lf2-payment-panel {
    display: none;
    margin-top: 24px;
    padding: 16px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-sizing: border-box;
}

.lf2-payment-panel.is-visible {
    display: block;
}

.lf2-payment-panel .payment_iframe {
    min-height: 480px;
    position: relative;
}

.lf2-payment-panel .payment_iframe iframe {
    width: 100%;
    min-height: 480px;
    border: none;
    display: block;
}

/* Success placeholder */
.lf2-step3-placeholder {
    display: none;
    margin-top: 20px;
    padding: 28px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1em;
    color: #1b5e20;
    line-height: 1.6;
}

.lf2-step3-placeholder.is-visible {
    display: block;
}

/* Thanks page */
.lf-thanks-wrap {
    text-align: center;
    padding: 32px 16px;
}

.lf-thanks-total {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 10px;
    padding: 16px 28px;
    margin: 0 auto 24px;
    font-size: 1.2em;
}

.lf-thanks-total strong {
    font-weight: 700;
    color: #1b5e20;
    font-size: 1.15em;
}

.lf-paid-badge {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.95em;
}

/* Error page */
.lf-error-box {
    background: #fff8f8;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    color: #b71c1c;
}

.lf-error-box h2 {
    color: #c62828;
    margin-bottom: 12px;
}
