body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
}

.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.register-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.heading {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: #2d3748;
    border: none;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}



.register-card::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 1;
}



.register-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 24px;
    background: transparent !important; /* Ensure no background */
}

.register-visual lottie-player {
    background: transparent !important; /* Remove any background */
    box-shadow: none !important;
    border: none !important;
}

.register-body {
    padding: 0;
    z-index: 2;
    position: relative;
    width: 100%;
}

.heading2 .mb-1,
.register-header,
.text-center.mb-4 h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
    letter-spacing: -0.02em;
}

.text-muted {
    color: #718096 !important;
    z-index: 2;
    position: relative;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.user-type-toggle {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    justify-content: center;
    padding: 4px;
}

.user-type-btn {
    flex: 1;
    padding: 16px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #4a5568;
    background: transparent;
    border: none;
    font-size: 1rem;
    border-radius: 12px;
    position: relative;
}

.user-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.user-type-btn:first-child {
    border-right: 1px solid #e0e0e0;
}

.progress {
    height: 8px;
    margin-bottom: 2rem;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s ease;
    position: relative;
}

.form-label {
    display: block;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.form-control, .form-select {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    outline: 0;
    background-color: #fff;
    padding: 14px 16px;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
    box-sizing: border-box;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder, .form-select::placeholder {
    color: #888;
    font-size: 1em;
    font-weight: 500;
}

.input-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 1rem;
}

.input-group .form-select {
    flex: 0 0 90px;
    padding: 14px 8px;
    margin-bottom: 0;
    font-size: 0.9rem;
    min-width: 90px;
}

.input-group .form-control {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.input-group .btn {
    flex: 0 0 auto;
    margin-bottom: 0;
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.btn-register, form button, #button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
    text-align: center;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 2rem 0 1.5rem 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-register::before, form button::before, #button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: left 0.4s ease;
}

.btn-register:hover, form button:hover, #button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-register:hover::before, form button:hover::before, #button:hover::before {
    left: calc(100% - 20px);
}

@keyframes registerHeartbeat {
    0%, 100% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-3px) scale(1.1); }
}

.account-links {
    text-align: center;
    font-size: 1rem;
    color: #718096;
    margin-top: 1.5rem;
}

.account-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.account-links a:hover {
    text-decoration: none;
    color: #5a67d8;
}

.errorlist {
    color: #d72660;
    font-size: 0.98em;
    margin-bottom: 10px;
    padding-left: 1.2rem;
}

.helptext, .form-text, .text-muted {
    color: #888 !important;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.cont{
    display: flex;
    flex-direction: row;
}

/* Investment Range Slider Styling */
.range-container {
    position: relative;
    margin: 10px 0;
}

.investment-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #28a745 0%, #28a745 var(--value, 26%), rgba(200, 200, 200, 0.3) var(--value, 26%), rgba(200, 200, 200, 0.3) 100%);
    outline: none;
    transition: background 0.3s ease;
}

