
/* --- Loading Overlay --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-overlay-content {
    text-align: center;
    padding: 2rem;
}

.loading-spinner-ring {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.loading-spinner-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 52px;
    height: 52px;
    margin: 6px;
    border: 5px solid #0b6b3a;
    border-radius: 50%;
    animation: loading-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #0b6b3a transparent transparent transparent;
}

.loading-spinner-ring div:nth-child(1) { animation-delay: -0.45s; }
.loading-spinner-ring div:nth-child(2) { animation-delay: -0.3s; }
.loading-spinner-ring div:nth-child(3) { animation-delay: -0.15s; }

@keyframes loading-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay-text {
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.loading-close-btn {
    background: none;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 8px 20px;
    color: #6B7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.loading-close-btn:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
    color: #374151;
}

/* --- Header & Progress --- */
.step-text {
    color: #0b6b3a; /* Green */
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.step-subtext {
    color: #6B7280;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.progress-bar-custom-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.progress-segment {
    height: 7px;
    width: 108px;
    border-radius: 10px;
    background-color: #E5E7EB;
}

    .progress-segment.active {
        background-color: #0b6b3a;
    }

    .progress-segment.error {
        background-color: #dc3545;
    }

    .progress-segment.current {
        background-color: #E5E7EB;
    }

.status-badge {
    background-color: #319135;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
}

/* --- Cards --- */
.company-title {
    font-size: 1.3rem;
    color: #3f3f3f;
}

.company-card-group {
    justify-content: flex-end;
}

.mini-company-card {
    min-width: 120px;
     background: #edf4eb;
    border: 1px solid #b9e8c9;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mini-company-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.mini-company-name {
    font-size: 13px;
    font-weight: 600;
    color: #445046;
    white-space: nowrap;
}

.mini-check-box {
    width: 14px;
    height: 14px;
    border: 1.5px solid #b9e8c9;
    border-radius: 4px;
    background: transparent;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .company-card-group {
        justify-content: flex-start;
    }

    .mini-company-card {
        min-width: 110px;
    }
}
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E5E7EB;
    margin-bottom: 24px;
}

.card-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-icon {
    color: #059669;
    font-size: 1.2rem;
}

/* --- Form Controls --- */
.form-label-custom {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 6px;
}

.form-control-custom, .form-select-custom {
    background-color: #F3F3F3;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #374151;
    box-shadow: none;
}

    .form-control-custom:focus, .form-select-custom:focus {
        background-color: #ffffff;
        border-color: #059669;
        box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
    }

    .form-control-custom::placeholder {
        color: #9CA3AF;
    }

/* Input Group with Upload Button */
.upload-input-group .form-control-custom {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-upload {
    background-color: #DCFCE7;
    color: #059669;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0 15px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .btn-upload:hover {
        background-color: #bbf7d0;
        color: #059669;
    }

/* Map Placeholder */
.map-placeholder {
    background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?q=80&w=1000&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    border-radius: 8px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.btn-map-interactive {
    background-color: white;
    color: #059669;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* File Upload Box */
.file-upload-box {
    background-color: #F9FAFB;
    border: 1px dashed #D1D5DB;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.2s;
}

    .file-upload-box:hover {
        border-color: #059669;
        background-color: #F0FDF4;
    }

    .file-upload-box span {
        color: #059669;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .file-upload-box small {
        color: #9CA3AF;
        font-size: 0.7rem;
    }

/* Yes/No Toggles */
.toggle-btn {
    background-color: #F3F4F6;
    color: #4B5563;
    border: none;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 10px;
}

    .toggle-btn.active {
        background-color: #059669;
        color: white;
    }

/* Footer */
.btn-next {
    background-color: #059669;
    color: white;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: 0.2s;
}

    .btn-next:hover {
        background-color: #047857;
        color: white;
    }
.formicon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.verifyicon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

/* input */
.input-with-icon {
    width: 100%;
    height: 42px; /* ensure consistent height */
    padding-right: 42px; /* space for icon */
}

/* icon */
.input-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 2;
}
.input-icon-left-wrapper {
    position: relative;
    width: 100%;
}

/* input spacing */
.input-with-left-icon {
    padding-left: 36px; /* space for ₹ */
    height: 42px;
}

/* rupee icon */
.input-icon-left {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b7280;
    pointer-events: none;
}
/* Table */
.spic-table {
    width: 100%;
    border-collapse: collapse;
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
}

    /* Header */
    .spic-table thead th {
        background: #f3f5f6;
        padding: 21px 16px;
        font-size: 0.8rem;
        font-weight: 600;
        color: #6B7280;
        border-bottom: 1px solid #E5E7EB;
        text-align: left;
    }

    /* Body */
    .spic-table tbody td {
        padding: 12px 16px;
        border-bottom: 1px solid #E5E7EB;
        background: #fff;
    }

    /* Footer */
    .spic-table tfoot td {
        background: #EAF6EE;
        padding: 21px 16px;
        font-weight: 700;
        border-top: 1px solid #D1E7D6;
    }

/* Inline Validation */
.form-control-custom.is-invalid,
.form-select-custom.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control-custom.is-invalid:focus,
.form-select-custom.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.field-error {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 4px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Yes/No Button Group */
.yes-no-group {
    display: inline-flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-yes,
.btn-no {
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    background-color: #F3F4F6;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-yes:hover {
    background-color: #D1FAE5;
    border-color: #059669;
    color: #059669;
}

.btn-no:hover {
    background-color: #FEE2E2;
    border-color: #DC2626;
    color: #DC2626;
}

.btn-yes.active {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
}

.btn-no.active {
    background-color: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

/* URL cell — wraps long URLs within the table */
.url-cell {
    max-width: 250px;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
}

