/* ============================================
   NFC Renewal Form — Single Page Layout
   ============================================ */

/* Container */
.nfc-renewal-page {
    width: 100%;
}

/* Loading */
.nfc-renewal-loading {
    text-align: center;
    padding: 60px 20px;
}

.nfc-renewal-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E2E8F0;
    border-top-color: #2E7CF6;
    border-radius: 50%;
    animation: nfcSpin 0.6s linear infinite;
    margin: 0 auto 16px;
}

.nfc-renewal-loading p {
    font-size: 15px;
    color: #64748B;
    margin: 0;
}

/* Search Section */
.nfc-renewal-search-section {
    padding: 0;
}

.nfc-neon-search-results {
    margin-top: 4px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nfc-neon-search-results.has-results {
    display: block;
}

/* Sections */
.nfc-renewal-section {
    padding: 24px 0;
    border-bottom: 1px solid #E2E8F0;
}

.nfc-renewal-section:last-of-type {
    border-bottom: none;
}

.nfc-renewal-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 20px 0;
    padding: 0;
}

.nfc-renewal-section-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2E7CF6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.nfc-renewal-subsection {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 24px 0 12px 0;
    padding: 12px 0 0 0;
    border-top: 1px dashed #E2E8F0;
}

/* 3-column row */
.nfc-bform-row-3 {
    display: flex;
    gap: 12px;
}

.nfc-bform-row-3 > .nfc-bform-field {
    flex: 1;
}

/* Radio group */
.nfc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nfc-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: #F8FAFC;
    transition: all 0.2s ease;
}

.nfc-radio-item:hover {
    border-color: #CBD5E1;
    background: #F1F5F9;
}

.nfc-radio-item input[type="radio"] {
    accent-color: #2E7CF6;
    width: 16px;
    height: 16px;
    margin: 0;
}

.nfc-radio-item input[type="radio"]:checked + .nfc-radio-item,
.nfc-radio-item:has(input[type="radio"]:checked) {
    border-color: #2E7CF6;
    background: #EFF6FF;
    color: #1A1A2E;
}

/* Officers */
.nfc-officers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.nfc-officer-entry {
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FAFBFC;
}

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

.nfc-officer-header strong {
    font-size: 14px;
    color: #1A1A2E;
}

.nfc-remove-officer {
    background: none;
    border: none;
    font-size: 22px;
    color: #94A3B8;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.nfc-remove-officer:hover {
    color: #DC2626;
}

.nfc-add-officer-btn {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px dashed #CBD5E1 !important;
    width: 100%;
    justify-content: center;
}

.nfc-add-officer-btn:hover {
    background: #E2E8F0 !important;
    border-color: #94A3B8 !important;
}

/* Signature */
.nfc-signature-wrapper {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
}

.nfc-signature-pad {
    width: 100%;
    height: 200px;
    display: block;
    cursor: crosshair;
    touch-action: none;
}

.nfc-signature-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.nfc-sig-saved {
    background: #059669 !important;
}

/* Submit area */
.nfc-renewal-submit-area {
    text-align: center;
    padding-top: 12px;
}

.nfc-renewal-submit-btn {
    width: 100%;
    padding: 16px 28px !important;
    font-size: 16px !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nfc-bform-row-3 {
        flex-direction: column;
        gap: 0;
    }

    .nfc-radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .nfc-renewal-section-title {
        font-size: 16px;
    }

    .nfc-renewal-section-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .nfc-officer-entry {
        padding: 12px;
    }

    .nfc-signature-pad {
        height: 150px;
    }

    .nfc-signature-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nfc-renewal-section {
        padding: 16px 0;
    }

    .nfc-renewal-submit-btn {
        font-size: 14px !important;
        padding: 14px 20px !important;
    }
}

/* Search loading indicator */
.nfc-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
}
.nfc-search-loading-dot {
    width: 8px;
    height: 8px;
    background: #94A3B8;
    border-radius: 50%;
    animation: nfcSearchPulse 1.2s ease-in-out infinite;
}
.nfc-search-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.nfc-search-loading-dot:nth-child(3) { animation-delay: 0.3s; }
.nfc-search-loading-label {
    font-size: 13px;
    color: #94A3B8;
    margin-left: 6px;
}
@keyframes nfcSearchPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}
