/* ========================================
   WIZARD STYLES - FundsHub Loan Application
   ======================================== */

/* Reset and Base */
.wizard-page {
    background-color: #FCFCFC;
    min-height: 100vh;
    width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.wizard-header {
    padding: 24px 144px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.wizard-logo {
    width: 153px;
    height: 32px;
    position: relative;
    display: block;
    text-decoration: none;
}

.wizard-logo .logo-group-text {
    position: absolute;
    left: 0;
    top: 5%;
    bottom: 5%;
    right: 43.8%;
}

.wizard-logo .logo-group-icon {
    position: absolute;
    left: 57.02%;
    top: 14.9%;
    bottom: 5.94%;
    right: 0;
}

.wizard-logo img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Make "Funds" text black on wizard pages (dark filter on logo-text) */
.wizard-logo .logo-group-text img {
    filter: brightness(0);
}

/* ========================================
   MAIN WIZARD CONTAINER
   ======================================== */
.wizard-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 144px;
    box-sizing: border-box;
}

.wizard-page-title {
    margin-bottom: 32px;
}

.wizard-page-title h1 {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #101110;
    margin: 0 0 12px 0;
}

.wizard-divider {
    width: 956px;
    height: 1px;
    background-color: #DCDEDC;
}

/* ========================================
   WIZARD CONTENT LAYOUT
   ======================================== */
.wizard-content {
    display: flex;
    gap: 106px;
    align-items: flex-start;
}

/* ========================================
   STEPPER SIDEBAR
   ======================================== */
.wizard-stepper {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 180px;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    padding-bottom: 28px;
}

.stepper-item:last-child {
    padding-bottom: 0;
}

/* Connector line between steps */
.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 32px;
    width: 1px;
    height: 20px;
    background-color: #DCDEDC;
    z-index: 1;
}

/* Green connector for completed steps */
.stepper-item.completed::after {
    background-color: #18B269;
}

.stepper-indicator {
    width: 24px;
    height: 24px;
    border-radius: 64px;
    background-color: #DCDEDC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.stepper-indicator .stepper-number {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.24px;
}

.stepper-indicator .stepper-check {
    display: none;
    width: 14px;
    height: 14px;
}

.stepper-indicator.active {
    background-color: #18B269;
}

.stepper-indicator.completed {
    background-color: #18B269;
}

.stepper-indicator.completed .stepper-number {
    display: none;
}

.stepper-indicator.completed .stepper-check {
    display: block;
}

.stepper-label {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #A7ACA7;
    transition: all 0.3s ease;
}

.stepper-label.active {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
}

.stepper-label.completed {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
}

.stepper-connector {
    position: absolute;
    left: 11px;
    top: 32px;
    width: 1px;
    height: 20.6px;
    background-color: #DCDEDC;
    z-index: 1;
}

.stepper-connector.completed {
    background-color: #18B269;
}

/* ========================================
   FORM CONTAINER
   ======================================== */
.wizard-form-container {
    flex: 1;
    max-width: 662px;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.step-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #101110;
    margin: 0 0 32px 0;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    position: relative;
}

.form-label {
    position: absolute;
    top: 0;
    left: 12px;
    background-color: white;
    padding: 0 4px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    z-index: 3;
    line-height: 1;
    transform: translateY(-50%);
}

.form-label-static {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.87);
    margin-bottom: 16px;
    position: static;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 5px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 15px 12px;
    transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #18B269;
}

.input-wrapper.has-prefix {
    gap: 8px;
}

.input-prefix {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.54);
    letter-spacing: 0.15px;
    padding: 0 2px;
}

.form-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #101110;
    background: transparent;
    width: 100%;
}

.form-input::placeholder {
    color: #A7ACA7;
}

.form-input.error {
    border-color: #d32f2f;
}

.input-wrapper.has-suffix {
    padding-right: 12px;
}

.input-suffix {
    width: 24px;
    height: 24px;
    color: rgba(0, 0, 0, 0.54);
    flex-shrink: 0;
}

/* Date Picker Styles */
.date-picker-wrapper {
    position: relative;
}

.date-picker-wrapper .calendar-icon {
    cursor: pointer;
    transition: color 0.2s ease;
}

.date-picker-wrapper .calendar-icon:hover {
    color: #18B269;
}

/* Style the date input */
.date-input {
    position: relative;
}

