.basic-info-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    padding: 24px;
    margin-bottom: 24px;
}

.reg-page-heading {
    font-size: 1.25rem;
}

.basic-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.basic-info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

    .basic-info-title i {
        color: #059669;
        font-size: 1.2rem;
    }

.btn-group-toggle {
    display: flex;
    background-color: #F3F4F6;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

    .btn-group-toggle .btn {
        border: none;
        background: transparent;
        color: #6B7280;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 8px 20px;
        border-radius: 6px;
    }

        .btn-group-toggle .btn.active {
            background-color: #059669;
            color: white;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }

/* --- Business Information Card --- */
.business-info-card {
    padding: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.business-info-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.business-info-title {
    color: #1e293b;
    font-size: 1rem;
}

.business-info-pill {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.business-info-pill-edit {
    background: #fef3c7;
    color: #92400e;
}

.business-info-pill-new {
    background: #dcfce7;
    color: #166534;
}

.business-info-body {
    padding: 24px;
}

/* --- Firm Name input with M/s. prefix --- */
.firm-name-input-wrap {
    display: flex;
    align-items: stretch;
}

.firm-name-prefix {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 0 14px;
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.firm-name-input {
    border-radius: 0 8px 8px 0 !important;
    text-transform: uppercase;
}

/* --- Logo Cards --- */
.logo-card {
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 140px;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    border: 1px solid transparent;
}

    .logo-card img {
        max-height: 60px;
        margin-bottom: 12px;
    }

    .logo-card span {
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

.card-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #D1D5DB;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

    .card-checkbox i {
        color: white;
        font-size: 0.9rem;
        opacity: 0;
    }

.logo-card.spic {
    background: linear-gradient(90deg, #f5f3ff03, #f5f3ff 100%);
    border-color: #E0E7FF;
}

    .logo-card.spic span {
        color: #3730A3;
    }

    .logo-card.spic:hover {
        border-color: #A5B4FC;
    }

.logo-card.green-star {
    background: linear-gradient(90deg, #eef9f06b, #d8f0dc 100%);
    border-color: #D1FAE5;
}

    .logo-card.green-star span {
        color: #4CAF50;
    }

    .logo-card.green-star:hover {
        border-color: #6EE7B7;
    }

.logo-card.active .card-checkbox {
    background-color: #059669;
    border-color: #059669;
}

    .logo-card.active .card-checkbox i {
        opacity: 1;
    }

/* --- Status Buttons --- */
.status-btn-group {
    display: flex;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 4px;
    width: 100%;
    flex-wrap: wrap;
}

    .status-btn-group .btn {
        flex: 1 1 auto;
        min-width: 0;
        border: none;
        background: transparent;
        color: #6B7280;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 8px 0;
        border-radius: 6px;
        white-space: nowrap;
    }

    .status-btn-group .btn_active.active {
        background-color: #059669;
        color: white;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    .status-btn-group .btn_inactive.active {
        background-color: #d97706d6;
        color: white;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    .status-btn-group .btn_terminated.active {
        background-color: #dc2626ed;
        color: white;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

.form-section {
    background: #fff;
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1F2937;
}

    .section-header i {
        color: #059669;
        font-size: 1.2rem;
    }

.form-label-custom {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 6px;
}

.form-control-custom {
    background-color: #F1F5F9;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.85rem;
}

    .form-control-custom:focus {
        background-color: #fff;
        border-color: #059669;
        box-shadow: none;
    }

/* --- Primary Location header (title + use current location button) --- */
.primary-location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.use-current-loc-btn {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* --- Map box --- */
.map-box-wrap {
    position: relative;
    height: 100%;
    min-height: 250px;
}

.leaflet-map-el {
    height: 100%;
    width: 100%;
    min-height: 250px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    z-index: 1;
}

.map-loc-btn {
    font-size: 0.6rem;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.logo-box {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .logo-box.active {
        border-color: #059669;
        background-color: #F0FDF4;
    }

    .logo-box img {
        max-height: 40px;
        margin-bottom: 8px;
    }

    .logo-box span {
        font-weight: 700;
        font-size: 0.8rem;
    }

.btn-group-custom .btn {
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #64748B;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 15px;
}

    .btn-group-custom .btn.active-green {
        background-color: #059669;
        color: white;
        border-color: #059669;
    }

    .btn-group-custom .btn.active-orange {
        background-color: #F59E0B;
        color: white;
        border-color: #F59E0B;
    }

.map-box {
    background-size: cover;
    height: 239px;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    border-radius: 20px;
    font-size: 0.7rem;
    padding: 4px 12px;
    border: 1px solid #ddd;
}

.compliance-card {
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #E2E8F0;
    height: 100%;
}

    .compliance-card.gst {
        background-color: #F0FDF4;
    }

    .compliance-card.pan {
        background-color: #EFF6FF;
    }

    .compliance-card.aadhaar {
        background-color: #FEF2F2;
    }

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: white;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
}

    .upload-area i {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 5px;
    }

.file-name-display {
    word-break: break-all;
}

.file-remove-x {
    cursor: pointer;
}

.small-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 15px;
}

input[type="number"].input-with-left-icon {
    padding-left: 40px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ═══ Delete Confirmation Modal ═══ */
.del-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: del-fade-in 0.2s ease-out;
}

@keyframes del-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.del-modal {
    background-color: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 32px 28px 28px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: del-pop-in 0.25s ease-out;
}

@keyframes del-pop-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.del-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background-color: #FEE2E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DC2626;
    font-size: 28px;
}

.del-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
}

.del-modal-body {
    font-size: 14px;
    color: #4B5563;
    margin: 0 0 4px 0;
    line-height: 1.5;
    word-break: break-word;
}

    .del-modal-body strong {
        color: #111827;
        font-weight: 700;
    }

.del-modal-warning {
    font-size: 13px;
    color: #DC2626;
    margin: 12px 0 24px 0;
    font-weight: 500;
}

.del-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.del-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    min-width: 120px;
    font-family: inherit;
}

.del-btn-cancel {
    background-color: #FFFFFF;
    border-color: #E5E7EB;
    color: #4B5563;
}

    .del-btn-cancel:hover {
        background-color: #F9FAFB;
        color: #1F2937;
    }

.del-btn-delete {
    background-color: #DC2626;
    color: #FFFFFF;
}

    .del-btn-delete:hover {
        background-color: #B91C1C;
    }

/* ═══════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════ */

/* --- Tablet (≤ 991px) --- */
@media (max-width: 991.98px) {
    .basic-info-card {
        padding: 18px;
    }

    .business-info-header {
        padding: 14px 18px;
    }

    .business-info-body {
        padding: 18px;
    }

    .basic-info-title {
        font-size: 1rem;
    }

    .btn-group-toggle .btn {
        padding: 8px 14px;
    }

    .logo-card {
        padding: 18px;
        min-height: 120px;
    }

        .logo-card img {
            max-height: 50px;
        }

        .logo-card span {
            font-size: 0.95rem;
        }

    .map-box-wrap {
        min-height: 220px;
    }
}

/* --- Small Tablet / Large Phone (≤ 767px) --- */
@media (max-width: 767.98px) {
    .basic-info-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group-toggle {
        width: 100%;
    }

        .btn-group-toggle .btn {
            flex: 1;
        }

    .business-info-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .business-info-pill {
        align-self: flex-start;
    }

    .primary-location-header {
        flex-direction: column;
        align-items: stretch;
    }

    .use-current-loc-btn {
        width: 100%;
        justify-content: center;
    }

    .map-box-wrap {
        min-height: 240px;
        margin-bottom: 4px;
    }
}

/* --- Mobile (≤ 575px) --- */
@media (max-width: 575.98px) {
    .reg-page-heading {
        font-size: 1.05rem;
    }

    .basic-info-card {
        padding: 14px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .business-info-header {
        padding: 12px 14px;
    }

    .business-info-body {
        padding: 14px;
    }

    .basic-info-title {
        font-size: 0.95rem;
    }

        .basic-info-title i {
            font-size: 1rem;
        }

    .btn-group-toggle {
        padding: 3px;
    }

        .btn-group-toggle .btn {
            padding: 7px 10px;
            font-size: 0.75rem;
        }

    .logo-card {
        padding: 14px;
        min-height: 110px;
    }

        .logo-card img {
            max-height: 42px;
            margin-bottom: 8px;
        }

        .logo-card span {
            font-size: 0.85rem;
        }

    .card-checkbox {
        width: 18px;
        height: 18px;
        top: 8px;
        right: 8px;
    }

    .status-btn-group .btn {
        padding: 7px 4px;
        font-size: 0.72rem;
    }

    .firm-name-prefix {
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .form-control-custom {
        padding: 9px 10px;
        font-size: 0.82rem;
    }

    .form-label-custom {
        font-size: 0.72rem;
    }

    .map-box-wrap {
        min-height: 200px;
    }

    .leaflet-map-el {
        min-height: 200px;
    }

    .map-loc-btn {
        font-size: 0.55rem;
        padding: 3px 10px !important;
    }

    .compliance-card {
        padding: 14px;
    }

    .upload-area {
        padding: 12px;
    }

        .upload-area i {
            font-size: 1.3rem;
        }

    .file-upload-box {
        padding: 12px;
    }

    .business-info-pill {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .del-modal {
        padding: 24px 18px 18px 18px;
        max-width: calc(100% - 24px);
    }

    .del-modal-title {
        font-size: 18px;
    }

    .del-modal-actions {
        flex-direction: column-reverse;
    }

        .del-modal-actions .del-btn {
            width: 100%;
        }
}

/* --- Extra Small Phone (≤ 380px) --- */
@media (max-width: 380px) {
    .basic-info-card {
        padding: 12px;
    }

    .logo-card {
        min-height: 100px;
        padding: 10px;
    }

        .logo-card img {
            max-height: 36px;
        }

        .logo-card span {
            font-size: 0.78rem;
            letter-spacing: 0;
        }

    .status-btn-group .btn {
        font-size: 0.68rem;
        padding: 6px 2px;
    }

    .btn-group-toggle .btn {
        font-size: 0.7rem;
        padding: 6px 8px;
    }

    .firm-name-prefix {
        font-size: 0.75rem;
        padding: 0 8px;
    }
}
