/* ============================================
   NFC Business Form Widget
   ============================================ */

/* Reset */
.nfc-bform,
.nfc-bform *,
.nfc-bform *::before,
.nfc-bform *::after {
    box-sizing: border-box;
}

.nfc-bform {
    width: 100%;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
}

/* Header */
.nfc-bform .nfc-bform-header {
    text-align: center;
    padding: 0 0 24px 0;
}

.nfc-bform .nfc-bform-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px 0;
    padding: 0;
    color: #1A1A2E;
}

.nfc-bform .nfc-bform-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: #64748B;
}

/* Progress Bar */
.nfc-bform .nfc-bform-progress {
    margin-bottom: 32px;
}

.nfc-bform .nfc-bform-progress-bar {
    position: relative;
}

.nfc-bform .nfc-bform-progress-track {
    height: 4px;
    border-radius: 2px;
    background-color: #E2E8F0;
    margin-bottom: 16px;
    overflow: hidden;
}

.nfc-bform .nfc-bform-progress-fill {
    height: 100%;
    border-radius: 2px;
    background-color: #2E7CF6;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nfc-bform .nfc-bform-steps {
    display: flex;
    justify-content: space-between;
}

.nfc-bform .nfc-bform-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.nfc-bform .nfc-bform-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nfc-bform .nfc-bform-step-dot.is-active {
    background-color: #2E7CF6;
    color: #fff;
}

.nfc-bform .nfc-bform-step-dot.is-done {
    background-color: #2E7CF6;
    color: #fff;
}

.nfc-bform .nfc-bform-step-label {
    font-size: 12px;
    font-weight: 500;
    color: #94A3B8;
    text-align: center;
    transition: color 0.3s ease;
}

.nfc-bform .nfc-bform-step-label.is-active {
    color: #2E7CF6;
}

.nfc-bform .nfc-bform-step-label.is-done {
    color: #1A1A2E;
}

/* Panels */
.nfc-bform .nfc-bform-panel {
    display: none;
    animation: nfcFormFadeIn 0.35s ease;
}

.nfc-bform .nfc-bform-panel.is-active {
    display: block;
}

@keyframes nfcFormFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nfc-bform .nfc-bform-panel-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 4px 0;
    padding: 0;
}

.nfc-bform .nfc-bform-panel-desc {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 20px 0;
}

/* Fields */
.nfc-bform .nfc-bform-field {
    margin-bottom: 18px;
}

.nfc-bform .nfc-bform-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 6px;
}

.nfc-bform .nfc-required {
    color: #DC2626;
}

.nfc-bform .nfc-bform-input,
.nfc-bform .nfc-bform-select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #334155;
    background-color: #F8FAFC;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.nfc-bform .nfc-bform-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.nfc-bform .nfc-bform-input:focus,
.nfc-bform .nfc-bform-select:focus {
    border-color: #2E7CF6;
    box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.15);
    background-color: #fff;
}

.nfc-bform .nfc-bform-input.has-error,
.nfc-bform .nfc-bform-select.has-error {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.nfc-bform .nfc-field-error {
    font-size: 12px;
    color: #DC2626;
    margin-top: 4px;
}

/* Row layout (side by side) */
.nfc-bform .nfc-bform-row {
    display: flex;
    gap: 16px;
}

.nfc-bform .nfc-bform-half {
    flex: 1;
}

/* Navigation */
.nfc-bform .nfc-bform-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

/* Buttons */
.nfc-bform .nfc-bform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.nfc-bform .nfc-bform-btn-next,
.nfc-bform .nfc-bform-btn-submit {
    background-color: #2E7CF6;
    color: #fff;
}

.nfc-bform .nfc-bform-btn-next:hover,
.nfc-bform .nfc-bform-btn-submit:hover {
    background-color: #1A6AE0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 124, 246, 0.3);
}

.nfc-bform .nfc-bform-btn-prev {
    background-color: #F1F5F9;
    color: #334155;
}

.nfc-bform .nfc-bform-btn-prev:hover {
    background-color: #E2E8F0;
}

.nfc-bform .nfc-bform-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Add-ons */
.nfc-bform .nfc-bform-addons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.nfc-bform .nfc-addon-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F8FAFC;
}

.nfc-bform .nfc-addon-item:hover {
    border-color: #CBD5E1;
    background: #F1F5F9;
}

.nfc-bform .nfc-addon-item input[type="checkbox"] {
    display: none;
}

.nfc-bform .nfc-addon-item input[type="checkbox"]:checked + .nfc-addon-check {
    background: #2E7CF6;
    border-color: #2E7CF6;
    color: #fff;
}

