/* Stil General pentru Container */
.astro-wizard-form {
    max-width: 550px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 30px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden; /* Important pentru animații */
}

.form-title {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Stil pentru Bara de Progres */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #f3f3f3;
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 0%; /* Va fi actualizat cu JS */
    background-color: #3498db;
    z-index: 2;
    transition: width 0.4s ease;
}

.progress-step {
    width: 30px;
    height: 30px;
    background-color: #f3f3f3;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-weight: bold;
    position: relative;
    z-index: 3;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.progress-step.active {
    background-color: #3498db;
    color: white;
}
.progress-step::after { /* Titlurile pașilor */
    content: attr(data-title);
    position: absolute;
    top: 40px;
    font-size: 13px;
    color: #888;
}


/* Stil pentru Pașii Formularului */
.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block;
}

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

/* Stil pentru Grupuri de Câmpuri și Etichete Flotante */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.floating-label .form-control {
    width: 100%;
    padding: 12px 10px 8px 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    background-color: transparent;
    font-size: 16px;
    transition: border-color 0.3s;
}

.floating-label label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-label .form-control:focus,
.floating-label .form-control:not(:placeholder-shown) {
    border-bottom-color: #3498db;
    outline: none;
}

/* NOU ȘI ROBUST - Folosim :focus-within și o clasă .has-value */
.floating-label:focus-within label,
.floating-label.has-value label {
    top: -12px;
    left: 5px;
    font-size: 12px;
    color: #3498db;
    background: #ffffff;
    padding: 0 5px;
}

.validation-feedback {
    font-size: 13px;
    padding-left: 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.validation-feedback.loading {
    color: #888;
}

.validation-feedback.success {
    color: #2ecc71;
}

.validation-feedback.error {
    color: #e74c3c;
}

/* Stil pentru butonul dezactivat */
.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}
.btn:disabled:hover {
    background-color: #bdc3c7; /* Previne schimbarea culorii la hover */
}


select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 12px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    width: 100%;
}

.validation-feedback {
    font-size: 12px;
    padding-left: 10px;
}
.validation-feedback .error { color: #e74c3c; }
.validation-feedback .success { color: #2ecc71; }

/* Stil pentru Butoane */
.btn-group {
    display: flex;
    justify-content: space-between;
}
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
}
.btn-primary {
    background-color: #3498db;
    color: white;
    flex-grow: 1; /* Butonul principal ocupă mai mult spațiu */
}
.btn-primary:hover {
    background-color: #2980b9;
}
.btn-secondary {
    background-color: #f3f3f3;
    color: #555;
    margin-right: 10px;
}
.btn:active {
    transform: translateY(1px);
}
