/* ==========================================================================
   SUPPLIERS MANAGEMENT MODIFICATIONS — CORPORATE THEME
   ========================================================================== */

.suppliers-page-wrapper {
    background-color: #f8fafc; /* Ultra-soft gray backdrop to separate card elements */
    min-height: 100vh;
}

/* --- 1. Clean Minimal Hero --- */
.suppliers-hero {
    background: var(--white);
    padding: 80px 0 48px 0;
    border-bottom: 1px solid var(--border);
}

.suppliers-hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background-color: rgba(0, 122, 135, 0.06);
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.suppliers-hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.suppliers-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 760px;
    line-height: 1.65;
}

/* --- 2. Dual Column Layout Split --- */
.suppliers-dual-layout {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 64px;
    padding: 60px 0 120px;
    align-items: start;
}

/* --- 3. Corporate Multi-Step Stepper Component --- */
.supplier-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    background: #f1f5f9;
    padding: 16px 24px;
    border-radius: 12px;
}

.supplier-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-label {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.step-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

.supplier-step-line {
    flex-grow: 1;
    height: 3px;
    background-color: #cbd5e1;
    margin: 0 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.supplier-step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.4s ease;
}

.supplier-step-line.filled::after {
    width: 100%;
}

/* Stepper Active Modifier States */
.supplier-step.active .step-circle {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 122, 135, 0.2);
}

.supplier-step.active .step-title {
    color: var(--text-main);
    font-weight: 700;
}

/* --- 4. Premium Form Structure --- */
.form-container {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.form-header {
    margin-bottom: 36px;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-segment__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --- 5. Styled Form Elements & Micro-Interactions --- */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 13px 16px 13px 44px; /* Space out room for left-aligned icons */
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Interactive Focus Frames */
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 135, 0.08);
    background: var(--white);
}

.input-icon-wrapper:focus-within .input-icon {
    color: var(--primary);
}

/* Custom Dropdown Overrides */
.select-wrapper {
    position: relative;
}

.select-control {
    padding-left: 16px; /* Select inputs skip generic prefix elements */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 44px;
    cursor: pointer;
}

/* --- 6. Form Transition Panel Layout --- */
.form-stage-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-stage-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- 7. Interactive Controls & Action Elements --- */
.form-actions {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-actions--single {
    justify-content: flex-end;
}

.btn-step-next,
.btn-submit-app {
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 122, 135, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-step-next:hover,
.btn-submit-app:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 135, 0.25);
}

.btn-step-next:hover .arrow-anim {
    transform: translateX(4px);
}

.arrow-anim {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.btn-step-back {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-step-back:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* --- 8. Corporate Authority Side Panel --- */
.suppliers-trust-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trust-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.trust-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 122, 135, 0.06);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.trust-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- 9. Dynamic Viewport Inversions --- */
@media (max-width: 1024px) {
    .suppliers-dual-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .suppliers-hero {
        padding: 60px 0 32px 0;
    }

    .suppliers-hero__title {
        font-size: 2.25rem;
    }

    .form-container {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .supplier-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .supplier-step-line {
        display: none;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .btn-step-back,
    .btn-step-next,
    .btn-submit-app {
        width: 100%;
        justify-content: center;
    }
}