.etodia-lms-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    direction: rtl;
    text-align: right;
}

.etodia-step {
    display: none;
}

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

.etodia-step h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

/* Form elements */
input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.etodia-btn {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.etodia-btn:hover {
    background: #005a87;
}

.etodia-btn-link {
    background: transparent;
    color: #0073aa;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 10px 0;
    display: block;
    margin: 10px auto;
}

.etodia-btn-link:hover {
    color: #005a87;
}

/* Messages */
.etodia-message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    display: none;
}

.etodia-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.etodia-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* OTP Form */
.etodia-otp-form {
    margin-top: 20px;
}

/* Membership Items */
.etodia-membership-list {
    margin-bottom: 20px;
}

.etodia-membership-item {
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.etodia-membership-item:hover {
    border-color: #0073aa;
}

.etodia-membership-item.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.etodia-membership-item h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.etodia-membership-item p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.etodia-price {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.etodia-select-membership {
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
}

/* Coupon Section */
.etodia-coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.etodia-coupon-section input {
    flex: 1;
    margin: 0;
}

.etodia-coupon-section button {
    width: auto;
    padding: 12px 20px;
}

/* Price Summary */
.etodia-price-summary {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.etodia-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.etodia-summary-row.total {
    border-top: 2px solid #ddd;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
}

.etodia-summary-row .discount {
    color: #28a745;
}

/* Gateway Items */
.etodia-gateway-list {
    margin-bottom: 20px;
}

.etodia-gateway-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.etodia-gateway-item .gateway-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.etodia-gateway-item img {
    max-width: 50px;
    max-height: 30px;
}

.etodia-select-gateway {
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
}

/* Loading */
.etodia-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.etodia-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .etodia-lms-container {
        margin: 20px;
        padding: 20px;
    }
    
    .etodia-coupon-section {
        flex-direction: column;
    }
    
    .etodia-coupon-section button {
        width: 100%;
    }
}