.investment-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1e7e34;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.investment-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1e7e34;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.investment-range:hover::-webkit-slider-thumb {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.investment-range:hover::-moz-range-thumb {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Responsive Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.mb-3 {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.justify-content-center {
    justify-content: center;
}

.g-3 > * {
    padding: 0.5rem;
}

/* Password Tooltip Styling */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.password-tooltip {
    position: absolute;
    top: -5px;
    right: -30px;
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.password-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #2d3748;
}

.tooltip-container:hover .password-tooltip {
    opacity: 1;
    visibility: visible;
}

.password-requirements {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.password-requirements .requirement {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #4a5568;
}

.password-requirements .requirement:last-child {
    margin-bottom: 0;
}

.password-requirements .requirement i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.password-requirements .requirement.valid {
    color: #38a169;
}

.password-requirements .requirement.valid i {
    color: #38a169 !important;
}

@media (max-width: 768px) {
    .register-container {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .register-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        margin: 0;
        min-height: auto;
    }
    
    .col-md-6, .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .heading2 .mb-1 {
        font-size: 1.8rem;
    }
    
    .register-visual {
        padding-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .register-visual lottie-player {
        width: 100px !important;
        height: 100px !important;
    }
    
    .input-group {
        flex-direction: row;
        gap: 8px;
    }
    
    .input-group .form-select {
        flex: 0 0 80px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .user-type-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .form-control, .form-select {
        padding: 12px 14px;
        margin-bottom: 1rem;
    }
    
    .password-tooltip {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        white-space: normal;
        max-width: 280px;
        text-align: center;
    }
    
    .password-tooltip::after {
        display: none;
    }
}


@media (max-width: 991px) {
    .heading {
        flex-direction: column;
    }
    .register-visual {
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 0.25rem;
    }
    
    .register-card {
        padding: 1rem 0.75rem;
        margin: 0;
        border-radius: 12px;
    }
    
    .heading2 .mb-1 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .text-muted {
        font-size: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .register-visual {
        margin-bottom: 0.5rem;
    }
    
    .register-visual lottie-player {
        width: 80px !important;
        height: 80px !important;
    }
    
    .input-group .form-select {
        flex: 0 0 70px;
        padding: 12px 6px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .user-type-toggle {
        margin-bottom: 1.2rem;
    }
    
    .form-control, .form-select {
        padding: 12px;
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }
    
    .btn-register {
        padding: 14px;
        font-size: 1rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .step-indicator {
        margin-bottom: 20px;
    }
    
    .step {
        width: 35px;
        height: 35px;
        margin: 0 5px;
        font-size: 0.9rem;
    }
    
    .step::after {
        width: 15px;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .otp-input-group {
        gap: 8px;
    }
}
@media (max-width: 380px) {
    .heading {
        flex-direction: column;
    }
    
    .user-type-toggle {
        flex-direction: column;
        gap: 6px;
        padding: 3px;
    }
    
    .user-type-btn {
        margin: 0;
        padding: 10px 12px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .input-group .form-select {
        flex: none;
        width: 100%;
        margin-bottom: 0;
    }
    
    .input-group .form-control {
        margin-bottom: 0;
    }
    
    .input-group .btn {
        border-radius: 12px;
        border: 2px solid #e2e8f0;
    }
    
    .register-card {
        padding: 0.75rem 0.5rem;
    }
    
    .step {
        width: 30px;
        height: 30px;
        margin: 0 3px;
        font-size: 0.8rem;
    }
    
    .step::after {
        width: 10px;
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .otp-input-group {
        gap: 6px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .password-tooltip {
        position: fixed !important;
        top: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        max-width: calc(100vw - 1rem);
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}
/* Professional Crop Modal */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.crop-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.crop-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.crop-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.crop-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.crop-close:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.crop-modal-body {
    padding: 24px;
    max-height: 400px;
    overflow: hidden;
}

.crop-container {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-container img {
    max-width: 100%;
    max-height: 100%;
}

.crop-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
}

.btn-crop-cancel, .btn-crop-apply {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 14px;
}

.btn-crop-cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-crop-cancel:hover {
    background: #cbd5e0;
}

.btn-crop-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-crop-apply:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .crop-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .crop-container {
        height: 280px;
    }
    
    .crop-modal-header, .crop-modal-body, .crop-modal-footer {
        padding: 16px;
    }
}
/* Required field asterisk styling */
.required {
    color: #e53e3e;
    font-weight: 600;
    margin-left: 4px;
}

/* User Type Cards Responsive */
.user-type-selection .row {
    margin: 0 -0.5rem;
}

.user-type-selection .col-md-6 {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

.user-type-card .card {
    height: 100%;
    min-height: 280px;
}

.user-type-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Step Indicator Responsive */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Form Improvements */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.position-relative {
    position: relative;
}

/* Button Improvements */
.btn-outline-secondary {
    border-color: #e2e8f0;
    color: #4a5568;
    background: #f8fafc;
}

.btn-outline-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #2d3748;
}

.btn-outline-secondary:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

/* Alert Improvements */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #2d3748;
    border-left: 4px solid #667eea;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #2d3748;
    border-left: 4px solid #f59e0b;
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.city-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.form-control.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.valid-feedback {
    color: #38a169;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Mobile Specific Improvements */
@media (max-width: 576px) {
    .user-type-card .card {
        min-height: 240px;
    }
    
    .user-type-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .user-type-card .fa-3x {
        font-size: 2rem !important;
    }
    
    .password-tooltip {
        position: fixed !important;
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        max-width: calc(100vw - 2rem);
        white-space: normal;
        text-align: center;
        z-index: 9999;
    }
    
    .password-tooltip::after {
        display: none !important;
    }
    
    .tooltip-container:hover .password-tooltip,
    .tooltip-container:focus .password-tooltip,
    .tooltip-container:active .password-tooltip {
        opacity: 1;
        visibility: visible;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .justify-content-center {
        justify-content: center !important;
    }
    
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .register-card {
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .form-control, .form-select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .btn-register {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .step {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .otp-input {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}