/* --- Form Components Styling --- */

.form-wizard {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    margin-top: -60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
}

.form-wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.form-wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.form-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.form-wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.form-wizard-step.active .form-wizard-step-number {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.form-wizard-step.completed .form-wizard-step-number {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.form-wizard-step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-wizard-step.active .form-wizard-step-label {
    color: white;
}

/* Form Fields */
.form-group-modern {
    margin-bottom: 2rem;
}

.form-group-modern label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-modern label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-input-modern {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input-modern:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input-modern::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input-modern.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error-message i {
    font-size: 0.875rem;
}

/* File Upload */
.file-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-zone:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.file-upload-zone.dragover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.uploaded-files-list {
    margin-top: 1.5rem;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.uploaded-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.uploaded-file-icon {
    font-size: 1.5rem;
    color: #ef4444;
}

.uploaded-file-name {
    color: white;
    font-weight: 600;
}

.uploaded-file-size {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.uploaded-file-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.uploaded-file-remove:hover {
    color: #ef4444;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-form-primary {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-form-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-form-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-form-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Success Message */
.form-success-card {
    text-align: center;
    padding: 4rem 2rem;
}

.form-success-icon {
    font-size: 5rem;
    color: #22c55e;
    margin-bottom: 2rem;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.form-success-title {
    font-size: 2rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-success-reference {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 2rem 0;
}

.form-success-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Loading Spinner */
.form-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-wizard {
        padding: 2rem 1.5rem;
    }

    .form-wizard-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .form-wizard-steps::before {
        display: none;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .btn-form-primary,
    .btn-form-secondary {
        width: 100%;
        justify-content: center;
    }
}