/* Public Vendor Profile Wizard Styles */

/* Body and Layout */
.public-vendor-profile {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: Inter, system-ui, sans-serif;
}

/* Header */
.wizard-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
}

.wizard-header img {
    max-height: 50px;
}

/* Wizard Container */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Progress Steps */
.wizard-progress {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
}

/* Active Step */
.progress-step.active .step-circle {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.progress-step.active .step-label {
    color: #2563eb;
    font-weight: 700;
}

/* Completed Step */
.progress-step.completed .step-circle {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.progress-step.completed .step-circle i:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Clickable step icons */
.public-vendor-profile .wizard-step-icon {
    cursor: pointer;
    position: relative;
}

.public-vendor-profile .wizard-step-icon:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.public-vendor-profile .wizard-step-icon:active {
    transform: scale(0.95);
}

/* Show clickable cursor on hover */
.public-vendor-profile .progress-step:hover .wizard-step-icon {
    cursor: pointer;
}

/* Steps with data styling */
.public-vendor-profile .progress-step.has-data .wizard-step-icon {
    background: #28a745 !important;
    color: #ffffff !important;
    border: 2px solid #28a745;
}

.public-vendor-profile .progress-step.has-data .step-label {
    color: #28a745;
    font-weight: 600;
}

/* Hover effect for steps with data */
.public-vendor-profile .progress-step.has-data .wizard-step-icon:hover {
    background: #1e7e34 !important;
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.progress-step.completed .step-label {
    color: #28a745;
}

/* Progress Bar */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}

.wizard-progress .progress {
    height: 6px;
}

.progress-bar {
    transition: width 0.5s ease;
    background: #2563eb;
}

/* Wizard Steps */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
}

/* Form Elements */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
}

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

.form-label {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Logo Upload */
.logo-upload-container {
    width: 320px;
    min-height: 240px;
    height: auto;
    margin: 0 auto;
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    overflow: hidden; /* prevent preview text from bleeding below */
    padding: 8px;
    position: relative;
}

.logo-upload-container:hover {
    border-color: #2563eb;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.logo-upload-container .dz-message {
    text-align: center;
    padding: 1rem;
}

/* Hide helper text when a file is present */
.logo-upload-container.dz-started .dz-message,
.logo-upload-container.dz-max-files-reached .dz-message {
    display: none !important;
}
.logo-upload-container .dz-remove {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff !important;
    border-radius: 6px;
    font-size: 12px;
    padding: 4px 8px;
    text-decoration: none !important;
}


.dz-preview {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dz-preview .dz-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide Dropzone details/progress inside the compact logo uploader */
.logo-upload-container .dz-details,
.logo-upload-container .dz-progress,
.logo-upload-container .dz-error-message,
.logo-upload-container .dz-success-mark,
.logo-upload-container .dz-error-mark,
.logo-upload-container .dz-size,
.logo-upload-container .dz-filename {
    display: none !important;
}

/* Ensure the preview never expands the container */
.logo-upload-container .dz-preview.dz-file-preview,
.logo-upload-container .dz-preview.dz-image-preview {
    height: 100% !important;
}

/* Services Checkboxes */
.service-checkbox {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.form-check {
    padding-left: 1.8rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Account Options - Card Style */
.account-options-cards {
    margin-bottom: 1rem;
}

.account-options-cards .col-md-6 {
    display: flex;
}

.account-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-option-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
}

.account-option-card .card {
    transition: all 0.3s ease;
    border-color: #dee2e6;
    background: #ffffff;
    min-height: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.account-option-card .card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.account-option-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.account-option-input:checked + .account-option-card .card {
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
    transform: translateY(-4px);
}

.account-option-input:checked + .account-option-card .card::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.account-option-card .card {
    position: relative;
}

.account-option-input:checked + .account-option-card .card-title {
    color: #2563eb;
}

/* Responsive adjustments for account cards */
@media (max-width: 767px) {
    .account-option-card .card {
        min-height: 240px;
    }
}

/* Navigation Buttons */
.wizard-navigation {
    margin-top: 2rem;
}

.btn {
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2563eb;
    border: none;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: #28a745;
    border: none;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.wizard-footer {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    margin-top: 3rem;
}

/* Notable Clients Tags */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* Select2 Overrides */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    min-height: calc(1.5em + 1.5rem + 2px);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.public-vendor-profile .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: #2563eb; /* brand blue */
    border: none;
    color: #ffffff; /* white text */
    border-radius: 9999px; /* pill */
    padding: 0.35rem 0.65rem;
    line-height: 1.2;
}

.public-vendor-profile .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 0.5rem !important;
    opacity: 1 !important;
    background: none !important; /* remove default gray image */
    background-image: none !important;
    background-size: 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    border: 0 !important;
    color: transparent !important; /* hide any built-in X text */
    width: 1rem !important;
    height: 1rem !important;
    line-height: 1rem !important;
    text-align: center !important;
    position: relative !important;
    padding: 0 !important;
    text-indent: 0 !important; /* undo theme's 100% indent */
    overflow: visible !important; /* show glyph */
    font-size: 0 !important; /* suppress original glyph */
}

.public-vendor-profile .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove::before {
    content: '×';
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
}

.public-vendor-profile .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover,
.public-vendor-profile .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:focus {
    color: #ffffff !important;
}

/* Absolute kill switch for any theme-provided mask/image on the remove icon */
.public-vendor-profile .select2-selection__choice__remove,
.public-vendor-profile .select2-selection__choice__remove::before,
.public-vendor-profile .select2-selection__choice__remove::after {
    -webkit-mask: none !important;
    mask: none !important;
    background: none !important;
    background-image: none !important;
}

.public-vendor-profile .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice:hover {
    background-color: #1d4ed8; /* darker on hover */
}

/* caret/clear colors */
.public-vendor-profile .select2-container--bootstrap-5 .select2-selection__clear {
    color: #6c757d;
}

/* Input Groups */
.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    color: #6c757d;
}

.input-group .form-control {
    border-left: none;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-step.active .step-circle {
        transform: scale(1.05);
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .wizard-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .step-label {
        display: none;
    }
    
    .progress-steps {
        gap: 0.25rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Summary Section */
#profile-summary h5 {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

#profile-summary p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #575757;
}

/* Review Step Visibility */
#review-submit-step {
    display: none;
}

#account-fields {
    display: none;
}

/* Review Confirm Button */
#btn-confirm-review {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Links */
a {
    color: #039be5;
    text-decoration: none;
}

a:hover {
    color: #0277bd;
    text-decoration: underline;
}

/* Text Colors */
.text-primary {
    color: #2563eb !important;
}

.text-muted {
    color: #6c757d !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #0f1727;
}

/* Smooth Transitions */
* {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Notable Clients styling */
.client-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-card {
    transition: all 0.2s ease;
}

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

/* Fix input group border issues */
.public-vendor-profile .input-group .form-control {
    border-left: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
    border-top: 1px solid #dee2e6 !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.public-vendor-profile .input-group .form-control:focus {
    border-left: 1px solid #2563eb !important;
    border-right: 1px solid #2563eb !important;
    border-top: 1px solid #2563eb !important;
    border-bottom: 1px solid #2563eb !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25) !important;
}

.public-vendor-profile .input-group .btn {
    border-left: 1px solid #2563eb !important;
}