.nfc-bform .nfc-addon-item input[type="checkbox"]:checked ~ .nfc-addon-info .nfc-addon-name {
    color: #1A1A2E;
}

.nfc-bform .nfc-addon-check {
    width: 24px;
    height: 24px;
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: all 0.2s ease;
}

.nfc-bform .nfc-addon-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.nfc-bform .nfc-addon-name {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s ease;
}

.nfc-bform .nfc-addon-price {
    font-size: 14px;
    font-weight: 700;
    color: #2E7CF6;
    flex-shrink: 0;
}

/* Renewal Search Results */
.nfc-bform .nfc-search-results {
    margin-top: 4px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nfc-bform .nfc-search-results.has-results {
    display: block;
}

.nfc-bform .nfc-search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #F1F5F9;
}

.nfc-bform .nfc-search-result-item:last-child {
    border-bottom: none;
}

.nfc-bform .nfc-search-result-item:hover {
    background: #F0F4FF;
}

.nfc-bform .nfc-search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
}

.nfc-bform .nfc-search-result-meta {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 2px;
}

.nfc-bform .nfc-search-no-results {
    padding: 16px;
    text-align: center;
    color: #94A3B8;
    font-size: 13px;
}

/* Renewal Preview Card */
.nfc-bform .nfc-renewal-card {
    padding: 20px;
    border: 2px solid #2E7CF6;
    border-radius: 12px;
    background: #F0F4FF;
    margin-top: 16px;
}

.nfc-bform .nfc-renewal-biz-name {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 12px 0;
}

.nfc-bform .nfc-renewal-details {
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

.nfc-bform .nfc-renewal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Success */
.nfc-bform .nfc-bform-success {
    text-align: center;
    padding: 40px 20px;
}

.nfc-bform .nfc-success-icon {
    margin-bottom: 20px;
}

.nfc-bform .nfc-success-heading {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 10px 0;
}

.nfc-bform .nfc-success-message {
    font-size: 15px;
    color: #64748B;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Error bar */
.nfc-bform .nfc-bform-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}

/* Loading spinner */
.nfc-bform .nfc-bform-btn-submit.is-loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.nfc-bform .nfc-bform-btn-submit.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: nfcSpin 0.6s linear infinite;
}

@keyframes nfcSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Tabs
   ============================================ */
.nfc-bform .nfc-bform-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background-color: #F1F5F9;
    border-radius: 12px;
    margin-bottom: 28px;
}

.nfc-bform .nfc-bform-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.nfc-bform .nfc-bform-tab:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}

.nfc-bform .nfc-bform-tab.is-active {
    background-color: #fff;
    color: #2E7CF6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nfc-bform .nfc-bform-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nfc-bform .nfc-bform-tab-content {
    display: none;
}

