/* Qayd Membership - 4-Step Flow, RTL, Arabic */

.qayd-membership-wrap {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.qayd-membership-wrap,
.qayd-membership-wrap * {
    font-family: inherit;
}

/* Stepper */
.qayd-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.qayd-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.qayd-stepper-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.qayd-stepper-label {
    font-size: 0.8rem;
    color: #888;
}

.qayd-stepper-item.qayd-stepper-active .qayd-stepper-num {
    background: #2563eb;
    color: #fff;
}

.qayd-stepper-item.qayd-stepper-active .qayd-stepper-label {
    color: #2563eb;
    font-weight: 600;
}

.qayd-stepper-item.qayd-stepper-done .qayd-stepper-num {
    background: #059669;
    color: #fff;
}

.qayd-stepper-item.qayd-stepper-done .qayd-stepper-label {
    color: #059669;
}

.qayd-stepper-line {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
}

@media (min-width: 480px) {
    .qayd-stepper-line {
        width: 60px;
    }
}

.qayd-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* Step titles - hidden for minimal design */
.qayd-step-title,
.qayd-step-subtitle {
    display: none;
}

/* Step 1: Plan cards - design from reference */
.qayd-plan-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .qayd-plan-cards {
        grid-template-columns: 1fr;
    }
}

.qayd-plan-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.2s;
}

.qayd-plan-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.qayd-plan-card-header {
    padding: 1.5rem;
    color: #fff;
}

.qayd-plan-card:first-child .qayd-plan-card-header {
    background: #2563eb;
}

.qayd-plan-card:last-child .qayd-plan-card-header {
    background: #059669;
}

.qayd-plan-card-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.qayd-plan-subtitle {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

.qayd-plan-card-body {
    padding: 1.5rem;
}

/* Plan items */
.qayd-plan-items {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.qayd-plan-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.qayd-plan-items li:last-child {
    border-bottom: none;
}

.qayd-plan-item-label {
    color: #555;
}

.qayd-plan-item-value {
    font-weight: 600;
    color: #222;
}

.qayd-plan-card:first-child .qayd-plan-item-value {
    color: #2563eb;
}

.qayd-plan-card:last-child .qayd-plan-item-value {
    color: #059669;
}

.qayd-plan-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}

.qayd-plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

.qayd-btn-plan {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s;
}

.qayd-plan-card:first-child .qayd-btn-plan {
    background: #2563eb;
}

.qayd-plan-card:last-child .qayd-btn-plan {
    background: #059669;
}

.qayd-btn-plan:hover {
    opacity: 0.9;
}

/* Step 2: User info - elegant fields */
.qayd-user-fields {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qayd-field input[type="text"],
.qayd-field input[type="email"],
.qayd-field input[type="tel"] {
    width: 100%;
    padding: 1.3rem 1.7rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #e8e8e8;
    font-size: 1rem;
    color: #000;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.qayd-field input::placeholder {
    color: #666;
}

.qayd-field input:focus {
    outline: none;
    border-color: #2563eb;
    background: #e0e0e0;
}

.qayd-char-count {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Step actions */
.qayd-step-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qayd-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.qayd-btn-back {
    background: #eee;
    color: #333;
    border: 1px solid #ccc;
}

.qayd-btn-back:hover {
    background: #e0e0e0;
}

.qayd-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
}

.qayd-btn-primary:hover {
    background: #1d4ed8;
}

.qayd-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Step 3: Payment */
.qayd-payment-container {
    margin: 1rem 0;
    min-height: 180px;
}

.qayd-plan-summary {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: #333;
}

.mysr-form {
    min-height: 120px;
}

/* Step 4: Success */
.qayd-step-success {
    text-align: center;
    padding: 2rem;
}

.qayd-success-content {
    max-width: 400px;
    margin: 0 auto;
}

.qayd-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.qayd-success-content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    color: #222;
}

.qayd-success-content p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Thank you page (standalone) */
.qayd-thankyou-page {
    direction: rtl;
    font-family: inherit;
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.qayd-thankyou-wrap {
    max-width: 480px;
    padding: 2rem;
    text-align: center;
}

.qayd-thankyou-success h1,
.qayd-thankyou-error h1 {
    margin: 0 0 1rem;
    font-size: 2rem;
}

.qayd-thankyou-success p,
.qayd-thankyou-error p {
    margin: 0 0 1.5rem;
    line-height: 1.6;
    color: #333;
}

.qayd-thankyou-success {
    border: 2px solid #059669;
    padding: 2rem;
    border-radius: 8px;
}

.qayd-thankyou-error {
    border: 2px solid #ccc;
    padding: 2rem;
    border-radius: 8px;
}

.qayd-thankyou-error .qayd-btn {
    margin-top: 0.5rem;
}

/* Admin status colors */
.status-paid { color: #059669; font-weight: 600; }
.status-pending { color: #666; }
.status-failed { color: #900; }
