@import url(components.css);


/* profile1 css */
        #referralFields { transition: all 0.3s ease; overflow: hidden; }
        .is-invalid { border-color: #dc3545 !important; }
        .invalid-feedback { color: #dc3545; font-size: 0.875em; margin-top: 0.25rem; display: none; }
        .invalid-feedback.show, .invalid-feedback.d-block { display: block !important; }
        .form-check-input.is-invalid { border-color: #dc3545; }
        
        /* Photo Upload */
        .profile-photos-upload { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
        .profile-upload-box { position: relative; width: 100%; height: 150px; border-radius: 10px; overflow: hidden; transition: all 0.3s ease; }
        .profile-upload-box:hover { border-color: var(--primary); background-color: var(--primary-scale-50); }
        .input-profile-upload-btn { position: relative; width: 100%; height: 100%; cursor: pointer; background: white; }
        .input-profile-upload-btn input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
        .upload-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--primary); transition: all 0.3s ease; }
        .upload-placeholder i { font-size: 24px; margin-bottom: 8px; color: var(--black-scale-400); }
        .upload-placeholder span { font-size: 14px; font-weight: 500; }
        .profile-upload-box:hover .upload-placeholder { color: var(--primary); }
        .profile-upload-box:hover .upload-placeholder i { color: var(--primary); }
        .image-preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 8px; }
        
        /* Remove buttons */
        .remove-temp-image, .remove-image {
            position: absolute; top: 5px; right: 5px; width: 25px; height: 25px;
            background: var(--primary) !important; border: none; border-radius: 50%;
            color: white !important; font-size: 14px; cursor: pointer;
            display: flex; align-items: center; justify-content: center; z-index: 10;
            opacity: 1; transition: all 0.3s ease; padding: 0; line-height: 1;
        }
        .remove-temp-image:hover, .remove-image:hover { background: var(--primary-dark) !important; transform: scale(1.1); }
        
        /* Profile Picture Upload Button */
        .upload-button {
            display: inline-flex; align-items: center; justify-content: center;
            padding: 12px 24px; background-color: #f8f9fa; border: 2px solid #dee2e6;
            border-radius: 8px; cursor: pointer; transition: all 0.3s ease;
            color: #6c757d; font-weight: 500; text-align: center; margin-bottom: 8px;
        }
        .upload-button:hover { background-color: #e9ecef; border-color: var(--primary); color: var(--primary); }
        .upload-button i { font-size: 18px; }
        
        /* Temp photo preview */
        .temp-photo-preview {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: #f8f9fa; display: flex; align-items: center;
            justify-content: center; padding: 10px; border-radius: 8px;
        }
        .temp-photo-name { font-size: 12px; color: #6c757d; text-align: center; word-break: break-word; max-width: 100%; }

        /* Add this to your existing CSS - JUST ADD THESE 3 LINES */
        .profile-picture-preview {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            margin: 0 auto 10px;
            display: none;
            border: 3px solid var(--primary);
        }
        
        /* Add to your existing CSS */
        .file-input .is-invalid + label {
            border-color: #dc3545 !important;
            background-color: #f8d7da;
        }

        .file-input .is-invalid + label:hover {
            border-color: #dc3545;
            background-color: #f8d7da;
        }

        /* Photo upload error state */
        .profile-upload-box .is-invalid ~ .upload-placeholder {
            border: 2px solid #dc3545;
        }

        .profile-upload-box .is-invalid ~ .upload-placeholder i {
            color: #dc3545;
        }

        /* Profile picture preview error state */
        .profile-picture-preview.error {
            border-color: #dc3545;
        }

        /* Cropper Modal Styles - UPDATED */
        .cropper-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* background: rgba(0, 0, 0, 0.95); Darker overlay */
            background: rgb(0 0 0 / 74%);
            opacity: 1;
            z-index: 9999;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px); /* Optional: adds blur effect */
        }

        .cropper-container {
            background: linear-gradient(145deg, #2c2c2c, #1a1a1a); /* Dark gradient */
            border-radius: 12px;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            overflow: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .cropper-header {
            padding: 20px 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0, 0, 0, 0.3);
        }

        .cropper-header h5 {
            color: #ffffff;
            font-weight: 600;
            font-size: 1.25rem;
            margin: 0;
        }

        .cropper-body {
            padding: 25px 30px;
            background: rgba(30, 30, 30, 0.7);
        }

        .cropper-image-container {
            width: 100%;
            height: 450px;
            background: #000; /* Black background for image area */
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .cropper-footer {
            padding: 20px 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            background: rgba(0, 0, 0, 0.3);
        }

        /* Cropper preview styles */
        .cropper-preview {
            width: 150px;
            height: 150px;
            overflow: hidden;
            margin: 20px auto;
            border-radius: 50%;
            border: 3px solid var(--primary);
            background: #000;
        }

        .cropper-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        #cropperImage {
            max-width: 100%;
            max-height: 100%;
        }

        /* Cropper controls */
        .cropper-controls {
            margin-top: 20px;
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .cropper-controls button {
            padding: 10px 18px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(0, 0, 0, 0.4);
            border-radius: 6px;
            cursor: pointer;
            color: #ffffff;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .cropper-controls button:hover {
            background: var(--primary);
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(var(--primary-rgb, 0, 123, 255), 0.3);
        }

        /* Close button */
        #closeCropper {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
            transition: color 0.3s ease;
        }

        #closeCropper:hover {
            color: #ffffff;
        }

        /* Footer buttons */
        .cropper-footer .btn {
            padding: 12px 24px;
            font-weight: 500;
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .cropper-footer .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #ffffff;
        }

        .cropper-footer .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .cropper-footer .btn-primary {
            background: var(--primary);
            border: none;
            color: white;
        }

        .cropper-footer .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(var(--primary-rgb, 0, 123, 255), 0.4);
        }

        /* Scrollbar styling for cropper container */
        .cropper-container::-webkit-scrollbar {
            width: 8px;
        }

        .cropper-container::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
        }

        .cropper-container::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

        .cropper-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Ensure text is visible */
        .cropper-container * {
            color: #ffffff !important;
        }

        /* Override cropper.js default styles for dark theme */
        .cropper-view-box,
        .cropper-face {
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
        }

        .cropper-line {
            background-color: rgba(255, 255, 255, 0.4) !important;
        }

        .cropper-point {
            background-color: var(--primary) !important;
            border: 2px solid #ffffff !important;
        }

        /* Add this CSS to your existing styles */
        .additional-questions-buttons {
            margin-top: 10px;
        }

        .additional-question-btn {
            min-width: 100px;
            padding: 10px 20px;
            font-weight: 500;
            border-radius: 8px;
            transition: all 0.3s ease;
            border: 2px solid var(--primary);
        }

        .additional-question-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        /* Default state - outline */
        .additional-question-btn {
            background-color: white;
            color: var(--primary);
        }

        /* Active/selected state - filled */
        .additional-question-btn.active {
            background: linear-gradient(90deg, #C127A2 -23.37%, #C1272D 100%);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 2px 5px rgba(193, 39, 45, 0.3);
        }

        /* Hover state for non-active buttons */
        .additional-question-btn:not(.active):hover {
            background-color: #f8f9fa;
            border-color: var(--primary-dark);
            color: var(--primary-dark);
        }

        /* Hover state for active buttons */
        .additional-question-btn.active:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
        }

        /* Ensure proper spacing */
        .d-flex.gap-3 {
            gap: 15px !important;
        }

        /* Banner preview styling */
        .banner-image-preview {
            width: 100%;
            height: 150px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 8px;
            border: 2px solid var(--primary);
            margin-bottom: 10px;
            display: none;
        }

        /* Banner preview in cropper modal */
        #bannerPreview {
            width: 300px;
            height: 75px;
            border-radius: 8px;
            border: 2px solid var(--primary);
            overflow: hidden;
            margin: 20px auto;
        }

        /* AJAX Loading */
        #submitBtn {
            position: relative;
        }

        #submitSpinner {
            margin-left: 8px;
        }

        #charCount {
    font-size: 12px;
    color: #6c757d;
    float: right;
}

