/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f8fc;
}

/* Form Container */
.form-container {
    display: flex;
     height: 100vh; /* Full viewport height */
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background: linear-gradient(to bottom, #ffffff 19%, #f1f5f9 8%, #143554 27%, #0c1b2a 100%);
    color: #ffffff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #204a70;
    height: 100vh; /* Sidebar always full height */
    position: sticky; /* Keep sidebar visible if needed */
    top: 0;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    color: #a3a3a3;
    font-size: 0.875rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* flex: 1; */
    min-height: 450px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.step-indicator {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.step-icon, .step-icon-completed {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.step.inactive .step-icon {
    color: #525252;
}

.step.active .step-icon {
    color: #ffffff;
    fill: currentColor;
}

.step.completed .step-icon {
    display: none;
}

.step.completed .step-icon-completed {
    display: block;
    color: #22c55e;
}

.step-content h3 {
    font-weight: 500;
    /* margin-bottom: 0.25rem; */
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 15px;
}

.step-content p {
    font-size: 0.875rem;
    color: #a3a3a3;
    text-transform: capitalize;
}

.step.inactive .step-content h3 {
    color: #a3a3a3;
}

.step.active .step-content h3 {
    color: #ffffff;
}

.step.completed .step-content h3 {
    color: #ffffff;
}

.sidebar-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.sidebar-footer p {
    font-size: 16px;
    color: #a3a3a3;
    line-height: 30px;
}

.sidebar-footer a {
    color: #ffffff;
    text-decoration: none;
}

.sidebar-footer a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    flex: 1;
    /* display: flex;
    align-items: center;
    justify-content: center; */
    padding: 2rem;
    background-color: #ffffff;
    overflow-y: auto;
}

.form-step {
    display: none;
    width: 100%;
    max-width: 38rem;
    animation: fadeIn 0.3s ease-in-out;
    margin: 0 auto;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.form-header p {
    color: #6b7280;
    font-size: 1rem;
    text-transform: capitalize;
}

/* Social Buttons */
.social-buttons {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 3rem;
    padding: 0 5px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Divider */
.divider {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
    z-index: 1;
}

.divider span {
    position: relative; /* Make sure it can layer above the line */
    background-color: #ffffff;
    padding: 0 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Form Styles */
.step-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label {
    font-weight: 500;
    font-size: 1rem;
    color: #374151;
}

label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #204a70;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.radio-option.detailed {
    align-items: flex-start;
}

.radio-option input[type="radio"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #204a70;
}

.radio-option .option-title {
    font-weight: 500;
    color: #111827;
}

.radio-option .option-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
.radio-option.selected {
    background-color: #fff;
    border-color: #204a70;
}
/* Checkbox */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-option {
     display: flex;
  align-items: flex-start; /* ensures checkbox stays top-aligned with multi-line text */
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 10px;
}

.checkbox-option input[type="checkbox"] {
    flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem; /* vertically aligns checkbox with first line of text */
  accent-color: #204a70;    
}

.checkbox-option span {
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-option a {
    color: #204a70;
    text-decoration: none;
}

.checkbox-option a:hover {
    text-decoration: underline;
}

/* Security Note */
.security-note {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

.security-note h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.security-note p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 3rem;
    padding: 0 1.5rem;
    background-color: #204a70;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #204a70ed;
    transform: translateY(-1px);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding: 0 1.5rem;
    background-color: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn-secondary {
    flex: 1;
}

.form-actions .btn-primary {
    flex: 1;
}

.btn-icon {
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
        height: auto; 
    }
    
    .sidebar {
        width: 100%;
        padding: 1.5rem;
        background: linear-gradient(to bottom, #ffffff 28%, #f1f5f9 9%, #143554 32%, #0c1b2a 100%);
        border-bottom: 2px solid #204a70 !important;
        height: auto !important;
        position: relative;
    }
    .sidebar.sidebar-login{
        background: linear-gradient(to bottom, #ffffff 54%, #f1f5f9 9%, #143554 65%, #0c1b2a 100%) !important;
    }
    .container.dashboard .sidebar
    {
        background: linear-gradient(to bottom, #ffffff 52%, #f1f5f9 9%, #143554 58%, #0c1b2a 100%) !important;
    }
    .dashboard .menu a.active {
        background: #fff !important;
        color: #204a70 !important;
    }
    .dashboard .menu a {
        color: #fff !important;
    }
    .sidebar-header{
        margin-bottom: 0px !important;
    }
    .steps-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow-x: auto;
        padding: 0.5rem 0;
        scrollbar-width: none; /* Firefox */
        min-height: auto !important;
    }
    .social-buttons{
        grid-template-columns: 1fr 1fr !important;
    }
     .logo {
        margin-bottom: 0px !important; 
        column-gap: 10px !important; 
        justify-content: center !important; 
        width: 100% !important;
    }
    .social-btn {
        height: 40px !important;
        font-size: 12px !important;
    }
    .logo img {
        width: 80% !important;
    }
    .verify_select{
        flex-direction: column;
    }
    .steps-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    .step {
        flex-direction: row;
        align-items: center;
        /* text-align: center; */
        min-width: 140px; /* makes horizontal scroll work */
    }
    
    .step-content {
        margin-top: 0.5rem;
    }
    
    .step-content h3 {
        font-size: 0.875rem;
    }
    
    .step-content p {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 1.5rem;
        /* flex: none; */
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-secondary,
    .form-actions .btn-primary {
        flex: none;
    }
   .sidebar-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        border: none;
        margin-top: 1rem;
        padding-top: 0 !important;
    }

    .sidebar-footer p {
        font-size: 12px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .social-btn {
        height: 2.75rem;
        font-size: 0.8125rem;
    }
}

/* Animation for step transitions */
.step-transition-enter {
    opacity: 0;
    transform: translateX(20px);
}

.step-transition-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.step-transition-exit {
    opacity: 1;
    transform: translateX(0);
}

.step-transition-exit-active {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}
/* logo */
.logo {
    display: flex;
    width: 95%;
    column-gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.logo img {
    width: 95%;
    height: auto;
    max-width: 150px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.talktous .modal-content
 {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
    animation: fadeInDown 0.3s ease-out;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.dashboard .talktous .invest-btn {
    width: 100%;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.modal-content h2 {
  margin-top: 0;
  color: #333;
}

.modal-content p {
  margin: 10px 0;
  color: #555;
}

.modal-content a {
  color: #204a70;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}
.verify_select{
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.tab-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 1rem;
}
.tab-btn {
  padding: 10px 20px;
  border: 1px solid #ccc;
  background: #f7f7f7;
    border-radius: 4px;
    width: 50%;
  cursor: pointer;
}

.investorbtn {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    justify-content: flex-end;
}
.tab-btn.active {
  background: #204a70;
  color: #fff;
  border-color: #204a70;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.upload-box {
  border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    margin-top: 20px;
    align-items: flex-start;
}
.upload-box:hover {
    border-color: #204a70;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-box p {
    margin: 0;
    color: #666;
}
/* Step 5: Wire Transfer */
.transfer-step h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.transfer-step .description {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.wire-transfer-details {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
h5.wire_head {
    color: #204a70;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}
.detail-item {
    font-size: 0.95rem;
    color: #374151;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.detail-item strong {
    color: #111827;
    font-weight: 600;
    min-width: 180px;
    display: inline-block;
}

.detail-item span {
    color: #374151;
    font-weight: 400;
}

.ref-number {
    font-family: monospace;
    color: #204a70;
    font-weight: 600;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}
button[disabled],
.btn-primary:disabled {
  background-color: #d1d5db !important;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}   
.error-message {
    font-size: 13px;
    margin-top: 4px;
    color: red;
}


/* Dashboard Css */
.container.dashboard{
     display: flex;
    height: 100vh;
}
.dashboard .sidebar {
    background-color: #0c0c0c;
    color: white;
    width: 320px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dashboard .main-content {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    overflow-y: auto;
    display: block;
}

.dashboard .header h1 {
    font-size: 28px;
}

.dashboard .header p {
    margin: 10px 0;
    color: #555;
}

.dashboard .invest-btn {
    float: right;
    background-color: #204a70;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    /* width: 10%; */
    font-size: 16px;
    font-weight: 500;
}

.dashboard .portfolio {
    margin: 40px 0 20px;
}

.dashboard .portfolio-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.dashboard .investment-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fafafa;
}

.dashboard .investment-table th,
.dashboard .investment-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.dashboard .status.received {
    background-color: #e0f8e9;
    color: green;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 14px;
}
.dashboard .status.pending {
    background-color: #ffc109;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 14px;
}
.dashboard .menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 0;
    border-left: 4px solid transparent;
    padding-left: 10px;
}

.dashboard .menu a.active {
    /* font-weight: bold; */
    border-left: 4px solid #fff;
}

.dashboard .menu a:hover {
    background-color: #fff !important;
    color: #204a70 !important;
}
.dashboard .portfolio h2 {
    font-size: 16px;
    color: #374151;
    font-weight: 400;
}
.input-error {
    color: red;
    font-size: 0.85em;
    margin-top: 4px;
}
input.error {
    border-color: red;
}
.red{
    color: red;
    font-weight: bold;
}
/* 🔲 Form Container */
.investment_form_inner_cont {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.investment-form-container {
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
/* 🧾 Heading */
.investment_form_inner_cont h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222;
}

/* 💬 Info Paragraph */
.investment_form_inner_cont p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

/* 📦 Form Elements */
.investment_form_inner_cont form label {
    display: block;
    font-weight: 500;
    margin: 10px 0 5px;
    font-size: 14px;
    color: #333;
}

.investment_form_inner_cont input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* 💡 Preset Buttons */
.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.preset-buttons button {
    flex: 1 1 30%;
    padding: 10px 15px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-buttons button:hover {
    background-color: #e9e9e9;
    border-color: #999;
}

/* 💳 Payment Options */
.payment-methods {
    margin-top: 10px;
    font-size: 14px;
}

.payment-methods label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
    color: #444;
}

/* Responsive CSS for Investor Dashboard */

@media (max-width: 1024px) {
    .dashboard .main-content {
        padding: 20px;
    }

    .dashboard .invest-btn {
        width: auto;
        float: none;
        display: block;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .container.dashboard {
        flex-direction: column;
    }

    .dashboard .sidebar {
        width: 100%;
        padding: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .dashboard .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .dashboard .logo img {
        max-width: 150px;
        height: auto;
        margin: 5px;
    }

    .dashboard .menu {
        display: flex;
        width: 100%;
        color: #000 !important;
        justify-content: space-between;
        flex-direction: column;
    }

    .dashboard .menu a {
        padding: 6px;
        font-size: 14px;
        color: #000;
        font-weight: 500;
    }

    /* .dashboard .menu a.active {
        border-left: none !important;
        background: #204a70 !important;
        color: #fff !important;
    } */

    .dashboard .main-content {
        padding: 20px;
    }

    .dashboard .invest-btn {
        margin: 20px 0;
        font-size: 16px;
    }

    .dashboard .portfolio-value {
        font-size: 24px;
    }

    .dashboard .investment-table th,
    .dashboard .investment-table td {
        font-size: 14px;
        padding: 8px;
    }

    .detail-item {
        flex-direction: column;
        margin-bottom: 12px;
        gap: 0px;
    }
    .detail-item span {
    pointer-events: none;
    text-decoration: none;
    color: inherit;
    }
}

@media (max-width: 480px) {
    .dashboard .investment-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .dashboard .header h1 {
        font-size: 22px;
    }

    .dashboard .header p {
        font-size: 14px;
    }

    .dashboard .portfolio h2 {
        font-size: 14px;
    }

    .dashboard .portfolio-value {
        font-size: 20px;
    }

    .dashboard .invest-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Toggle container */
.toggle-container {
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}

/* Button wrapper */
.toggle-buttons {
  display: flex;
  position: relative;
  background: #DFE3EB;
  border-radius: 8px;
  overflow: hidden;
  height: 42px;
}

/* Each button */
.toggle-btn {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #4B5563; /* gray-700 */
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease;
}

.toggle-btn.active {
  color: #111827; /* darker when active */
}

/* Slider highlight */
.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #DFE3EB;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  z-index: 1;
}

.error{
    color: red;
}
.success{
    color: green;
}

/* INVESTOR LOADER */
.investorloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.investorloader .spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0073e6;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
.loader-overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* INVESTOR PROFILE */

.investor-profile-cont {
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 40%;
}

.investor-profile-cont .step-form {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* Layout */
.investor-profile-cont .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
}

.investor-profile-cont .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.investor-profile-cont .form-group label {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0;
  font-weight: 500;
}

.investor-profile-cont .form-group input,
.investor-profile-cont .form-group select {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  transition: border 0.2s;
}

.investor-profile-cont .form-group input:focus,
.investor-profile-cont .form-group select:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Checkboxes */
.investor-profile-cont .checkbox-group {
  margin: 2rem 0;
}

.investor-profile-cont .checkbox-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.investor-profile-cont .checkbox-option input {
  margin-top: 0.25rem;
}

.investor-profile-cont .checkbox-option span {
  font-size: 0.875rem;
  color: #374151;
}

.investor-profile-cont .checkbox-option a {
  color: #4f46e5;
  text-decoration: underline;
}
.custom-tooltip {
    display: none;
    position: absolute;
    top: 100%; /* below the link */
    left: 0;
    z-index: 9999;
    /* width: 280px; */
    padding: 10px;
    background: #333;
    color: #fff;
    font-size: 13px;
    border-radius: 6px;
    line-height: 1.4;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
}

/* show on hover (desktop only) */
#tax-info-link:hover + .custom-tooltip {
    display: block;
}
.tax-head{
    position: relative;
}
/* optional arrow */
.custom-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}
/* 📱 Responsive Styles */
@media (max-width: 1024px) {
  .investor-profile-cont {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .investor-profile-cont {
    width: 90%;
    padding: 15px;
  }

  .investor-profile-cont .step-form {
    padding: 1.5rem;
  }

  /* Stack form rows vertically */
  .investor-profile-cont .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .investor-profile-cont .form-group input,
  .investor-profile-cont .form-group select {
    font-size: 0.95rem;
    padding: 0.65rem;
  }

  .talktous .modal-content{
    margin: 40% auto;
  }
  .investorbtn {
    justify-content: flex-start;
  }
  .dashboard .portfolio{
    margin: 0px;
  }
  .dashboard .talktous .invest-btn {
        margin: 0;
    }
}

@media (max-width: 480px) {
  .investor-profile-cont {
    width: 100%;
    padding: 10px;
  }

  .investor-profile-cont .step-form {
    padding: 1rem;
  }

  .investor-profile-cont h2 {
    font-size: 1.25rem;
  }

  .investor-profile-cont p {
    font-size: 0.9rem;
  }

  .investor-profile-cont .form-group label {
    font-size: 0.8rem;
  }

  .investor-profile-cont .form-group input,
  .investor-profile-cont .form-group select {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem;
  }
}

.icon-tooltip {
    position: relative;
    display: inline-block;
}

.icon-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
}