/* Premium Wizard Stepper Styles */
.wizard-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 40px;
}

/* Connector Line Background */
.wizard-stepper::before {
    content: '';
    position: absolute;
    top: 25px;
    /* Half of circle height (50px / 2) */
    left: 40px;
    right: 40px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
    border-radius: 4px;
}

/* Active Progress Line (Dynamic) */
.wizard-stepper::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 100%;
    /* Will be updated via JS/CSS logic if desired, or we rely on individual step pseudoelements */
    transform: translateY(-50%);
    height: 4px;
    background: linear-gradient(90deg, #093b7d, #062855);
    z-index: 0;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.wizard-step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Active Step Styling */
.wizard-step.active {
    border-color: #093b7d;
    color: #ffffff;
    background: #093b7d;
    box-shadow: 0 0 20px rgba(9, 59, 125, 0.6);
    transform: scale(1.15);
}

/* Completed Step Styling */
.wizard-step.completed {
    background: linear-gradient(135deg, #093b7d, #062855);
    border-color: #062855;
    color: #ffffff;
    transform: scale(1.0);
}

.wizard-step-label {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.wizard-step.active .wizard-step-label {
    color: #093b7d;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(9, 59, 125, 0.3);
}

.wizard-step.completed .wizard-step-label {
    color: #093b7d;
    opacity: 0.8;
}

/* Step Content Animation */
.step-content {
    display: none;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-content.active {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Form Control Styling */
.form-control {
    width: 100%;
    height: 55px;
    padding: 12px 20px;
    border: 1px solid rgba(9, 59, 125, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background-color: #ffffff !important;
    color: #093b7d !important;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.form-control:focus {
    outline: none;
    border-color: #093b7d;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(9, 59, 125, 0.1);
    color: #093b7d !important;
}

/* Fix Auto-fill background */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #000000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-prev {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-prev:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
    color: #000000;
    transform: translateX(5px);
}

.btn-next {
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #093b7d 0%, #062855 100%);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(9, 59, 125, 0.2);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(9, 59, 125, 0.4);
    background: linear-gradient(135deg, #0b5ed7 0%, #093b7d 100%);
}

.btn-prev:disabled,
.btn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Summary Box Styling Enhancement */
.summary-box {
    background: rgba(9, 59, 125, 0.05) !important;
    border: 1px solid rgba(9, 59, 125, 0.2) !important;
    backdrop-filter: blur(5px);
    color: #093b7d;
}

/* Mobile Tweaks */
@media (max-width: 576px) {
    .wizard-stepper {
        padding: 0 10px;
        margin-bottom: 40px;
    }

    .wizard-stepper::before {
        left: 25px;
        right: 25px;
    }

    .wizard-step {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .wizard-step-label {
        font-size: 0.75rem;
        top: 50px;
    }
}

/* Fix Offer Header Icons */
.offer-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.offer-title i {
    color: #093b7d;
}

/* Ensure Stepper Icons are Centered */
.wizard-step {
    display: flex;
    /* Ensure flexbox */
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Reset padding if any */
}

/* Fix Default Image Background */
.offer-image-section {
    background-color: #f8f9fa;
    /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image-preview {
    min-height: 300px;
}