/* General Body Styles */
body {
    margin: 0;
    background-color: var(--color-background-alt);
    background-repeat: no-repeat;
    background-position: bottom center;
    /* background-size: 100% 60vh;  */
    height: 100%;
    background-attachment: fixed;
    overflow-y: auto;
}

/* Reference Confirmation Styles */
.reference-confirmation-step {
    /* padding: 2rem; */
}

.reference-requirements {
    /* margin: 2rem 0; */
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--color-brand);
}

.requirement-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.requirement-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text-primary);
    font-size: var( --fs-14);
    font-weight: 600;
}

.requirement-content p {
    padding-bottom: 0 !important;
    font-size: var( --fs-12) !important;
}

.reference-options {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 0.7rem;
    border: 2px solid var(--color-info-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover {
    border-color: var(--color-brand);
    box-shadow: 0 4px 12px rgba(10, 184, 242, 0.1);
}

.option-card.selected {
    border-color: var(--color-brand);
    background: rgba(10, 184, 242, 0.05);
}

.option-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
}

.option-icon.available {
    background: #caffca;
}

.option-icon.fallback {
    background: var(--color-brand);
}

.option-card.selected .option-icon {
    background: var(--color-brand);
}

.option-icon img {
    width: 24px;
    height: 24px;
}

.option-card.selected .option-icon img {
    filter: brightness(0) invert(1);
}

.option-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.option-content p {
    margin: 0 !important;
    color: var(--color-text-secondary) !important;
    font-size: var( --fs-12) !important;
    padding-bottom: 0 !important;
}

.reference-download-section {
    /*margin: 2rem 0; */
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.download-header {
    display: flex;
    align-items: center;
}
.download-header p {
    padding-bottom: 0 !important;
    font-size: var(--fs-12) !important;
    margin: 0 !important;
    color: var(--color-text-secondary) !important;
}

.download-header img {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
}

.download-header h4 {
    margin: 0 0 0.25rem 0;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-brand);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: var(--fs-12);
}

.download-btn:hover {
    background: #0891d4;
    color: white;
}

.download-btn img {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

/* Reference Upload Styles */
.reference-upload-step {
    /*padding: 2rem;*/
}

.reference-upload-section {
    margin: 2rem 0;
}

.upload-item {
    margin-bottom: 2rem;
}

.upload-item h4 {
    margin: 0 0 1rem 0;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.upload-item .upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-item .upload-area:hover {
    border-color: var(--color-brand);
    background: rgba(10, 184, 242, 0.02);
}

.upload-item .upload-area.drag-over {
    border-color: var(--color-brand);
    background: rgba(10, 184, 242, 0.05);
}

.upload-item .upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.upload-item .upload-default p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.upload-item .file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-item .file-preview-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.upload-item .file-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: var(--color-brand);
}

.upload-item .file-details {
    flex: 1;
    text-align: left;
}

.upload-item .file-name {
    margin: 0 0 0.25rem 0;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.upload-item .file-size {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
}

.upload-item .remove-file {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-item .remove-file:hover {
    background: #dc2626;
}

/* Header Styles */
.header-container {
    background-color: var(--color-brand);
    display: flex;
    justify-content: center;
    width: 90%;
    margin: 15px auto;
    border-radius: 5px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: white;
}

.hamburger-menu {
    cursor: pointer;
    margin-right: 20px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-grow: 1;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: var(--fs-12);
    font-weight: 300;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 5px 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding: 5px;
    width: 150px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar img {
    width: 16px;
    height: 16px;
}

.internet-banking-btn {
    border: 1px solid white;
    padding: 8px 15px;
    border-radius: 5px;
    white-space: nowrap;
}

.logo {
    margin-left: auto;
}

.logo img {
    height: 25px;
}
/* Header Styles End*/

/* Step Navigation Styles */
.step-navigation-container {
    background-color: var(--color-surface);
    padding: 10px 10px 10px 0;
    margin-bottom: 0px;
    width: auto;
    min-width: 200px;
    max-width: 80%;
    border-radius: 8px;
    margin-left: 10%;
    margin-right: auto;
    margin-top: 85px;
  /*  overflow-x: hidden; */
    transition: width 0.3s ease;
}

.step-navigation {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.step {
    padding: 5px 8px;
    color: var(--color-text-muted);
    font-size: var(--fs-14);
    white-space: nowrap;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.step[data-status="completed"] {
    opacity: 1;
}

.step[data-status="current"] {
    opacity: 1;
    font-size: var(--fs-12);
    transform: scale(1.05);
    font-family: var(--font-medium);
}

.step[data-status="pending"] {
    display: none;
}

.separator {
    margin: 0 3px;
    color: var(--color-border-mid);
    font-weight: bold;
    transition: all 0.3s ease;
}

.separator[data-step] {
    display: inline-block;
}

.separator[data-step]:not([data-step="1"]) {
    display: none;
}

/* cust info and next of kin navigation */
.substep-nav {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    margin-left: auto;
    justify-content: flex-end;
}
/* Step Navigation Styles End*/


/* Main Styles */
.main-content {
    display: flex;
    justify-content: center;
    padding: 20px;
    padding-top: 15px;
}

.main-card {
    background-color: var(--color-surface);
    border-radius: 10px;
    width: 80%;
    max-width: 1054px;
    padding: 25px;
}

.main-card h2 {
    margin-bottom: 15px;
    color: var(--color-text-strong);
    font-size: var(--fs-24);
    font-weight: 500;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.content-sections {
    display: flex;
    gap: 30px;
}

.left-section {
    flex: 0 0 35%;
    padding-right: 20px;
}

.right-section {
    flex: 1;
    border: 1px solid var(--color-info-border);
    border-radius: var(--radius-12);
    padding: 0 30px 30px;
}

/* Left Section Step Info */
.step-info {
    display: flex;
    align-items: center;
    padding: 15px;
    transition: background-color 0.3s ease;
    background-color: var(--color-info-surface);
    /* height: 85px; */
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-info-border);
}

.step-info:last-child {
    border-bottom: none;
}

.step-info.active-step {
    border-left: 3px solid var(--color-primary);
    background-color: var(--color-info-surface);
}

.step-info .step-icon {
    width: 30px;
    height: 40px;
    margin-right: 15px;
}

.step-info h3 {
    font-size: var(--fs-14);
    margin: 0 0 5px 0;
    color: var(--color-text-strong);
    font-weight: 500;
    font-family: var(--font-medium);
    font-weight: 350;
}

.step-info p {
    font-size: var(--fs-12);
    font-weight: 300;
    margin: 0;
    color: var(--color-text-muted-2);
}

.step-info.hidden {
    display: none;
}
/* Left Main Info Styles */

.form-section h3 {
    font-size: var(--fs-24);
    /* margin-bottom: 10px; */
    color: var(--color-text-strong);
    font-weight: 510;
    margin-top: 20px;
    margin-bottom: 0;
    font-family: var(--font-regular);
}

.form-section p {
    font-size: var(--fs-16);
    font-weight: 300;
    /* margin-bottom: 30px; */
    color: var(--color-text-muted-2);
    margin: 0;
    padding-bottom: 30px;
    padding-top: 8px;
}

.form-section p.err-msg {
    display: none;
    color: red;
    font-size: var(--fs-10);
    padding: 0;
    margin: 0;
    font-family: var(--font-medium);
    padding-top: 5px
}

.form-section.hidden {
    display: none;
}

.form-group {
    padding-bottom: 15px;
    /* border-radius: 40px; */
}

/* .form-section.form-group :first-child {
    padding-top: 15px;
} */

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: var(--fs-14);
    font-weight: 200;
    color: var(--color-text-label);
}

.form-row label {
    margin-bottom: 4px;
    font-size: var(--fs-10);
}

.full-width-input {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-12);
    box-sizing: border-box;
    font-size: var(--fs-10);
}

.full-width-input:focus {
    outline: none;
    box-shadow: none;
}

.full-width-input.input-valid{
    border: 1px solid var(--color-primary);
}

.full-width-input.input-error{
    border: 1px solid red;
}

.full-width-input::placeholder {
    color: var(--color-placeholder);
    font-weight: 200;
}

/* Hide original select elements */
select.full-width-input {
    display: none;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.custom-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-size: var( --fs-12);
}

.custom-dropdown-trigger:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-dropdown-trigger.active {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(10, 184, 242, 0.1);
}

.custom-dropdown-trigger.disabled {
    background-color: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.custom-dropdown-value {
    flex: 1;
    color: var(--color-text-primary);
    font-size: var(--fs-12);
    line-height: 1.5;
}

.custom-dropdown-placeholder {
    color: #a0aec0;
    font-size: var( --fs-12);
    line-height: 1.5;
}

.custom-dropdown-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: #666;
    flex-shrink: 0;
}

.custom-dropdown-trigger.active .custom-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--color-brand);
}

.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-dropdown-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--color-text-primary);
    font-size: var(--fs-14: 14px);
    line-height: 1.5;
    border-bottom: 1px solid #f1f5f9;
}

.custom-dropdown-option:last-child {
    border-bottom: none;
}

.custom-dropdown-option:hover {
    background-color: #f7fafc;
}

.custom-dropdown-option.selected {
    background-color: rgba(10, 184, 242, 0.1);
    color: var(--color-brand);
    font-weight: 500;
}

.custom-dropdown-option.disabled {
    color: #a0aec0;
    cursor: not-allowed;
    background-color: #f7fafc;
}

/* Custom scrollbar for dropdown options */
.custom-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.full-width-select option {
    font-weight: 400;
    font-family: var(--font-light);
    padding: 12px 16px;
    background: white;
    color: var(--color-text-primary);
    border: none;
}

.full-width-select option:hover {
    background: #f7fafc;
}

.full-width-select option:checked {
    background: var(--color-brand);
    color: white;
}

/* Enhanced dropdown styling for better UX */
select.full-width-input option {
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    background: white;
    color: var(--color-text-primary);
    border: none;
    transition: background-color 0.2s ease;
}

select.full-width-input option:hover {
    background: #f7fafc;
}

select.full-width-input option:checked {
    background: var(--color-brand);
    color: white;
}

select.full-width-input option:disabled {
    color: #a0aec0;
    background: #f7fafc;
}

.terms-radio {
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: 300;
    font-size: var(--fs-14);
}

.terms-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.terms-radio label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    /*display: flex;*/
    align-items: center;
    font-weight: 300;
    font-size: var(--fs-14);
}

