/* Get Started Page Styles */
:root {
    --primary-color: #4361ee;
    --primary-light: rgba(67, 97, 238, 0.1);
    --secondary-color: #f72585;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #4cc9f0;
    --gradient-blue: linear-gradient(135deg, var(--primary-color), #3a0ca3);
    --gradient-green: linear-gradient(90deg, #4cc9f0 0%, #4361ee 100%);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.get-started-container {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    min-height: 100vh;
    position: relative;
}

.get-started-container:before {
    content: '';
    position: absolute;
    top: -50%;
    /*left: -20%;*/
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, rgba(248, 249, 250, 0) 70%);
    z-index: 0;
}

/* Progress Indicator - Responsive */
.progress-section {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    /*overflow-x: auto;*/
}

.progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-width: 300px;
    padding: 0 10px;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 60px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    border: 3px solid #fff;
    transition: all 0.3s ease;
    font-size: 14px;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    z-index: 1;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.section-header h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
}

.section-header h3:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--gradient-green);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-color);
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Form Cards */
.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 34px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-card:hover {
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
}

/* Investment Blocks */
.financial-block-container {
    padding: 20px 0;
}

.financial-block {
    position: relative;
    background: white;
    color: #333;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 140px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.financial-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.financial-block i {
    font-size: 36px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #6f42c1, #8e2de2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.financial-block h6 {
    font-weight: 600;
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.2;
}

.financial-block .subtext {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.2;
}

.locked-block {
    position: relative;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 10;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    padding: 5px;
}

.locked-overlay i {
    font-size: 20px;
    margin-bottom: 6px;
    color: #6f42c1;
}

.locked-overlay .upgrade-text {
    font-size: 10px;
    color: #6f42c1;
    font-weight: bold;
    text-align: center;
}

.add-block-btn {
    height: 140px;
    border-radius: 12px;
    border: 2px dashed #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.add-block-btn:hover {
    background: #f0f0f0;
    border-color: #6f42c1;
}

.add-block-btn i {
    font-size: 28px;
    color: #6f42c1;
}

.add-block-btn h6 {
    color: #6f42c1;
    margin-top: 6px;
}

/* Previous Button */
.btn-prev {
    background: #6c757d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-prev:hover {
    background: #5a6268;
    color: #fff;
}

