.order-form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 5rem 0;
    overflow: hidden;
}

#form-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    min-height: 300px;
}

.form-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s ease forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.form-step .question {
    font-size: clamp(1.25rem, 2vw, 2.5rem);
    font-weight: 600;
}

.form-step .answer {
    width: 100%;
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-step .answer input {
    flex: 1;
    min-width: 280px;
    padding: 1rem 0.75rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: white;
    background: none;
    border: none;
    border-bottom: 1px solid #eeeeeea2;
    transition: 0.3s;
}

.form-step .answer input::placeholder {
    color: #eeeeeea2;
}

.form-step .answer input:focus {
    outline: none;
    border-bottom-color: white;
}

/* wrapper for positioning arrow */
.select-wrapper {
    position: relative;
    width: 100%;
    min-width: 280px;
}

/* style the select */
.select-wrapper select {
    width: 100%;
    padding: 1rem 2.5rem 1rem 0.75rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: white;
    background: none;
    border: none;
    border-bottom: 1px solid #eeeeeea2;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: 0.3s;
}

/* focus effect */
.select-wrapper select:focus {
    outline: none;
    border-bottom-color: white;
}

/* custom arrow */
.select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc;
    font-size: 1.2rem;
    pointer-events: none;
    transition: 0.3s;
}

/* hover/focus arrow glow */
.select-wrapper select:focus + .arrow,
.select-wrapper:hover::after {
    color: white;
}

/* dropdown options (limited styling but helps a bit) */
select option {
    background: #0f141b;
    color: white;
}

.form-step .answer button,
.back-btn, .submit-final-btn {
    padding: 1rem 2rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: white;
    background: #161d27;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.form-step .answer button:hover,
.back-btn:hover {
    background: #004268;
}

.step-controls {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-counter {
    color: #cccccc;
    font-size: 0.95rem;
}

.summary {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-row {
    padding: 1rem;
    background: #161d27;
    border-radius: 8px;
}

.input-error {
    animation: shake 0.3s ease;
    border-bottom-color: #ff5c5c !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.progress {
    position: absolute;
    top: 100px;
    width: 100%;
    max-width: 900px;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #004268, #2b6f97);
    border-radius: 999px;
    transition: width 0.35s ease;
}