:root {
    --primary: #06A47C;
    --primary-dark: #058667;
    --primary-light: #e6f7f3;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-radius: 15px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #f1f5f9;
    /* padding: 20px 0; */
    line-height: 1.6;
}

.wizard-container {
    border-right: 4px solid var(--primary);
    max-width: 1200px;
    margin: 0 auto 30px;
    background: white;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 85vh;
}

/* Vertical Steps Sidebar */
.steps-sidebar {
    width: 280px;
    background-color: #058667;
    padding: 30px 0;
    border-right: 1px solid #058667;
    display: flex;
    flex-direction: column;
}

.wizard-logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.wizard-logo img {
    max-width: 120px;
    height: auto;
}

.wizard-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-top: 10px;
    text-align: center;
}

/* Vertical Steps */
.steps-vertical {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    position: relative;
}

.steps-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 41px;
    width: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.step-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    color: #06A47C;
    transition: all var(--transition-speed) ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.step-content {
    padding-top: 10px;
}

.step-title {
    font-size: 15px;
    /* font-weight: 600; */
    color: white;
    margin-bottom: 5px;
    transition: color var(--transition-speed) ease;
}

.step-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: none;
    opacity: 0;
    transition: all var(--transition-speed) ease;
    max-width: 180px;
}

.step-item.active .step-icon {
    border-color: white;
    color: #06A47C;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.step-item.active .step-title {
    color: white;
    /* font-weight: 700; */
}

.step-item.active .step-description {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

.step-item.completed .step-icon {
    background-color: white;
    border-color: white;
    color: #06A47C;
}

.step-item.completed .step-title {
    color: white;
}

.step-item.completed + .step-item::before {
    background-color: var(--primary);
}

/* Content Area */
.wizard-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

/* Progress indicator */
.progress-container {
    background-color: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 5px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary) !important;
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* .progress-bar {
    width: 0;
    height: 30px;
    background-color: #76c7c0 !important;
    transition: width 0.5s ease-in-out;
} */

.step-indicator {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

/* Form steps */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease;
}

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

/* Typography */
h1, h2, h3 {
    color: var(--text-dark);
}

h2 {
    font-weight: 700;
    margin-bottom: 30px;
    /* padding-bottom: 15px; */
    /* border-bottom: 2px solid #e2e8f0; */
    font-size: 1.75rem;
    color: var(--primary);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Form controls */
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 4px;
}

.form-control {
    display: block;
    width: 100%;
    /* padding: 0.6rem 0.75rem; */
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    appearance: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select {
    display: block;
    width: 100%;
    /* padding: 0.6rem 0.75rem; */
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    appearance: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    outline: none;
}

.form-control.is-valid, .form-select.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 5px;
}

.invalid-feedback {
    display: none;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 5px;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Select2 customization */
.select2-container--bootstrap-5 .select2-selection {
    /* min-height: 42px; */
    /* padding: 0.5rem 0.75rem; */
    font-size: 0.95rem;
    font-weight: 400;
    border: 1px solid #cbd5e1;
    /* border-radius: var(--border-radius); */
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--primary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    /* padding-top: 5px; */
    color: var(--text-dark);
}

.is-invalid + .select2-container--bootstrap-5 .select2-selection {
    border-color: var(--danger);
}

.is-valid + .select2-container--bootstrap-5 .select2-selection {
    border-color: var(--success);
}

/* Buttons */
.btn {
    /* padding: 12px 24px; */
    border-radius: var(--border-radius);
    /* font-weight: 600; */
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-outline-secondary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: white;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.1);
}

.btn-sm {
    /* padding: 8px 16px; */
    font-size: 0.875rem;
}

/* Cards and sections */
.proposer-card {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.proposer-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.info-text {
    color: var(--text-muted);
    font-size: 14px;
}

.success-icon {
    width: 130px;
    height: 130px;
    background-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.success-icon i {
    color: white;
    font-size: 65px;
}

.congrats-container {
    text-align: center;
    padding: 60px 0;
}

.search-btn {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.info-icon {
    color: var(--primary);
    margin-right: 5px;
}

.important-notice {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Form section styling */
.form-section {
    background-color: #f8fcfa;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: all var(--transition-speed) ease;
}

.form-section:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

/* Summary page styles */
.card-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.fw-medium {
    font-weight: 500;
    color: var(--text-muted);
}

/* Validation summary */
.validation-summary {
    display: none;
    background-color: var(--danger-light);
    border-left: 4px solid var(--danger);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    animation: fadeIn 0.3s ease;
}

.validation-summary h4 {
    color: var(--danger);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.validation-summary ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.validation-summary li {
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spinner-overlay.show {
    visibility: visible;
    opacity: 1;
}

.spinner-container {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.spinner-border {
    color: var(--primary);
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .wizard-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .steps-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px;
    }
    
    .steps-vertical {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
    }
    
    .steps-vertical::before {
        display: none;
    }
    
    .step-item {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        flex: 1;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .step-content {
        padding-top: 0;
    }
    
    .step-description {
        display: none !important;
    }
    
    .wizard-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .wizard-container {
        padding: 0;
    }
    
    .step-title {
        font-size: 12px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .steps-vertical {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .step-title {
        font-size: 10px;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 15px 12px;
    }
}

/* Tooltip styles */
.tooltip-inner {
    background-color: var(--primary);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    box-shadow: var(--box-shadow);
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before, 
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--primary);
}