.stepper-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.3s ease;
    counter-increment: step;
}

.stepper-item::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stepper-item.active {
    color: #550de8;
}

.stepper-item.active::before {
    background: #550de8;
    color: white;
}

.stepper-item.completed::before {
    content: "✓";
    background: #22c55e;
    color: white;
}

.step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #550de8 !important;
    box-shadow: 0 0 0 2px rgba(85, 13, 232, 0.5) !important;
    outline: none !important;
}

@media (max-width: 640px) {
    .stepper-item {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .stepper-item::before {
        width: 1.75rem;
        height: 1.75rem;
    }
}

.error {
    border-color: #ef4444;
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.has-error:hover {
    border-color: #ef4444;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox {
    width: 40px;
    height: 22px;
    background-color: #e2e8f0;
    border-radius: 50px;
    position: relative;
    transition: background 0.3s;
}

.checkbox::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease-in-out;
}

input:checked + .checkbox {
    background-color: #550de8;
}

input:checked + .checkbox::before {
    transform: translateX(18px);
}

input[type="checkbox"] {
    display: none;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

.card-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}
.gradient-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
}
.icon-container {
    transition: all 0.3s ease;
}
.service-item {
    transition: all 0.2s ease;
}
.service-item:hover {
    transform: translateX(3px);
}
.accent-border-left {
    border-left: 4px solid #3b82f6;
}
.service-selected {
    background-color: rgba(167, 243, 208, 0.5);
    border-left: 4px solid #10b981;
}
.service-not-selected {
    opacity: 0.75;
    background-color: rgba(243, 244, 246, 0.7);
}
.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: auto;
}
.status-check {
    background-color: #10b981;
    color: white;
}
.status-x {
    background-color: #f87171;
    color: white;
}

/* RTL Support */
[dir="rtl"] .language-btn:first-child {
    border-radius: 0 0.5rem 0.5rem 0;
}

[dir="rtl"] .language-btn:last-child {
    border-radius: 0.5rem 0 0 0.5rem;
}

[dir="rtl"] .stepper-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .stepper-item::after {
    right: auto;
    left: 0;
}

[dir="rtl"] .stepper-item::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .stepper-item.active::after {
    right: auto;
    left: 0;
}

[dir="rtl"] .stepper-item.completed::after {
    right: auto;
    left: 0;
}

[dir="rtl"] .stepper-item .stepper-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .stepper-item .stepper-text {
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="rtl"] .flex-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .text-right {
    text-align: left;
}

[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .ml-auto {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .mr-auto {
    margin-right: 0;
    margin-left: auto;
}

.language-btn.active {
    color: #dbeafe;
    background-color: #550de8;
}

.swal2-popup {
    border-radius: 24px !important;
    background: white !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    padding: 40px 30px !important;
}

.swal2-icon {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border: none !important;
    border-color: transparent !important;
}

.icon-container {
    animation: slideDown 0.6s ease-out;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 50%;
    border-color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(132, 250, 176, 0.3);
}

.checkmark {
    width: 60px;
    height: 60px;
    stroke-width: 3;
}

.swal2-title {
    font-size: 28px !important;
    color: #1a202c !important;
    margin: 0px 0 10px !important;
    font-weight: 700 !important;
}

.thank-you-text {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
    text-align: center;
}

.thank-you-text strong {
    color: #2d3748;
}

.status-bar {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 2px;
    margin: 25px auto;
    animation: expandWidth 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.swal2-close {
    color: #cbd5e0 !important;
    font-size: 28px !important;
}

.swal2-close:hover {
    color: #a0aec0 !important;
}
