/* صفحه ثبت اطلاعات کاربر */
.registration-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    overflow-y: auto;
}

.registration-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px);
}

.registration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.registration-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.registration-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #333;
    animation: fadeIn 0.8s ease;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.header-title {
    color: var(--primary-purple);
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.header-subtitle {
    color: var(--secondary-pink);
    font-weight: 600;
    font-size: 1.2rem;
}

.case-info {
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-pink));
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(106, 48, 147, 0.4);
}

.case-info-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-info-title i {
    margin-left: 10px;
}

.case-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.case-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.case-detail-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.case-detail-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.form-section {
    margin-bottom: 25px;
}

.form-title {
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-size: 1.4rem;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50%;
    height: 3px;
    background: var(--gradient-btn);
    border-radius: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-control {
    border-radius: 12px;
    padding: 14px 20px;
    border: 2px solid #e1e1e1;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--secondary-pink);
    box-shadow: 0 0 0 0.25rem rgba(255, 78, 141, 0.25);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-inquiry {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 78, 141, 0.4);
}

.btn-inquiry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 78, 141, 0.5);
}

.btn-inquiry:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.payment-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    display: none;
    animation: slideDown 0.5s ease;
}

.payment-title {
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.payment-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e1e1e1;
}

.payment-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.payment-value {
    font-weight: 700;
    color: var(--primary-purple);
}

.btn-payment {
    background: var(--gradient-bg);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(106, 48, 147, 0.4);
    width: 100%;
}

.btn-payment:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 48, 147, 0.5);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    display: none;
}

.loading-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--secondary-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.loading-result {
    font-weight: 600;
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
}

.success {
    background: #d4edda;
    color: #155724;
}

.error {
    background: #f8d7da;
    color: #721c24;
}

.close-loading {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}