.terms-radio label a {
    text-decoration: none;
    color: var(--color-primary);
}

.terms-radio label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid grey;
    border-radius: 4px;
    background-color: var(--color-surface);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.terms-radio input[type="radio"]:checked + label::before {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.terms-radio input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    z-index: 1;
}

.terms-radio input[type="checkbox"] {
    /* Hide the default checkbox */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.terms-radio input[type="checkbox"]:checked + label::before {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.terms-radio input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    left: 6px; /* Adjust for tick position */
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg); /* Combined translate and rotate */
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    z-index: 1;
}

.continue-btn {
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: var(--radius-8);
    font-size: var(--fs-16);
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* margin-top: 30px; */
    margin-bottom: 10px;
    flex: 1;
}

.continue-btn:hover {
    background-color: var(--color-primary-dark) !important;
}

.continue-btn:disabled,
.back-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Inline button spinner */
.btn-loading {
    position: relative;
}
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.form-actions {
    display: flex;
    gap: 15px; /* Space between buttons */
    margin-top: 30px;
}

.back-btn {
    /* background-color: #F8F8F8; */
    color: var(--color-grey-600);
    padding: 10px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-8);
    font-size: var(--fs-14);
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* margin-top: 10px; */
    margin-bottom: 10px;
    flex: 1;
}