/* Next Button */
.btn-next {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-next:hover {
    background: #3a56e8;
    color: #fff;
}

/* Success Button - PROPER ALIGNMENT */
.btnn-successs {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    margin-bottom: 10px;
}

.btnn-successs:hover {
    background: #218838;
    color: #fff;
}

/* Danger Button - PROPER ALIGNMENT */
.btnn-dangerr {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    margin-bottom: 10px;
}

.btnn-dangerr:hover {
    background: #c82333;
    color: #fff;
}

.btn-danger {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-danger:hover {
    background-color: #e5177e;
    border-color: #e5177e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 37, 133, 0.3);
}

.btn-outline-light:hover {
    color: var(--dark-color);
}

/* Button Container Alignment */
.col-md-2 .btnn-successs,
.col-md-2 .btnn-dangerr {
    width: 100%;
    margin-bottom: 10px;
}

/* Form Styles - Responsive */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
    font-size: 14px;
}

.input-group-text {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: var(--gray-color);
    min-height: 44px;
    font-size: 14px;
}

.form-control,
.form-select {
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.form-select {
    font-size: 14px;
}

/* Table Styles */
.table-section {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 20px;
    overflow-x: auto;
}

.table-section h5, .table-section h6 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1rem;
}

.table-section h6 {
    font-size: 0.9rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    font-size: 13px;
    margin-bottom: 0;
}

.table th {
    white-space: nowrap;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 600;
    background-color: #f8f9fa;
}

.table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

/* Specific block type colors */
.cash-block i {
    background: linear-gradient(135deg, #28a745, #5cb85c);
    -webkit-background-clip: text;
}

.savings-block i {
    background: linear-gradient(135deg, #17a2b8, #5bc0de);
    -webkit-background-clip: text;
}

.fd-block i {
    background: linear-gradient(135deg, #ffc107, #f0ad4e);
    -webkit-background-clip: text;
}

.bonds-block i {
    background: linear-gradient(135deg, #20c997, #00b74a);
    -webkit-background-clip: text;
}

.stocks-block i {
    background: linear-gradient(135deg, #fd7e14, #ff851b);
    -webkit-background-clip: text;
}

.crypto-block i {
    background: linear-gradient(135deg, #6f42c1, #9c42f5);
    -webkit-background-clip: text;
}

.rd-block i {
    background: linear-gradient(135deg, #6610f2, #8e2de2);
    -webkit-background-clip: text;
}

.credit-block i {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    -webkit-background-clip: text;
}

@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        --bs-modal-width: 950px;
    }
}

/* Trust Badge */
.trust-badge-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px;
    position: relative;
    z-index: 3;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}

.trust-badge {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.trust-title-text {
    font-size: 13px;
    font-weight: 600;
    color: silver;
    text-align: center;
    line-height: 1.2;
    min-width: 70px;
    padding: 0 10px;
}

.trust-leaf-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-leaf {
    width: 40px;
    height: 40px;
    background-image: url('../badge.webp');
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-leaf-left {
    transform: scaleX(-1);
}

.trust-subtitle {
    font-size: 13px;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
}

.trust-subtitle::before,
.trust-subtitle::after {
    content: "";
    height: 1px;
    width: 40px;
    display: inline-block;
    background: var(--primary-light);
}

.trust-subtitle::before {
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
}

.trust-subtitle::after {
    background: linear-gradient(to left, var(--primary-light), var(--primary-color));
}

/* Breadcrumb Area */
.breadcumb-area {
    background: url('../FeatureHero.jpg') no-repeat center center/cover;
    padding: 180px 0;
    position: relative;
    overflow: hidden;
}

.breadcumb-area:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.breadcumb-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.breadcumb-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.breadcumb-inner ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    flex-wrap: wrap;
}

.breadcumb-inner ul li {
    margin: 0 10px;
    color: #fff;
}

.breadcumb-inner ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcumb-inner ul li a:hover {
    color: var(--primary-light);
}

.breadcumb-inner ul li i {
    margin-right: 10px;
}

.brpt h2 {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Form Row Spacing */
.row {
    margin-left: -8px;
    margin-right: -8px;
}

.row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* Section Navigation Buttons - PROPER ALIGNMENT */
.section-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 25px;
    gap: 10px;
    flex-wrap: wrap;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(90deg, #4cc9f0 0%, #4361ee 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
}


/* Responsive Breakpoints */
@media (max-width: 767.98px) {
    .get-started-container {
        padding: 30px 0;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-indicator::before {
        display: none;
    }
    
    .progress-step {
        flex: none;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .section-header h3 {
        font-size: 1.3rem;
    }
    
    .section-header p {
        font-size: 13px;
    }
    
    .form-card {
        padding: 15px;
    }
    
    /* Button adjustments for mobile */
    .btnn-successs, .btnn-dangerr, .btn-prev, .btn-next {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .table th, .table td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .breadcumb-area {
        padding: 120px 0 60px;
    }
    
    .brpt h2 {
        font-size: 2rem;
    }

    .financial-block {
        height: 140px;
        padding: 12px 8px;
    }
    
    .financial-block i {
        font-size: 28px;
    }
    
    .financial-block h6 {
        font-size: 14px;
    }
    
    .financial-block .subtext {
        font-size: 10px;
    }
    
    /* Table responsiveness */
    .table-responsive {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    /* Investment Form Modal Mobile Layout */
    #formModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #formModal .modal-content {
        border-radius: 12px;
    }
    
    /* Modal Header Mobile Layout */
    #formModal .modal-header {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 10px;
    }
    
    /* Investment Title - Top */
    #formModal .modal-header .modal-title {
        order: 1;
        text-align: center;
        font-size: 1.2rem;
        margin: 0;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
    
    /* Action Buttons Row - Middle */
    #formModal .modal-header > div {
        order: 2;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin: 0;
    }
    
    /* Action Buttons (Inflation, Return, Balancing) */
    #formModal .modal-header .inflationButton,
    #formModal .modal-header .inflationReturnButton,
    #formModal .modal-header .balancingButton {
        flex: 1;
        min-width: 100px;
        max-width: 120px;
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
        margin: 0;
    }
    
    /* Close Button - Top Right */
    #formModal .modal-header .btn-close {
        order: 0;
        position: absolute;
        top: 15px;
        right: 15px;
        margin: 0;
        padding: 5px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
    
    /* Modal Body */
    #formModal .modal-body {
        padding: 15px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    /* Modal Footer - Bottom Buttons */
    #formModal .modal-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Left Side Buttons Row */
    #formModal .modal-footer > div:first-child {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }
    
    /* Right Side Buttons Row */
    #formModal .modal-footer > div:last-child {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }
    
    /* Individual Button Styles */
    #formModal .modal-footer .btn-dark,
    #formModal .modal-footer .btnn-dangerr,
    #formModal .modal-footer .btn-outline-secondary,
    #formModal .modal-footer .btnn-successs {
        flex: 1;
        min-width: 0;
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    /* Button Icons */
    #formModal .modal-footer .btn i {
        font-size: 14px;
    }
    
    /* Ensure all buttons have same height */
    #formModal .modal-footer .btn {
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .progress-indicator {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-indicator::before {
        display: none;
    }
    
    .progress-step {
        flex: none;
    }
    
    .step-number {
        margin-bottom: 20;
        flex-shrink: 0;
    }
    
    .step-label {
        text-align: left;
    }
    
    .section-navigation {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .form-control, .form-select {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .breadcumb-area {
        padding: 100px 0 40px;
    }
    
    .brpt h2 {
        font-size: 1.8rem;
    }
    
    /* Button adjustments for very small screens */
    .btnn-successs, .btnn-dangerr, .btn-prev, .btn-next {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .btnn-successs i, .btnn-dangerr i {
        margin-right: 4px;
        font-size: 12px;
    }
    
    /* Ensure buttons stack properly */
    .col-md-2 .btnn-successs,
    .col-md-2 .btnn-dangerr {
        margin-bottom: 8px;
    }
}

@media (max-width: 400px) {
    .form-card {
        padding: 10px;
    }
    
    .table th, .table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    /* Ensure buttons are still visible */
    .btnn-successs, .btnn-dangerr {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ensure form elements are touch-friendly on mobile */
@media (hover: none) and (pointer: coarse) {
    .btnn-successs, .btnn-dangerr, .btn-prev, .btn-next {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    .form-control, .form-select {
        font-size: 16px;
        min-height: 44px;
    }
    
    .table th, .table td {
        padding: 12px 8px;
    }
}

/* Additional responsive improvements */
@media (min-width: 768px) {
    .btnn-successs, .btnn-dangerr {
        width: auto;
        min-width: 120px;
    }
    
    .col-md-2 .btnn-successs,
    .col-md-2 .btnn-dangerr {
        width: 100%;
    }
}

/* Grid gap for better spacing */
.g-4 {
    gap: 1rem !important;
}

/* Form group spacing */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}