@font-face {
    font-family: 'Peyda';
    src: url('peyda.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('peyda.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Peyda', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Peyda', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

.sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 20px;
}

.logo-block {
    text-align: center;
    margin-bottom: 15px;
}

.logo-image {
    display: inline-block;
    max-width: 180px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.progress-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #6B5CE7, #8B7CE8);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-percent {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #6B5CE7;
    margin-top: 10px;
}

.nav-steps {
    list-style: none;
}

.nav-step {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.nav-step:hover {
    background: #f5f5f5;
}

.nav-step.active {
    background: linear-gradient(135deg, #6B5CE7, #8B7CE8);
    color: white;
    font-weight: bold;
}

.nav-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-step.active .nav-step-num {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.nav-step.completed .nav-step-num {
    background: #4CAF50;
    color: white;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

.time-estimate {
    display: inline-block;
    background: linear-gradient(135deg, #6B5CE7, #8B7CE8);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 15px;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #6B5CE7;
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    position: relative;
}

.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #6B5CE7;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: help;
    margin-right: 5px;
    position: relative;
}

.tooltip-text {
    visibility: hidden;
    width: 400px;
    background-color: #333;
    color: #fff;
    text-align: right;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.6;
    font-weight: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #6B5CE7;
    box-shadow: 0 0 0 3px rgba(107, 92, 231, 0.1);
}

.helper-text {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #6B5CE7, #8B7CE8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 92, 231, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    color: #6B5CE7;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.modal-text {
    color: #666;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.8;
}

.verification-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: monospace;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.repeatable-section {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fafafa;
}

.repeatable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.repeatable-title {
    font-weight: 600;
    color: #6B5CE7;
}

.remove-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.add-more-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.add-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #6B5CE7, transparent);
    margin: 40px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.name-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.name-row .form-group {
    margin-bottom: 0;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-item:hover {
    border-color: #6B5CE7;
    background: #f9f8ff;
}

.checkbox-item input[type="checkbox"] {
    cursor: pointer;
}

.cascading-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skills-container {
    display: none;
    padding: 15px;
    background: #f9f8ff;
    border: 2px solid #6B5CE7;
    border-radius: 10px;
    margin-top: 15px;
}

.skills-container.active {
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .tooltip-text {
        width: 280px;
    }
}