.back-btn:hover {
    background-color: var(--color-grey-400);
}

/* BVN Info Box */
.bvn-info-box {
    background-color: var(--color-info-surface-alt);
    border-radius: var(--radius-10);
    border: 1px solid var(--color-info-border);
    padding: 5px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin-top: 20px; */
    margin-bottom: 15px;
    font-size: var(--fs-8);
    color: var(--color-text-muted);
    width: 70%;
    /* padding-bottom: 15px; */
}

.bvn-info-box img {
    height: 12px;
    width: 12px;
}

.otp-div-wrapper {
    width: 70%;
    margin: 20px 0;
}

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* margin: 20px 0; */
}

.otp-input {
    width: 20%;
    height: 50px;
    text-align: center;
    font-size: var(--fs-24);
    border: 2px solid #009fe326;
    border-radius: var(--radius-8);
    outline: none;
    transition: border-color 0.3s ease;
}

.otp-input:focus {
    border-color: var(--color-select-focus);
}

.otp-resend-timer {
    /* font-family: 'gotham-light'; */
    font-size: var(--fs-10);
    padding: 10px 0;
}

.otp-resend-timer span {
    color: var(--color-primary);
}

.camera-area {
    width: 15rem;
    height: 15rem;
    border-radius: 20rem;
    border: 2px dashed var(--color-camera-dash);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.camera-feed-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-placeholder-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--color-placeholder-text);
    border-radius: 8px;
    background-image:url(@{/images/camera-placeholder.svg});
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* match the circular container */
}

