/* Button Loader Styles */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Validation Styles */
.form-input.is-invalid {
    border-color: var(--color-error);
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 6px;
    font-size: 0.85em;
    color: var(--color-error);
}

/* Multi-step Wizard Styles */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 10px 0 35px 0;
}

.steps-line-container {
    position: absolute;
    left: 50px;
    right: 50px;
    top: 20px;
    height: 4px;
    z-index: 1;
}

.step-progress-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-drawer-divider);
    border-radius: 2px;
}

.step-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-primary-blue);
    border-radius: 2px;
    transition: width 0.4s ease;
    z-index: 2;
}

.step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    width: 100px;
    flex-shrink: 0;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #EFF6FF;
    border: 3px solid var(--color-drawer-divider);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-secondary-text);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-node.active .step-circle {
    background-color: #FFFFFF;
    border-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
    box-shadow: 0 0 0 5px rgba(43, 158, 245, 0.15);
}

.step-node.completed .step-circle {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: #FFFFFF;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary-text);
    transition: color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.step-node.active .step-label {
    color: var(--color-primary-blue);
}

.step-node.completed .step-label {
    color: var(--color-success);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px !important;
}

.file-upload-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.file-upload-input {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-workspace-bg);
    border: 1px dashed var(--color-drawer-divider);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-secondary-text);
    font-size: 0.9rem;
}

.file-upload-label:hover {
    border-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
    background-color: rgba(43, 158, 245, 0.03);
}

.file-upload-label i {
    font-size: 1.1rem;
}

.file-name-display {
    font-size: 0.8rem;
    color: var(--color-success);
    margin-top: 4px;
    display: none;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.terms-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    background-color: var(--color-workspace-bg);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--color-drawer-divider);
}

.terms-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.terms-item input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.terms-label {
    font-size: 0.85rem;
    color: var(--color-primary-text-light);
    line-height: 1.4;
}

.success-container {
    text-align: center;
    padding: 30px 10px;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 20px;
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hidden {
    display: none !important;
}