#about_me:focus + .invalid-feedback,
#about_me.is-invalid + .invalid-feedback {
    display: block !important;
}


#photos_error {
    z-index: 3;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding: 5px 10px;
    background: #fff;
}

.photo_error_profile{
    z-index: 3;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding: 5px 10px;
    background: #fff;
}

/* profile7 */

  .progress-container {
        height: 10px; 
        position: relative;
        background-color: #e9ecef; 
        border-radius: 5px;
    }

    .progress-bar {
        height: 100%;
        border-radius: 5px;
        transition: all 0.1s ease-out;
        z-index: 1;
        position: relative;
    }

    .visual-handle {
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background: white;
        border: 3px solid var(--primary);
        border-radius: 50%;
        cursor: grab;
        z-index: 4; /* slightly above slider */
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    }


    .invisible-range-slider {
        position: absolute;
        width: 100%;
        height: 100%; 
        top: 0;
        left: 0;
        cursor: pointer;
        opacity: 0;
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        z-index: 3;
    }

    .invisible-range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        background: transparent;
        border-radius: 50%;
        cursor: grab;
    }

    .select2-container--bootstrap-5 .select2-selection {
        min-height: 38px;
        padding: 4px;
    }

    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
        background-color: var(--primary);
        border: none;
        color: #fff !important;
        padding: 3px 8px;
        margin-top: 4px;
    }

    .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected{
        background-color: var(--primary) !important;
    }

    /* ------------profile9----- */


     .plan-card {
        border: 2px solid #dee2e6;
        border-radius: 10px;
        padding: 20px;
        height: 100%;
        transition: all 0.3s ease;
        cursor: pointer;
        background: white;
    }
    
    .plan-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .plan-card-selected {
        border-color: var(--primary);
        background-color: rgba(193, 39, 45, 0.05);
    }
    
    .plan-card-header h5 {
        color: var(--primary);
        margin-bottom: 5px;
    }
    
    .plan-description {
        font-size: 0.9rem;
        color: #6c757d;
        margin-bottom: 15px;
    }
    
    .plan-price h3 {
        font-size: 2rem;
        color: var(--primary);
        margin-bottom: 5px;
    }
    
    .plan-period {
        font-size: 0.9rem;
        color: #6c757d;
    }
    
    .plan-features ul {
        list-style: none;
        padding-left: 0;
        margin-top: 20px;
    }
    
    .plan-features li {
        padding: 5px 0;
        font-size: 0.9rem;
        color: #495057;
    }
    
    .plan-features li:before {
        content: "✓";
        color: var(--primary);
        margin-right: 10px;
        font-weight: bold;
    }
    
    .plan-card-footer {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #dee2e6;
        display: flex;
        justify-content: flex-end;
    }

    
    .form-check-input {
        cursor: pointer;
    }
    
    .check-icon {
        width: 60px;
        height: 60px;
        background-color: #C1272D;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .check-icon i {
        color: white;
        font-size: 30px;
    }

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

    .form-control.is-invalid {
        border-color: #dc3545;
    }

    .form-control.is-invalid ~ .invalid-feedback {
        display: block;
    }
    
    .free-plan-message .alert-success {
        background-color: rgba(40, 167, 69, 0.1);
        border-color: #28a745;
        color: #155724;
    }
    
    .mothly-charge {
        padding: 15px 20px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #dee2e6;
    }

    .plan-selection-indicator {
        position: relative;
        width: 24px;
        height: 24px;
    }
    .form-check-input.plan-radio {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .custom-radio-label {
        display: block;
        width: 24px;
        height: 24px;
        cursor: pointer;
    }

    .custom-radio {
        position: relative;
        display: block;
        width: 24px;
        height: 24px;
        border: 2px solid #dee2e6;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .custom-radio:after {
        content: "";
        position: absolute;
        display: none;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--primary);
    }

    .form-check-input.plan-radio:checked ~ .custom-radio-label .custom-radio {
        border-color: var(--primary);
    }

    .form-check-input.plan-radio:checked ~ .custom-radio-label .custom-radio:after {
        display: block;
    }