/* Hide the default calendar icon in webkit browsers */
.date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* For Firefox - hide the default icon */
.date-input::-moz-calendar-picker-indicator {
    opacity: 0;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 5px;
    background-color: white;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

.select-wrapper:focus-within {
    border-color: #18B269;
}

/* Ensure form-group positions the label correctly over input/select wrappers */
.form-group .input-wrapper,
.form-group .select-wrapper {
    margin-top: 0;
}

.form-select {
    width: 100%;
    padding: 15px 40px 15px 12px;
    border: none;
    outline: none;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #101110;
    background: transparent;
    appearance: none;
    cursor: pointer;
}

.form-select:invalid,
.form-select option[value=""] {
    color: #A7ACA7;
}

.select-arrow {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    color: rgba(0, 0, 0, 0.54);
    pointer-events: none;
}

/* ========================================
   CHECKBOX STYLES
   ======================================== */
.terms-checkbox {
    margin-top: 32px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #757575;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-custom svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #18B269;
    border-color: #18B269;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom svg {
    opacity: 1;
}

.checkbox-label {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #757575;
    line-height: 1.4;
}

.checkbox-label a {
    color: #101110;
    text-decoration: underline;
}

/* ========================================
   RADIO STYLES
   ======================================== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 9px 0;
}

.radio-wrapper input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: border-color 0.2s ease;
}

.radio-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #18B269;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.radio-wrapper input[type="radio"]:checked + .radio-custom {
    border-color: #18B269;
}

.radio-wrapper input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.radio-label {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1F211F;
}

/* ========================================
   SLIDER STYLES
   ======================================== */
.slider-group {
    margin-top: 8px;
}

.revenue-slider-container {
    width: 392px;
    margin-top: 8px;
}

.revenue-slider {
    width: 100%;
    height: 6px;
    border-radius: 12px;
    background: linear-gradient(to right, #18B269 var(--slider-progress, 40%), rgba(0, 125, 255, 0.38) var(--slider-progress, 40%));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.revenue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #18B269;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.revenue-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #18B269;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.slider-labels span {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.38);
    text-align: center;
}

/* ========================================
   WIZARD ACTIONS
   ======================================== */
.wizard-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn-back,
.btn-next {
    padding: 8px 22px;
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-back {
    background-color: #DCDEDC;
    color: #101110;
}

.btn-back:disabled {
    background-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.26);
    cursor: not-allowed;
}

.btn-back:not(:disabled):hover {
    background-color: #CACDCA;
}

.btn-next {
    background-color: #18B269;
    color: white;
}

.btn-next:hover {
    background-color: #149d5a;
}

.btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.secure-notice {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #A7ACA7;
    margin-top: 24px;
}

/* ========================================
   STEP 4: DOCUMENTS SPECIFIC STYLES
   ======================================== */
.info-banner {
    display: flex;
    gap: 16px;
    align-items: center;
    background-color: #E7F1FF;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.info-banner-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: #4793FD;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-banner-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}

.info-banner-content {
    flex: 1;
}

.info-banner-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #101110;
    margin: 0 0 4px 0;
}

.info-banner-text {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #101110;
    margin: 0;
    line-height: 1.4;
}

.info-banner-text strong {
    font-weight: 600;
}

.documents-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.documents-subtitle {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #101110;
    margin: 0 0 8px 0;
}

.document-option {
    background: white;
    border: 1px solid #AFE5BE;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 1px 1px 34px 0px rgba(0, 0, 0, 0.04);
}

.document-option.recommended {
    border-color: #88D9A9;
}

.option-badge {
    display: inline-block;
    background-color: #E7F1FF;
    color: #4793FD;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: -0.24px;
    line-height: 20px;
    width: fit-content;
}

.option-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #101110;
    margin: 0;
}

.option-description {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #626862;
    margin: 0;
    line-height: 1.4;
}

.option-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-connect,
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border: 1px solid #18B269;
    border-radius: 8px;
    background: transparent;
    color: #18B269;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.btn-connect svg,
.btn-upload svg {
    width: 18px;
    height: 18px;
    transform: rotate(180deg);
}

.btn-connect:hover,
.btn-upload:hover {
    background-color: rgba(24, 178, 105, 0.08);
}

.btn-connect.connected {
    background-color: #18B269;
    color: white;
}

.btn-connect.connected svg {
    transform: none;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #A7ACA7;
}

.secure-badge svg {
    width: 16px;
    height: 16px;
}

/* Uploaded Files */
.uploaded-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #F3FAF3;
    border-radius: 4px;
}

.uploaded-file-item svg {
    width: 20px;
    height: 20px;
    color: #18B269;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: #101110;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file {
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: #A7ACA7;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file:hover {
    color: #d32f2f;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .wizard-header,
    .wizard-main {
        padding-left: 48px;
        padding-right: 48px;
    }
    
    .wizard-divider {
        width: 100%;
    }
    
    .wizard-content {
        gap: 64px;
    }
}

@media (max-width: 900px) {
    .wizard-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .wizard-stepper {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 16px;
    }
    
    .stepper-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        min-width: 80px;
    }
    
    .stepper-connector {
        display: none;
    }
    
    .wizard-form-container {
        max-width: 100%;
    }
    
    .revenue-slider-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wizard-header,
    .wizard-main {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .wizard-header {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    .wizard-logo {
        width: 115px;
        height: 24px;
    }
    
    .wizard-page-title h1 {
        font-size: 24px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .wizard-form {
        gap: 24px;
    }
    
    .wizard-actions {
        flex-direction: column;
    }
    
    .btn-back,
    .btn-next {
        width: 100%;
        justify-content: center;
    }
    
    .stepper-label {
        font-size: 12px;
    }
    
    .info-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .info-banner-title {
        font-size: 16px;
    }
    
    .info-banner-text {
        font-size: 14px;
    }
    
    .documents-subtitle {
        font-size: 18px;
    }
}

/* ========================================
   ERROR STATES
   ======================================== */
.input-wrapper.error,
.select-wrapper.error {
    border-color: #d32f2f !important;
    border-width: 1px;
}

.input-wrapper.error:focus-within,
.select-wrapper.error:focus-within {
    border-color: #d32f2f !important;
}

.form-group.error .form-label {
    color: #d32f2f;
}

.error-message {
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    color: #d32f2f;
    margin-top: 4px;
}

