/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    min-height: 100vh;
    color: #333;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ===== HEADER ===== */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.2rem;
    font-weight: bold;
}

header p {
    opacity: 0.9;
}

/* ===== STEPPER ===== */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.3);
}

.step-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    margin: auto;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.step-item.active .step-number {
    background: #00ffb3;
    color: #000;
    transform: scale(1.1);
}

.step-label {
    color: white;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ===== FORM ===== */
fieldset {
    border: none;
    background: white;
    padding: 25px;
    border-radius: 15px;
    animation: fadeIn 0.4s ease;
}

legend {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3c72;
    padding-top: 35px;
    border-bottom: 3px solid #00c3ff;
    display: inline-block;
}

/* ===== GRID ===== */
.row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.field {
    flex: 1;
    min-width: 200px;
}

/* ===== INPUTS ===== */
input, select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: #2a5298;
    box-shadow: 0 0 5px rgba(42,82,152,0.5);
    outline: none;
}

/* ===== CHECKBOX GRID ===== */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox-grid label {
    background: #f4f6f9;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.checkbox-grid label:hover {
    background: #e0ebff;
}

/* ===== RADIO ===== */
.radio-group {
    display: flex;
    gap: 20px;
}

/* ===== BUTTONS ===== */
.navigation-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

button {
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-prev {
    background: #7f8c8d;
    color: white;
}

.btn-next {
    background: #3498db;
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, #00ffb3, #00c3ff);
    color: black;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== ALERTS ===== */
.messages-container div {
    border-radius: 10px;
    margin-bottom: 10px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
    }

    .row {
        flex-direction: column;
    }

    .step-label {
        font-size: 0.75rem;
    }
}