/* =========================
   BASE RESET
========================= */
#wcp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 9998;
}

#wcp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.95);
    background: #ffffff;
    width: 92%;
    max-width: 520px;
    border-radius: 18px;
    padding: 28px 26px 26px;
    opacity: 0;
    pointer-events: none;
    transition: all .35s ease;
    z-index: 9999;
    font-family: inherit;
    direction: rtl;
}

#wcp-overlay.active,
#wcp-popup.active {
    opacity: 1;
    pointer-events: auto;
}


/* =========================
   CLOSE BUTTON
========================= */
.wcp-close {
    position: absolute;
    top: 16px;
    left: 16px;
    border: none;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s ease;
}

.wcp-close:hover {
    background: #e2e8f0;
}

/* =========================
   PROGRESS
========================= */
.wcp-progress {
    margin-bottom: 22px;
    font-size: 14px;
    color: #475569;
    text-align: center;
}

/* =========================
   STEP
========================= */
.wcp-step {
    display: none;
}

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

.wcp-step h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.wcp-step p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 18px;
}

.wcp-step h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #0f172a;
    text-align: center;
}

/* =========================
   INPUTS
========================= */
.wcp-step-labels {
    display: flex;
    flex-direction: column;
}

.wcp-step label {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 9px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 16px;
}

.wcp-step label:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.wcp-step input[type="radio"] {
    accent-color: #4f46e5;
    width: 18px;
    height: 18px;
}

.wcp-step input[type="text"],
.wcp-step input[type="tel"],
.wcp-step select {
    width: 96%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    margin-bottom: 14px;
    transition: border .2s ease;
    direction: rtl;
}

.wcp-step input:focus,
.wcp-step select:focus {
    outline: none;
    border-color: #6366f1;
}

/* =========================
   ACTION BUTTONS
========================= */
.wcp-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
}

.wcp-actions button {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

#wcp-prev {
    background: #f1f5f9;
    color: #334155;
    font-size: 18px;
}

#wcp-prev:hover {
    background: #e2e8f0;
}

#wcp-next,
#wcp-submit {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    font-size: 18px;
}

#wcp-next:hover,
#wcp-submit:hover {
    opacity: .9;
}

/* =========================
   SUCCESS MESSAGE
========================= */
#wcp-form h3 {
    color: #333;
    font-size: 18px;
    margin-top: 40px;
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 480px) {
    #wcp-popup {
        padding: 22px 18px;
    }

    .wcp-step h2 {
        font-size: 18px;
    }

    .wcp-actions {
        flex-direction: column;
    }
}

.wcp-actions button {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.wcp-actions button:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

#wcp-next,
#wcp-submit {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

#wcp-next:hover,
#wcp-submit:hover {
    opacity: .9;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

#wcp-prev {
    background: #f1f5f9;
    color: #334155;
    box-shadow: 0 4px 10px rgba(51, 65, 85, 0.15);
}

#wcp-prev:hover {
    background: #e2e8f0;
    box-shadow: 0 6px 14px rgba(51, 65, 85, 0.20);
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* =========================
   TOAST
========================= */
#wcp-toast {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 18px 26px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: all .45s ease;
    z-index: 999999;
    direction: rtl;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

#wcp-toast.show {
    top: 20px;
    opacity: 1;
}

#wcp-toast.error {
    background: #ef4444;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3);
}

#wcp-toast.success {
    background: #22c55e;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.3);
}

#wcp-success-text {
    color: #22c55e;
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: 700;
}

#wcp-simple-site-button {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    padding: 10px;
    border-radius: 12px;
}

#wcp-simple-site-button:hover {
    opacity: .9;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

#wcp-phone-button {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    padding: 10px;
    border-radius: 12px;
}

#wcp-phone-button:hover {
    opacity: .9;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.wcp-step[data-step="8"].active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#wcp-popup.success-mode .wcp-actions {
    display: none;
}

.step-eight-container {
    display: flex;
    gap: 10px;
}