/* Professional Fitness Registration Form - Enhanced Frontend Styles */

/* إعدادات عامة */
.pfrform-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    direction: rtl;
    text-align: right;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    border-radius: 20px;
}

.pfrform-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: slideInDown 0.8s ease-out;
}

.pfrform-intro {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.pfrform-intro p {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 1.1em;
}

/* شريط التقدم */
.pfrform-progress-container {
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.pfrform-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.pfrform-progress-fill {
    background: linear-gradient(90deg, #00d4aa, #00d4aa);
    height: 100%;
    width: 20%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.pfrform-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

.pfrform-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.pfrform-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    opacity: 0.6;
    transition: all 0.4s ease;
    position: relative;
}

.pfrform-step.active {
    opacity: 1;
    transform: scale(1.1);
}

.pfrform-step.completed {
    opacity: 1;
}

.pfrform-step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pfrform-step.active .pfrform-step-circle {
    background: linear-gradient(135deg, #00d4aa, #00c0ff);
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.6);
    animation: pulse 2s infinite;
}

.pfrform-step.completed .pfrform-step-circle {
    background: linear-gradient(135deg, #00d4aa, #00c0ff);
    border-color: #00d4aa;
}

.pfrform-step .pfrform-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.pfrform-step.active .pfrform-icon {
    transform: scale(1.2);
}

.pfrform-step span {
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.pfrform-step.active span {
    color: #ffffff;
}

/* النموذج الرئيسي */
.pfrform-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* محتوى الخطوات */
.pfrform-step-content {
    display: none;
    padding: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.pfrform-step-content.active {
    display: block;
}

.pfrform-step-header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideInDown 0.6s ease-out 0.2s both;
}

.pfrform-step-header h3 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.pfrform-step-icon {
    font-size: 1.2em;
    animation: bounce 2s infinite;
}

.pfrform-step-header p {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0;
}

/* الحقول المتحركة */
.pfrform-animated-fields {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.pfrform-field-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.pfrform-field {
    position: relative;
    margin-bottom: 25px;
}

.pfrform-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 1em;
    transition: color 0.3s ease;
}

.pfrform-field.required-field label {
    position: relative;
}

.required {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 5px;
}

/* مجمع الإدخال المتطور */
.pfrform-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pfrform-input-wrapper:hover {
    border-color: rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.1);
}

.pfrform-input-wrapper:focus-within {
    border-color: #3498db;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.2);
}

.pfrform-field-icon {
    padding: 0 15px;
    font-size: 1.2em;
    color: #3498db;
    min-width: 50px;
    text-align: center;
    transition: transform 0.3s ease;
}

.pfrform-input-wrapper:focus-within .pfrform-field-icon {
    transform: scale(1.2);
    color: #2980b9;
}

.pfrform-field input,
.pfrform-field textarea {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.pfrform-field input::placeholder,
.pfrform-field textarea::placeholder {
    color: #bdc3c7;
    transition: opacity 0.3s ease;
}

.pfrform-field input:focus::placeholder,
.pfrform-field textarea:focus::placeholder {
    opacity: 0.7;
}

.pfrform-field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pfrform-input-wrapper:focus-within .pfrform-field-line {
    width: 100%;
}

/* Select مخصص */
.pfrform-select-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pfrform-select-wrapper:hover {
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.1);
}

.pfrform-select-wrapper select {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.pfrform-select-arrow {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #3498db;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.pfrform-select-wrapper:focus-within .pfrform-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Radio buttons محسنة */
.pfrform-radio-group.modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.pfrform-radio-option {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pfrform-radio-option:hover {
    transform: translateY(-2px);
}

.pfrform-radio-option input[type="radio"] {
    display: none;
}

.pfrform-radio-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    flex-direction: column;
    gap: 8px;
}

.pfrform-radio-option:hover .pfrform-radio-custom {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.1);
}

.pfrform-radio-option input:checked + .pfrform-radio-custom {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    border-color: #3498db;
    color: white;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.3);
    transform: scale(1.05);
}

.pfrform-radio-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.pfrform-radio-custom span {
    font-weight: 600;
    font-size: 0.95em;
}

/* BMI Preview */
.pfrform-bmi-preview {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border-radius: 8px;
    font-size: 0.9em;
    color: #27ae60;
    font-weight: 600;
    display: none;
    animation: slideInDown 0.3s ease;
}

/* رفع الملفات المتطور */
.pfrform-file-upload {
    position: relative;
    margin-top: 10px;
}

.pfrform-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.pfrform-file-drop-zone {
    border: 3px dashed rgba(52, 152, 219, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(52, 152, 219, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pfrform-file-drop-zone:hover {
    border-color: rgba(52, 152, 219, 0.6);
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-2px);
}

.pfrform-file-drop-zone.dragover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.02);
}

.pfrform-upload-icon {
    font-size: 2.5em;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.pfrform-file-drop-zone p {
    color: #34495e;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.pfrform-file-drop-zone span {
    color: #3498db;
    font-weight: 600;
    text-decoration: underline;
}

.pfrform-file-drop-zone small {
    color: #7f8c8d;
    font-size: 0.9em;
}

.pfrform-file-preview {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.pfrform-file-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pfrform-file-preview img:hover {
    transform: scale(1.05);
}

/* مجموعة المقاييس */
.pfrform-measurements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pfrform-measurements-tip,
.pfrform-photos-tip {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    animation: slideInUp 0.6s ease-out;
}

.pfrform-tip-icon {
    font-size: 1.5em;
    margin-left: 10px;
    color: #f39c12;
}

.pfrform-measurements-tip p,
.pfrform-photos-tip p {
    margin: 0;
    color: #856404;
    font-size: 1em;
}

/* مجموعة الصور */
.pfrform-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.pfrform-photo-upload {
    animation: fadeInUp 0.6s ease-out;
}

.pfrform-photo-upload label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

/* خطط الاشتراك المحسنة */
.pfrform-subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pfrform-plan {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.pfrform-plan:hover {
    transform: translateY(-10px);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.2);
}

.pfrform-plan[data-plan="silver"] {
    animation-delay: 0.1s;
}

.pfrform-plan[data-plan="gold"] {
    animation-delay: 0.2s;
    position: relative;
}

.pfrform-plan[data-plan="gold"]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
}

.pfrform-plan[data-plan="diamond"] {
    animation-delay: 0.3s;
    position: relative;
}

.pfrform-plan[data-plan="diamond"]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
}

.pfrform-plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

.pfrform-plan-badge.premium {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.pfrform-plan-badge.exclusive {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.pfrform-plan-header {
    padding: 30px 25px;
    text-align: center;
    position: relative;
}

.pfrform-plan[data-plan="silver"] .pfrform-plan-header {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
}

.pfrform-plan[data-plan="gold"] .pfrform-plan-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.pfrform-plan[data-plan="diamond"] .pfrform-plan-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.pfrform-plan-header h4 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pfrform-plan-icon {
    font-size: 1.2em;
    animation: rotate 4s linear infinite;
}

.pfrform-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.pfrform-plan-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95em;
    line-height: 1.4;
}

.feature-icon {
    color: rgba(255, 255, 255, 1);
    font-weight: bold;
    margin-top: 2px;
    flex-shrink: 0;
}

.pfrform-plan-options {
    padding: 25px;
    background: rgba(255, 255, 255, 0.98);
}

.pfrform-plan-option {
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.pfrform-plan-option:last-child {
    margin-bottom: 0;
}

.pfrform-plan-option input[type="radio"] {
    display: none;
}

.pfrform-plan-card {
    display: block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pfrform-plan-option:hover .pfrform-plan-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.pfrform-plan-option input:checked + .pfrform-plan-card {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    border-color: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.3);
}

.pfrform-plan-option.popular .pfrform-plan-card::before {
    content: 'الأشهر';
    position: absolute;
    top: -1px;
    left: 20px;
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
}

.pfrform-plan-duration {
    font-size: 1.2em;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.pfrform-plan-price {
    font-size: 1.8em;
    font-weight: 800;
    color: #27ae60;
    display: block;
    margin-bottom: 5px;
}

.pfrform-plan-option input:checked + .pfrform-plan-card .pfrform-plan-price {
    color: white;
}

.pfrform-plan-price small {
    font-size: 0.6em;
    font-weight: 400;
}

.pfrform-plan-monthly {
    font-size: 0.9em;
    color: #7f8c8d;
    display: block;
    margin-bottom: 8px;
}

.pfrform-plan-option input:checked + .pfrform-plan-card .pfrform-plan-monthly {
    color: rgba(255, 255, 255, 0.8);
}

.pfrform-plan-save {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
    animation: glow 2s ease-in-out infinite alternate;
}

/* أزرار التنقل */
.pfrform-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(52, 152, 219, 0.1);
}

.pfrform-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pfrform-btn-prev {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.pfrform-btn-next,
.pfrform-btn-submit {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    margin-right: auto;
}

.pfrform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.pfrform-btn:active {
    transform: translateY(-1px);
}

.pfrform-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.pfrform-btn:hover .btn-icon {
    transform: scale(1.2);
}

.pfrform-submit-loading {
    display: none;
}

/* الرسائل */
.pfrform-messages {
    margin: 20px 40px;
}

.pfrform-success {
    background: linear-gradient(135deg, #d5edda, #c3e6cb);
    color: #155724;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #c3e6cb;
    margin-bottom: 10px;
    display: none;
    animation: slideInDown 0.5s ease;
}

.pfrform-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #f5c6cb;
    margin-bottom: 10px;
    display: none;
    animation: slideInDown 0.5s ease;
}

/* التحقق من الحقول */
.pfrform-field-feedback {
    margin-top: 8px;
    font-size: 0.9em;
    min-height: 20px;
    transition: all 0.3s ease;
}

.pfrform-field-feedback.success {
    color: #27ae60;
    animation: slideInRight 0.3s ease;
}

.pfrform-field-feedback.error {
    color: #e74c3c;
    animation: shake 0.5s ease;
}

.pfrform-field-error .pfrform-input-wrapper {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    animation: shake 0.5s ease;
}

/* الانيميشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 170, 0.8);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.8);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .pfrform-container {
        padding: 15px;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .pfrform-title {
        font-size: 1.8em;
    }
    
    .pfrform-intro {
        padding: 20px;
    }
    
    .pfrform-steps-indicator {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .pfrform-step {
        flex: auto;
        min-width: calc(50% - 10px);
    }
    
    .pfrform-step-circle {
        width: 50px;
        height: 50px;
    }
    
    .pfrform-step span {
        font-size: 0.8em;
    }
    
    .pfrform-step-content {
        padding: 25px 20px;
    }
    
    .pfrform-step-header h3 {
        font-size: 1.5em;
        flex-direction: column;
        gap: 10px;
    }
    
    .pfrform-field-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pfrform-measurements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .pfrform-photos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pfrform-subscription-plans {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .pfrform-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .pfrform-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
    
    .pfrform-messages {
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .pfrform-intro p {
        font-size: 1em;
    }
    
    .pfrform-step-header h3 {
        font-size: 1.3em;
    }
    
    .pfrform-step-header p {
        font-size: 1em;
    }
    
    .pfrform-field input,
    .pfrform-field textarea,
    .pfrform-select-wrapper select {
        font-size: 16px; /* منع التكبير في iOS */
    }
    
    .pfrform-measurements-grid {
        grid-template-columns: 1fr;
    }
    
    .pfrform-plan-header h4 {
        font-size: 1.4em;
    }
    
    .pfrform-plan-features li {
        font-size: 0.9em;
    }
}

/* تحسينات الأداء */
.pfrform-loading {
    pointer-events: none;
    opacity: 0.7;
}

.pfrform-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #3498db;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* تحسينات إضافية للتوافق */
/* دعم المتصفحات القديمة */
.pfrform-plan {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.pfrform-btn {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* التركيز للوصولية */
.pfrform-btn:focus,
.pfrform-radio-option:focus,
.pfrform-plan-option:focus {
    outline: 3px solid rgba(52, 152, 219, 0.5);
    outline-offset: 2px;
}

/* طباعة */
@media print {
    .pfrform-container {
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .pfrform-progress-container,
    .pfrform-navigation {
        display: none;
    }
}