.camera-area .hidden {
    display: none;
}

.captured-image {
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.bvn-step-3 .hidden {
    display: none;
}
.subnav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border); /* grey border */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.subnav-btn img {
    width: 16px;
    height: 16px;
}
.subnav-btn.active {
    background-color: var(--color-primary); /* blue bg */
    border-color: var(--color-primary); /* blue border */
}
.subnav-btn.active img {
    filter: brightness(0) invert(1); /* make icon white */
}
.subnav-btn.alt {
    border-color: var(--color-primary); /* white bg with blue border */
}

.form-row {
    display: flex;
    gap: 20px;
    /* margin-bottom: 20px; */
    flex-wrap: wrap;
    padding-bottom: 8px;
}

.form-row .form-group,
.form-row .cust-info-input {
    flex: 1 1 calc(50% - 10px);
    box-sizing: border-box;
}

.cust-info-input {
    padding-bottom: 10px;
}

.cust-info-input label {
    padding-bottom: 8px;
    font-size: var(--fs-14);
}

.cust-info-input:disabled {
    background-color: var(--color-primary);
    cursor: not-allowed;
    color: black;
    border: 1px solid var(--color-primary-border-light)
}

/** Upload File Section **/

.upload-section {
    margin-top: 10px;
    margin-bottom: 10px;
}

.upload-section p:first-of-type  {
    font-size: var(--fs-14);
    padding: 10px 0;
}

.upload-area {
    background-color: white;
    border: 2px dotted var(--color-primary);
    border-radius: var(--radius-10);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-height: 100px;
}

.upload-area:hover {
    border-color: var(--color-primary-dark);
}

.upload-area.drag-over {
    border-color: var(--color-primary-dark);
    background-color: var(--color-muted-bg);
}

.upload-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
}

.upload-area p {
    font-size: 10px;
    color: var(--color-text-muted);
    margin: 0;
}

.upload-hint {
    font-size: 12px;
    margin-top: 10px;
    text-align: left;
}

.file-preview {
    background-color: var(--color-info-surface);
    width: 90%;
    padding: 10px;
    border-radius: var(--radius-8);
}

.file-preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.file-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    margin-right: 10px;
}

.file-details {
    flex: 1;
}

.file-details p{
    padding-bottom: 0;
}

.file-name {
    font-weight: 500;
    margin: 0;
}

.file-name p {
    padding-bottom: 0;
}

.remove-file {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1rem;
    cursor: pointer;
}
/** End of file upload **/

.file-name {
    font-weight: 500;
    margin: 0;
}

.remove-file {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1rem;
    cursor: pointer;
}


.step-2.hidden {
    display: none;
}

/* Success Page Styles */
.success-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 90%;
    z-index: 1000;
    align-items: center;
    display: none;
    margin: 0 auto;
}

.success-container.hidden {
    display: none;
}

