/* ===== REGISTER PAGE ===== */
.reg-page {
    padding-top: 60px;
    min-height: 100vh;
    background: var(--warm-white, #faf8f5);
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
}

/* Header */
.reg-header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    background: linear-gradient(135deg, var(--brown, #5c3d2e) 0%, #3a2318 100%);
    color: #fff;
}
.reg-badge {
    display: inline-block;
    background: var(--gold, #c9a84c);
    color: #3a2318;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}
.reg-header h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin: 0.4rem 0 0.5rem;
    color: var(--gold-light, #e8c97a);
}
.reg-header p {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Layout */
.reg-wrap {
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 0 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

/* Form */
.reg-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reg-fieldset {
    border: 1.5px solid var(--border, #e8ddd0);
    border-radius: 14px;
    padding: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.reg-fieldset legend {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brown, #5c3d2e);
    padding: 0 0.5rem;
}

/* Fields */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brown, #5c3d2e);
}
.req {
    color: var(--red, #c0392b);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.6rem 0.95rem;
    border: 1.5px solid var(--border, #e8ddd0);
    border-radius: 10px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 0.92rem;
    color: #333;
    background: #fff;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    box-sizing: border-box;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold, #c9a84c);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
    border-color: var(--red, #c0392b);
}
.field textarea {
    resize: vertical;
    min-height: 90px;
}

/* Checkbox */
.reg-agree {
    background: #fff;
    border: 1.5px solid var(--border, #e8ddd0);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--brown, #5c3d2e);
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold, #c9a84c);
    cursor: pointer;
    flex-shrink: 0;
}

/* Submit */
.reg-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: var(--gold, #c9a84c);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        opacity 0.2s,
        transform 0.15s;
}
.reg-submit:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
.reg-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success */
.reg-success {
    text-align: center;
    padding: 1.5rem;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    color: #166534;
}
.reg-success span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.4rem;
}

/* Sidebar */
.reg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.side-card {
    background: #fff;
    border: 1.5px solid var(--border, #e8ddd0);
    border-radius: 14px;
    padding: 1.4rem;
}
.side-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}
.side-card h3 {
    font-size: 1rem;
    color: var(--brown, #5c3d2e);
    margin: 0 0 0.75rem;
}
.side-card ul {
    margin: 0;
    padding-right: 1.1rem;
    font-size: 0.88rem;
    color: var(--text-muted, #6b5a4e);
    line-height: 2;
}
.side-contact p {
    font-size: 0.88rem;
    color: var(--text-muted, #6b5a4e);
    margin: 0 0 0.4rem;
}
.side-phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold, #c9a84c);
    text-decoration: none;
    direction: ltr;
    display: inline-block;
}

/* Responsive */
@media (max-width: 720px) {
    .reg-wrap {
        grid-template-columns: 1fr;
        padding: 0 1rem 3rem;
    }
    .reg-sidebar {
        order: -1;
    }
}
