/* ============================================
   استایل‌های اصلی فرم و نمایش پروفایل
   ============================================ */

/* مودال‌ها */
.shoghl-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.shoghl-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shoghl-modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px 35px;
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.shoghl-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.shoghl-modal-close:hover {
    color: #333;
}

.shoghl-modal-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.shoghl-modal-title {
    color: #0c4a6e;
    font-size: 1.6em;
    margin: 0 0 20px 0;
    font-weight: 800;
}

.shoghl-modal-body {
    text-align: right;
    color: #444;
    line-height: 2;
    font-size: 1.05em;
}

.shoghl-modal-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    background: #f0f9ff;
    padding: 12px 15px;
    border-radius: 12px;
    border-right: 4px solid #0284c7;
}

.feature-item span {
    font-size: 1.8em;
    flex-shrink: 0;
}

.feature-item p {
    margin: 0;
    font-size: 0.95em;
}

/* دکمه‌ها */
.shoghl-btn-primary,
.shoghl-btn-success {
    display: inline-block;
    padding: 14px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.15em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 15px;
}

.shoghl-btn-primary {
    font-family: inherit;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
}

.shoghl-btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2,132,199,0.3);
}

.shoghl-btn-success {
    font-family: inherit;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
}

.shoghl-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22,163,74,0.3);
}

/* انیمیشن تیک موفقیت */
.success-animation {
    margin: 20px auto;
}

.checkmark {
    width: 80px;  /* اندازه دلخواه */
    height: 80px; /* اندازه دلخواه */
    display: block;
    margin: 0 auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: #16a34a;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #16a34a;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* فرم اصلی */
.shoghl-field-error {
    border-color: #dc2626 !important;
    background-color: #fff5f5 !important;
}

.shoghl-form-wrapper {
    max-width: 750px;
    margin: 30px auto;
    position: relative;
}

.shoghl-form-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.decoration-circle.c1 {
    width: 200px;
    height: 200px;
    background: #0284c7;
    top: -50px;
    right: -30px;
}

.decoration-circle.c2 {
    width: 150px;
    height: 150px;
    background: #f59e0b;
    bottom: 100px;
    left: -40px;
}

.decoration-circle.c3 {
    width: 120px;
    height: 120px;
    background: #16a34a;
    bottom: -30px;
    right: 20px;
}

.shoghl-form-container {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    font-family: inherit;
    border: 1px solid #e0f2fe;
}

.form-header-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e0f2fe;
}

.form-header-icon {
    font-size: 3em;
    display: block;
}

.form-header-section h2 {
    color: #0c4a6e;
    margin: 10px 0 5px;
    font-size: 1.8em;
}

.form-header-desc {
    color: #64748b;
    margin: 0;
    font-size: 0.95em;
}

/* نوار پیشرفت */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
}

.progress-step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s;
}

.progress-step.active {
    background: #0284c7;
    color: white;
}

.progress-step.completed {
    background: #16a34a;
    color: white;
}

.progress-line {
    width: 40px;
    height: 3px;
    background: #e2e8f0;
    transition: background 0.3s;
}

.progress-line.completed {
    background: #16a34a;
}

/* بخش‌های فرم */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

.section-title {
    color: #0c4a6e;
    margin-bottom: 20px;
    font-size: 1.3em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2fe;
}

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

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #164e63;
    font-size: 0.95rem;
}

.required {
    color: #dc2626;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0f2fe;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #f8fafc;
    font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 4px rgba(2,132,199,0.1);
    background: #fff;
}

.highlight-box {
    background: #fefce8;
    padding: 18px;
    border-radius: 14px;
    border: 2px dashed #f59e0b;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #0284c7;
    margin-top: 3px;
}

.checkbox-text strong {
    display: block;
    color: #0c4a6e;
    margin-bottom: 3px;
}

.checkbox-text small {
    color: #64748b;
    font-size: 0.85em;
    display: block;
}

/* دکمه‌های ناوبری فرم */
.form-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.shoghl-prev-btn,
.shoghl-next-btn,
.shoghl-submit-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.shoghl-prev-btn {
    font-family: inherit;
    background: #f1f5f9;
    color: #475569;
}

.shoghl-prev-btn:hover {
    background: #e2e8f0;
}

.shoghl-next-btn {
    font-family: inherit;
    background: #0284c7;
    color: white;
}

.shoghl-next-btn:hover {
    background: #0369a1;
}

.shoghl-submit-btn {
    font-family: inherit;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 8px 20px rgba(22,163,74,0.2);
}

.shoghl-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(22,163,74,0.3);
}

.form-message {
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
}

/* پروفایل‌های شغلی */
.shoghl-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin: 30px auto;
    max-width: 1300px;
    padding: 0 20px;
}

.profile-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e0f2fe;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    padding: 25px 20px;
    text-align: center;
}

.job-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 8px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
}

.card-body {
    padding: 20px;
    line-height: 1.9;
    color: #334155;
}

.info-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.95em;
}

.info-item span {
    font-size: 1.2em;
    flex-shrink: 0;
}

.info-item.full-width {
    flex-direction: column;
}

.info-divider {
    height: 2px;
    background: linear-gradient(to right, #e0f2fe, transparent);
    margin: 15px 0;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.copy-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
}

.shoghl-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1.2em;
}

/* استایل فیلد شماره تماس */
#phone-row {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #94a3b8;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .shoghl-form-container {
        padding: 20px 15px;
    }
    
    .shoghl-modal-content {
        padding: 25px 20px;
    }
    
    .shoghl-profiles-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .form-nav-buttons {
        flex-direction: column;
    }
}