.success-card {
    background-color: var(--color-surface);
    border-radius: 10px;
    width: 50%;
    max-width: 600px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-info-border);
    max-height: 60%;
    margin-top: 80px;
    margin: 0 auto;
    margin-top: 85px;
}

.success-gif {
    width: 100px;
    height: 100px;
}

.success-text-body {
   /* padding: 15px 0; */
}

.success-text-body h3 {
    font-size: var(--fs-16);
    font-weight: bold;
    color: var(--color-text-strong);
    /* margin-bottom: 10px; */
    margin: 0;
    padding-bottom: 10px;
    font-family: var(--font-medium);
}

.success-text-body p {
    font-size: var(--fs-12);
    color: var(--color-text-muted-2);
    line-height: 1.5;
    margin: 0;
}

.account-details-section {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border-weak);
    border-radius: var(--radius-8);
    padding: 10px;
    text-align: left;
}

.account-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border-dashed);
}

.account-detail-row:last-child {
    border-bottom: none;
}

.account-label {
    font-size: var(--fs-8);
    color: grey;
    margin-bottom: 5px;
}

.account-value {
    font-size: var(--fs-12);
    color: black;
    font-weight: 500;
    font-family: var(--font-medium);
}

.account-number-col {
    display: flex;
    flex-direction: column;
}

.copy-btn {
    background-color: var(--color-chip-bg);
    border: 1px solid var(--color-primary-border-light);
    border-radius: var(--radius-40);
    padding: 4px 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: var(--fs-12);
    color: var(--color-primary);
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--color-chip-hover-bg);
}

.copy-btn img {
    width: 16px;
    height: 16px;
}

.note-section {
    background-color: var(--color-note-bg);
    border: 1px solid var(--color-note-border);
    border-radius: var(--radius-8);
    padding: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.note-section p {
    font-size: var(--fs-12);
    color: var(--color-note-text);
    margin: 0;
}
.note-ref-section {
    background-color : var(--color-ref-surface);
    border-radius: 5px;
    padding: 8px;
}
.ref-download-area {
    display: flex;
    justify-content: space-between;
    background-color: var(--color-surface);
    padding: 10px;
    border-radius: var(--radius-8);
    border: 1px solid var(--color-border-accent);
    margin-bottom: 8px;
}
.ref-info {
    font-size: var(--fs-10);
    text-align: left;
    color: var(--color-text-muted-2);
}
.reference-pdf-info {
    display: flex;
    align-items: center;
    font-size: var(--fs-10);
}
.reference-download-info {
    background-color: var(--color-brand-accent);
    border: 1px solid var(--color-primary-border-light);
    padding: 8px;
    border-radius: 15px;
    font-size: var(--fs-10);
    align-items: center;
    justify-content: center;
    display: flex;
    color: white;
    gap: 5px;
    font-family: var(--font-light);
}
.reference-download-info a {
    text-decoration: none;
    color: white;
}
.reference-download-info img {
    width: 14px;
}
.ref-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: var(--color-primary);
}
.ref-btn:disabled:hover {
    transform: none;
    background-color: var(--color-primary);
    opacity: 0.6;
}
/* Success Page Styles End */

/* Flash Message Styles */
.flash-message {
    position: fixed;
    top: 70px;
    left: 80%;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: var(--radius-5);
    font-size: var(--fs-12);
    font-weight: 700;
    z-index: 2000;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.3s;
    max-width: 180px;
}
.flash-message.success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}
.flash-message.error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}
.flash-message.warning {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}
.flash-icon {
    width: 18px;
    height: 28px;
}
/* Flash Message Styles End */

/* User Information Modal Styles */
.user-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
    /* padding: 20px; */
    border-radius: 10px 10px 0 0;
}

.modal-header div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-description {
    padding: 0;
    width: 80%;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 44px;
    height: 44px;
}

.header-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text-modal);
    font-family: var(--font-medium);
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    font-size: 20px;
    /* font-weight: bold; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-description p {
    margin: 0;
    font-size: var(--fs-14);
    color: var(--color-text-subtle);
    line-height: 1.5;
    padding: 0;
    padding-top: 5px;
    /* font-family: 'gotham-light'; */
}

