/* Container & Base Layout */
.consultiv-bics-wrap {
    max-width: 840px;
    margin: 30px auto;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(11, 25, 44, 0.08);
    padding: 42px 48px;
    color: #1a202c;
    box-sizing: border-box;
    min-height: 480px; /* Prevents jarring container collapse during transitions */
    position: relative;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consultiv-bics-wrap * {
    box-sizing: border-box;
}

/* Header & Progress Bar */
.bics-header {
    margin-bottom: 36px;
}

.bics-step-counter {
    font-size: 13px;
    font-weight: 700;
    color: #0088CC;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.bics-progress-bar-bg {
    height: 8px;
    background: #edf2f7;
    border-radius: 99px;
    overflow: hidden;
}

.bics-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0B192C 0%, #0088CC 100%);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bics-step-breadcrumbs {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 11px;
    color: #a0aec0;
}

.bics-crumb {
    transition: color 0.25s ease, border-color 0.25s ease, font-weight 0.25s ease;
    padding-bottom: 4px;
}

.bics-crumb.active {
    color: #0B192C;
    font-weight: 700;
    border-bottom: 2px solid #0088CC;
}

/* Smooth Step Panel Animations */
.bics-step-panel {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bics-step-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.bics-step-panel h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0B192C;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.bics-subtitle {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 24px;
    line-height: 1.5;
}

.bics-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Informational Cards */
.bics-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.bics-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bics-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.bics-info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0B192C;
    margin: 0 0 8px 0;
}

.bics-info-card p {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* Form Inputs & Selects */
.bics-field-group {
    margin-bottom: 22px;
}

.bics-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.bics-input, .bics-select {
    width: 100%;
    padding: 8px 18px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    color: #1a202c;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    margin-top: 4px;
    margin-bottom: 12px;
}

.bics-input:focus, .bics-select:focus {
    border-color: #0088CC;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.12);
}

.bics-input-error {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

.bics-input-unit-flex {
    display: flex;
    gap: 12px;
}

.bics-input-unit-flex input {
    flex: 3;
}

.bics-input-unit-flex select {
    flex: 1;
}

/* Company Confirmation Summary Card */
.bics-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.bics-summary-row {
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 12px;
}

.bics-summary-row:last-child {
    margin-bottom: 0;
}

.bics-summary-row strong {
    color: #0B192C;
    display: inline-block;
    width: 170px;
}

/* Checkbox Cards */
.bics-checkbox-card {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    margin-bottom: 24px;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.bics-checkbox-card:hover {
    border-color: #cbd5e0;
    background: #f1f5f9;
}

.bics-checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 14px;
    accent-color: #0088CC;
    flex-shrink: 0;
    cursor: pointer;
}

/* Vertical Block Radio Buttons */
.bics-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 28px 0;
}

.bics-radio-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.2s ease;
}

.bics-radio-option:hover {
    border-color: #0088CC;
    background: #f0f9ff;
    transform: translateX(3px);
}

.bics-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 14px;
    accent-color: #0088CC;
    flex-shrink: 0;
    cursor: pointer;
}

/* Search Results & Cards */
.bics-results-list {
    margin-top: 12px;
    margin-bottom: 24px;
    max-height: 380px;
    overflow-y: auto;
}

.bics-res-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bics-res-item:hover {
    border-color: #0088CC;
    background-color: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.08);
}

.bics-res-title {
    font-size: 15px;
    font-weight: 700;
    color: #0B192C;
}

.bics-res-num {
    color: #0088CC;
    font-weight: 600;
}

.bics-res-addr {
    font-size: 13px;
    color: #718096;
    margin-top: 4px;
}

/* Code Cards */
.bics-code-stack {
    margin-top: 14px;
    margin-bottom: 24px;
}

.bics-code-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.bics-card-selected {
    border-color: #0088CC;
    background: #f0f9ff;
}

.bics-code-num {
    font-weight: 700;
    color: #0B192C;
    font-size: 15px;
}

.bics-code-desc {
    font-size: 14px;
    color: #4a5568;
}

.bics-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e2e8f0;
    color: #4a5568;
    display: inline-block;
}

.bics-badge-green {
    background: #c6f6d5;
    color: #22543d;
}

/* Smooth Spinner & Loading Indicators */
.bics-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: #0088CC;
    font-size: 14px;
    font-weight: 600;
}

.bics-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #0088CC;
    border-radius: 50%;
    animation: bicsSpin 0.7s linear infinite;
}

.bics-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: bicsSpin 0.7s linear infinite;
    margin-right: 8px;
}

@keyframes bicsSpin {
    to { transform: rotate(360deg); }
}

/* In-Page Error Banners */
.bics-error-banner {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.bics-alert-banner {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.bics-alert-success {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #22543d;
}

.bics-alert-warning {
    background-color: #fffaf0;
    border: 1px solid #feebc8;
    color: #744210;
}

/* Nav Actions & Buttons */
.bics-nav-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.bics-btn {
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bics-btn-primary {
    background: #0088CC;
    color: #ffffff;
}

.bics-btn-primary:hover:not(:disabled) {
    background: #006699;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
}

.bics-btn-primary:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bics-btn-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.bics-btn-secondary:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.bics-btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bics-add-hs {
    background: #0088CC;
    color: #ffffff;
}

.bics-add-hs:hover {
    background: #006699;
}

.bics-btn-added {
    background: #cbd5e0;
    color: #4a5568;
}

.bics-btn-danger {
    background: #fed7d7;
    color: #9b2c2c;
}

.bics-btn-danger:hover {
    background: #feb2b2;
}

/* Results Display */
.bics-results-box {
    margin-top: 24px;
    margin-bottom: 28px;
}

.bics-saving-block {
    background: #f0f9ff;
    border-left: 5px solid #0088CC;
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 0 10px 10px 0;
}

.bics-saving-block h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #4a5568;
}

.bics-saving-amount {
    font-size: 38px;
    font-weight: 800;
    color: #0B192C;
}

.bics-disclaimer-box {
    font-size: 12px;
    color: #718096;
    line-height: 1.6;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 24px;
}

.bics-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.bics-field label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

/* Contact Block */
.bics-contact-block {
    background: #0B192C;
    color: #ffffff;
    padding: 32px 28px;
    border-radius: 12px;
    text-align: center;
    margin-top: 32px;
    box-shadow: 0 8px 24px rgba(11, 25, 44, 0.15);
}

.bics-contact-block h3 {
    color: #ffffff;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 12px;
}

.bics-contact-sub {
    color: #cbd5e0;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.bics-contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bics-contact-link {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0088CC;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bics-contact-link:hover {
    background: #f0f9ff;
    color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
/* Container & Base Layout */
.consultiv-bics-wrap {
    max-width: 840px;
    margin: 40px auto;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(11, 25, 44, 0.08);
    padding: 42px 48px;
    color: #1a202c;
    box-sizing: border-box;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 140px; /* Native CSS protection against fixed header overlap */
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