.nfc-bform .nfc-bform-tab-content.is-active {
    display: block;
    animation: nfcFormFadeIn 0.35s ease;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nfc-bform {
        border-radius: 12px;
    }

    .nfc-bform .nfc-bform-heading {
        font-size: 24px;
    }

    .nfc-bform .nfc-bform-description {
        font-size: 13px;
    }

    .nfc-bform .nfc-bform-tabs {
        gap: 2px;
        padding: 3px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .nfc-bform .nfc-bform-tab {
        padding: 10px 12px;
        font-size: 12px;
        gap: 5px;
        border-radius: 8px;
    }

    .nfc-bform .nfc-bform-tab svg {
        width: 15px;
        height: 15px;
    }

    .nfc-bform .nfc-bform-progress {
        margin-bottom: 24px;
    }

    .nfc-bform .nfc-bform-panel-title {
        font-size: 18px;
    }

    .nfc-bform .nfc-bform-panel-desc {
        font-size: 13px;
    }

    .nfc-bform .nfc-bform-row {
        flex-direction: column;
        gap: 0;
    }

    .nfc-bform .nfc-bform-input,
    .nfc-bform .nfc-bform-select {
        padding: 10px 14px;
        font-size: 13px;
    }

    .nfc-bform .nfc-bform-select {
        padding-right: 36px;
    }

    .nfc-bform .nfc-bform-label {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .nfc-bform .nfc-bform-steps {
        gap: 4px;
    }

    .nfc-bform .nfc-bform-step-label {
        font-size: 10px;
    }

    .nfc-bform .nfc-bform-step-dot {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .nfc-bform .nfc-bform-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .nfc-bform .nfc-bform-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nfc-bform .nfc-renewal-actions {
        flex-direction: column;
    }

    .nfc-bform .nfc-addon-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .nfc-bform .nfc-addon-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .nfc-bform .nfc-success-heading {
        font-size: 22px;
    }

    .nfc-bform .nfc-success-message {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .nfc-bform .nfc-bform-tab {
        padding: 8px 8px;
        font-size: 11px;
        gap: 3px;
    }

    .nfc-bform .nfc-bform-tab svg {
        width: 13px;
        height: 13px;
    }

    .nfc-bform .nfc-bform-heading {
        font-size: 20px;
    }

    .nfc-bform .nfc-bform-step-label {
        font-size: 9px;
    }

    .nfc-bform .nfc-bform-step-dot {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

/* Terms & Conditions checkbox */
.nfc-terms-field {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.nfc-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}
.nfc-terms-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #2E7CF6;
}
.nfc-terms-label a {
    color: #2E7CF6;
    text-decoration: underline;
    font-weight: 500;
}
.nfc-terms-label a:hover {
    color: #1a5cc7;
}
.nfc-terms-field.has-error {
    border-color: #ef4444;
    background: #fef2f2;
}
.nfc-terms-field .nfc-field-error {
    margin-top: 0.5rem;
}

/* Premium plan included add-ons */
.nfc-addon-included {
    opacity: 0.85;
    pointer-events: none;
}
.nfc-addon-included .nfc-addon-price {
    color: #059669;
    font-weight: 600;
}
.nfc-addon-included .nfc-addon-check {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
}

/* Standalone services */
.nfc-standalone-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}
.nfc-standalone-info {
    flex: 1;
}
.nfc-standalone-info strong {
    font-size: 15px;
    color: #1A1A2E;
}
.nfc-standalone-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
}
.nfc-standalone-action {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.nfc-standalone-price {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A2E;
}
@media (max-width: 600px) {
    .nfc-standalone-service {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Plan toggle */
.nfc-plan-toggle {
    display: flex;
    gap: 0;
    background: #F1F5F9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}
.nfc-plan-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: Inter, sans-serif;
}
.nfc-plan-option.is-active {
    background: #FFFFFF;
    border-color: #2E7CF6;
    box-shadow: 0 2px 8px rgba(46, 124, 246, 0.15);
}
.nfc-plan-option-name {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}
.nfc-plan-option.is-active .nfc-plan-option-name {
    color: #1A1A2E;
}
.nfc-plan-option-price {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
}
.nfc-plan-option.is-active .nfc-plan-option-price {
    color: #2E7CF6;
}

/* BOIR section */
.nfc-boir-owner {
    padding: 20px 0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 16px;
}
.nfc-boir-owner:last-child {
    border-bottom: none;
}
.nfc-field-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #94A3B8;
}
.nfc-file-input {
    padding: 10px !important;
    background: #FFFFFF !important;
}

/* ============================================
   Payment Section (VyaPay / Collect.js)
   ============================================ */
.nfc-payment-section {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    background: #FAFBFC;
}

/* Order Summary */
.nfc-payment-summary {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}
.nfc-payment-summary-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 16px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid #F1F5F9;
}
.nfc-payment-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.nfc-payment-item-name {
    font-size: 14px;
    color: #334155;
}
.nfc-payment-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
}
.nfc-payment-item-price.nfc-included {
    color: #059669;
    font-weight: 500;
    font-size: 13px;
}
.nfc-payment-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 2px solid #E2E8F0;
}
.nfc-payment-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
}
.nfc-payment-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2E7CF6;
}

/* Collect.js Iframe Container Fields */
.nfc-collectjs-field {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 0;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background-color: #F8FAFC;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.nfc-collectjs-field iframe {
    width: 100% !important;
    height: 46px !important;
    border: none !important;
}
.nfc-collectjs-field:focus-within,
.nfc-collectjs-field.nfc-cc-focus {
    border-color: #2E7CF6;
    box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.15);
    background-color: #FFFFFF;
}
.nfc-collectjs-field.nfc-cc-invalid {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.nfc-cc-error {
    font-size: 12px;
    color: #DC2626;
    margin-top: 4px;
    display: none;
}

/* Payment Card Fields */
.nfc-payment-card-fields {
    margin-bottom: 16px;
}

/* Secure Notice */
.nfc-payment-secure-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}
.nfc-payment-secure-notice svg {
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .nfc-payment-section {
        padding: 16px;
    }
    .nfc-payment-summary {
        padding: 16px;
    }
    .nfc-payment-total-amount {
        font-size: 18px;
    }
}