.user-info-section {
    /* padding: 20px 25px; */
    flex: 1;
    padding: 15px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-col:first-child {
    flex: 0 0 60%;
}

.info-col:last-child {
    flex: 0 0 40%;
}

.info-label {
    font-size: 12px;
    font-family: var(--font-medium);
    color: var(--color-text-modal-label);
    flex: 1;
}

.info-value {
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-light);
    text-align: right;
    flex: 1;
    padding-top: 5px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    /* padding: 0; */
}

.cancel-info-btn {
    color: red;
    padding: 10px 10px;
    border: 1px solid red;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-size: 12px;
    flex: 1;
    background-color: white;
}

.cancel-btn:hover {
    background-color: var(--color-danger-light);
    border-color: var(--color-danger-strong);
    color: var(--color-danger-strong);
}

.continue-info-btn {
    background-color: var(--color-brand);
    border-radius: 20px;
    margin-bottom: 0;
    font-size: 12px;
}
.continue-btn:hover {
    background-color: var(--color-brand-dark);
    transform: translateY(-1px);
}

.continue-btn:active {
    transform: translateY(0);
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    height: 75%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    cursor: default; /* Prevent cursor change on modal content */
    padding: 30px;
    box-sizing: border-box;
}
/* User Information Modal Styles End*/

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* Header Adjustments */
    .header-container {
        margin: 12px auto;
    }

    .header {
        width: 95%;
        padding: 10px 0;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hamburger-menu {
        margin-right: 10px;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        order: 3;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .search-bar {
        order: 2; /* Position search bar */
        width: auto;
        flex-grow: 0;
    }

    .search-bar input {
        width: 100px;
    }

    .internet-banking-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .logo {
        margin-left: 0; /* Reset margin */
        order: 1; /* Position logo */
    }

    /* Step Navigation Adjustments */
    .step-navigation-container {
        width: auto;
        min-width: 180px;
        max-width: 95%;
        margin-left: 10%;
        margin-top: 70px; /* Adjust for fixed header */
        border-radius: 10px;
        overflow-x: hidden;
        transition: width 0.3s ease;
    }

    .step-navigation {
        width: auto;
        padding: 5px 10px;
        justify-content: flex-start;
    }

    .step {
        font-size: 9px;
        padding: 5px;
    }

    .step[data-status="current"] {
        font-size: 10px;
    }

    .separator {
        margin: 0 5px;
        font-size: 12px;
    }

    /* Main Content Adjustments */
    .main-content {
        padding: 10px;
    }

    .main-card {
        width: 95%;
        padding: 15px;
    }

    .main-card h2 {
        font-size: var(--fs-18);
    }

    .content-sections {
        flex-direction: column;
        gap: 20px;
    }

    .left-section {
        flex: 1 1 100%; /* Take full width */
        padding-right: 0;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px 0;
        border-bottom: 1px solid var(--color-info-border);
        background-color: var(--color-info-surface);
        border-radius: var(--radius-8);
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Hide scrollbar on Firefox */
        -ms-overflow-style: none; /* Hide scrollbar on IE/Edge */
    }

    /* Hide scrollbar on WebKit browsers */
    .left-section::-webkit-scrollbar {
        display: none;
    }

    /* Mobile: Convert step info to horizontal layout */
    .step-info {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        height: auto;
        width: auto;
        min-width: 80px;
        border-bottom: none;
        border-right: 1px solid var(--color-info-border);
        background-color: var(--color-info-surface);
        text-align: center;
        flex-shrink: 0; /* Prevent shrinking */
        transition: all 0.3s ease; /* Smooth transitions */
    }

    .step-info div {
        display: none;
    }

    .step-info:last-child {
        border-right: none;
    }

    .step-info.active-step {
        border-left: none;
        border-bottom: 3px solid var(--color-primary);
        background-color: var(--color-info-surface);
        transform: scale(1.05); /* Slight scale effect for active step */
    }

    .step-info .step-icon {
        width: 25px;
        height: 35px;
        margin-right: 0;
        margin-bottom: 5px;
        transition: transform 0.3s ease; /* Smooth icon transitions */
    }

    .step-info:hover .step-icon {
        transform: scale(1.1); /* Hover effect for icons */
    }

    .step-info h3 {
        font-size: 9px;
        margin: 0 0 3px 0;
        line-height: 1.2;
    }

    .step-info p {
        font-size: 7px;
        line-height: 1.1;
        margin: 0;
        padding: 0;
    }

    .right-section {
        flex: 1 1 100%; /* Take full width */
        padding: 0 15px;
        order: 1; /* Move above the left section */
    }

    /* Form Elements Adjustments */
    .form-section h3 {
        font-size: 12px;
    }

    .form-section p {
        font-size: 9px;
    }

    .form-group label {
        font-size: 10px;
    }

    .full-width-input {
        font-size: 9px;
        padding: 8px 10px;
    }

    select.full-width-input {
        background-position: right 10px center;
        background-size: 8px;
        padding-right: 25px;
    }

    .terms-radio label {
        font-size: 11px;
        padding-left: 20px;
    }

    .terms-radio label::before {
        width: 16px;
        height: 16px;
    }

    .terms-radio input[type="radio"]:checked + label::after,
    .terms-radio input[type="checkbox"]:checked + label::after {
        left: 5px;
        width: 3px;
        height: 7px;
    }

    .continue-btn, .back-btn {
        font-size: 12px;
        padding: 10px 10px;
    }

    .form-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .bvn-info-box {
        width: 90%; /* Adjust width for smaller screens */
        padding: 5px;
        font-size: var(--fs-12);
    }

    .bvn-info-box img {
        height: 10px;
        width: 10px;
    }

    .otp-div-wrapper {
        margin: 10px 0;
        width: 100%;
    }

    .otp-input-container {
        gap: 5px;
        margin: 15px 0;
    }

    .otp-input {
        height: 40px;
        font-size: 18px;
        width: 40px;
    }

    .otp-resend-timer {
        font-size: var(--fs-12);
    }

    .camera-area {
        height: 150px;
        margin-bottom: 15px;
    }

    .camera-feed-placeholder {
        font-size: 14px;
        background-size: 40px;
    }

    .form-row {
        gap: 10px;
        padding-bottom: 10px;
    }

    .form-row .form-group,
    .form-row .cust-info-input {
        flex: 1 1 100%; /* Stack inputs vertically */
    }

    .upload-area {
        padding: 10px;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .upload-area p {
        font-size: 9px;
    }

    .upload-hint {
        font-size: 10px;
        margin-top: 8px;
    }

    /* Success Page Adjustments */
    .success-container {
        padding: 10px;
    }

    .success-card {
        width: 95%; /* Increase width for smaller screens */
        padding: 20px;
    }

    .success-gif {
        width: 150px;
        height: 150px;
    }

    .success-text-body h3 {
        font-size: 18px;
    }

    .success-text-body p {
        font-size: 14px;
    }

    .account-details-section {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 15px;
    }

    .account-detail-row {
        padding: 8px 0;
    }

    .account-label {
        font-size: 11px;
    }

    .account-value {
        font-size: 13px;
    }

    .copy-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .copy-btn img {
        width: 14px;
        height: 14px;
    }

    .note-section {
        padding: 10px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .note-section p {
        font-size: 11px;
    }
    .modal-content {
        width: 95%;
        height: 85%;
        margin: 20px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .header-text {
        font-size: 16px;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .modal-description {
        padding: 15px 20px;
    }

    .modal-description p {
        font-size: 13px;
    }

    .user-info-section {
        padding: 15px 20px;
    }

    .info-row {
        padding: 10px 0;
    }

    .info-label, .info-value {
        font-size: 11px;
    }

    .modal-actions {
        padding: 15px 20px;
        gap: 12px;
    }

    .cancel-btn, .continue-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .header {
        padding: 8px 0;
    }

    .hamburger-menu {
        margin-right: 5px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .search-bar input {
        width: 80px;
    }

    .internet-banking-btn {
        padding: 4px 8px;
        font-size: 9px;
    }

    .logo img {
        height: 20px;
    }

    .step-navigation-container {
        margin-top: 65px;
        min-width: 160px;
        max-width: 98%;
        margin-left: 2%;
        display: none;
    }

    .step {
        font-size: 8px;
        padding: 3px;
    }

    .step[data-status="current"] {
        font-size: 9px;
    }

    .separator {
        margin: 0 3px;
        font-size: 10px;
    }

    .step-info .step-icon {
        width: 20px;
        height: 30px;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .step-info h3 {
        font-size: 8px;
        margin: 0 0 2px 0;
        line-height: 1.1;
    }

    .step-info p {
        font-size: 6px;
        line-height: 1.0;
        margin: 0;
        padding: 0;
    }

    /* Ensure horizontal layout works on very small screens */
    .left-section {
        padding: 10px 0;
        margin-bottom: 15px;
        display: none;
    }

    .step-info {
        padding: 6px 8px;
        min-width: 70px;
    }

    .form-section h3 {
        font-size: var(--fs-18);
    }

    .form-section p {
        font-size: var(--fs-14);
    }

    .form-group label {
        font-size: 9px;
    }

    .full-width-input {
        font-size: var(--fs-12);
        padding: 12px;
    }

    select.full-width-input {
        background-position: right 8px center;
        background-size: 6px;
        padding-right: 20px;
    }

    .terms-radio label {
        font-size: 10px;
        padding-left: 18px;
    }

    .terms-radio label::before {
        width: 14px;
        height: 14px;
    }

    .terms-radio input[type="radio"]:checked + label::after,
    .terms-radio input[type="checkbox"]:checked + label::after {
        left: 4px;
        width: 2.5px;
        height: 6px;
    }

    .continue-btn, .back-btn {
        font-size: var(--fs-14);
        padding: 12px;
    }

    .continue-btn {
        margin-top: 20px;
    }

    .bvn-info-box {
        width: 90%;
        padding: 4px;
        font-size: var(--fs-12);
    }

    .bvn-info-box img {
        height: 8px;
        width: 8px;
    }

    .otp-div-wrapper {
        width: 100%;
    }

    .otp-input {
        height: 45px;
        font-size: var(--fs-24);
        width: 40px;
    }

    .otp-resend-timer {
        font-size: var(--fs-12);
    }

    .camera-area {
        height: 200px;
        width: 200px;
    }

    .camera-feed-placeholder {
        font-size: 12px;
        background-size: 30px;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
    }

    .upload-area p {
        font-size: 8px;
    }

    .upload-hint {
        font-size: 9px;
    }

    .success-gif {
        width: 120px;
        height: 120px;
    }

    .success-text-body h3 {
        font-size: 16px;
    }

    .success-text-body p {
        font-size: 12px;
    }

    .account-label {
        font-size: 10px;
    }

    .account-value {
        font-size: 12px;
    }

    .copy-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    .copy-btn img {
        width: 12px;
        height: 12px;
    }

    .note-section p {
        font-size: 10px;
    }
    .substep-nav {
        position: absolute;
        right: 50px;
        top: 120px;
    }
    .flash-message {
        left: 60%
    }
    .modal-content {
        width: 98%;
        max-height: 520px;
        margin: 10px;
        padding: 12px;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .header-text {
        font-size: var(--fs-18);
    }

    .header-icon {
        width: 32px;
        height: 32px;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        font-size: var(--fs-18);
    }

    .modal-description {
        padding: 12px 15px;
    }

    .modal-description p {
        font-size: var(--fs-14);
    }

    .user-info-section {
        padding: 22px 15px;
    }

    .info-row {
        padding: 14px 0;
    }

    .info-label, .info-value {
        font-size: var(--fs-14);
    }

    .modal-actions {
        padding: 12px 15px;
        gap: 10px;
    }

    .cancel-btn, .continue-btn {
        padding: 12px;
        font-size: var(--fs-14);
    }
    .main-content {
        margin-top: 20%;
    }
}