@font-face {
    font-family: 'ir';
    src: url('ir.woff') format('woff');
    font-weight: normal;
}

:root {
    --primary: #2563eb; /* آبی جذاب */
    --primary-hover: #1d4ed8;
    --bg-color: #f3f4f6; /* طوسی خیلی روشن */
    --card-bg: rgba(255, 255, 255, 0.85); /* شیشه‌ای سفید */
    --input-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'ir', sans-serif;
    background-color: var(--bg-color);
    /* یک گرادینت محو و لایت در پس زمینه برای زیبایی */
    background-image: radial-gradient(circle at 10% 20%, rgb(239, 246, 255) 0%, rgb(219, 234, 254) 90%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

/* کانتینر اصلی */
.register-card {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 40px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 1.8rem;
    color: #111827;
    font-weight: 800;
    margin-bottom: 8px;
}

.header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 45px; /* جا برای آیکون سمت چپ اگر لازم بود، اینجا چون راست‌چین است پدینگ عادی */
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: 'ir';
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* استایل بخش پلن‌ها - گرید کارت‌ها */
.plans-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون */
    gap: 15px;
    margin-bottom: 25px;
}

/* مخفی کردن دکمه رادیویی اصلی */
.plan-radio {
    display: none;
}

/* ظاهر کارت پلن */
.plan-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

/* حالت انتخاب شده */
.plan-radio:checked + .plan-card {
    border-color: var(--primary);
    background-color: #eff6ff; /* آبی خیلی کمرنگ */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* تیک گوشه کارت برای حالت انتخاب شده */
.plan-radio:checked + .plan-card::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    background: #e0e7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.plan-vol {
    font-weight: 800;
    font-size: 1.2rem;
    color: #111827;
}

.plan-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* کپچا */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-img {
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s;
}
.captcha-img:active { transform: scale(0.95); }

/* دکمه سابمیت */
.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'ir';
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

/* لینک لاگین */
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.login-link a:hover { text-decoration: underline; }

/* آلرت‌ها */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}
.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
