/* style.css - تم ریسپانسیو و مدرن */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@font-face {
    font-family: IRANSansWeb_FaNum_Medium;
    font-style: normal;
    font-weight: 500;
    src: url('assets/fonts/eot/IRANSansWeb_FaNum_Medium.eot');
    src: url('assets/fonts/eot/IRANSansWeb_FaNum_Medium.eot?#iefix') format('embedded-opentype'),
         url('assets/fonts/woff2/IRANSansWeb_FaNum_Medium.woff2') format('woff2'),
         url('assets/fonts/woff/IRANSansWeb_FaNum_Medium.woff') format('woff'),
         url('assets/fonts/ttf/IRANSansWeb_FaNum_Medium.ttf') format('truetype');
}

@font-face {
    font-family: IRANSansWeb_FaNum_Light;
    font-style: normal;
    font-weight: 300;
    src: url('assets/fonts/eot/IRANSansWeb_FaNum_Light.eot');
    src: url('assets/fonts/eot/IRANSansWeb_FaNum_Light.eot?#iefix') format('embedded-opentype'),
         url('assets/fonts/woff2/IRANSansWeb_FaNum_Light.woff2') format('woff2'),
         url('assets/fonts/woff/IRANSansWeb_FaNum_Light.woff') format('woff'),
         url('assets/fonts/ttf/IRANSansWeb_FaNum_Light.ttf') format('truetype');
}


* {
    font-family: 'IRANSansWeb_FaNum_Medium', Tahoma, 'Segoe UI', sans-serif;
}

body, input, textarea, button, select {
    font-family: 'IRANSansWeb_FaNum_Medium', Tahoma, sans-serif;
}

/* در صورت نیاز به متن لایت (نازک‌تر) می‌توانید کلاسی تعریف کنید */
.light-text {
    font-family: 'IRANSansWeb_FaNum_Light', Tahoma, sans-serif;
    font-weight: 300;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}
.logo {
    max-width: 329px;
    height: auto;
    display: inline-block;
}
@media (max-width: 768px) {
    .logo {
        max-width: 120px;
    }
}


body {
    background: linear-gradient(135deg, #aab3d9 0%, #c4ffbd 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container, .survey-container, .thankyou-container {
    max-width: 800px;
    width: 100%;
    margin: auto;
}

/* کارت‌ها */
.admin-form, .link-box, .thankyou-card, .survey-container > form {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

h1, h2 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus, textarea:focus {
    border-color: #667eea;
    outline: none;
}

.btn-submit, .btn-copy, .next-step, .prev-step, .submit-survey {
    background: #2E7D32; /* سبز تیره سازمانی */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.btn-submit:hover, .btn-copy:hover, .next-step:hover, .submit-survey:hover {
    background: #2E7D32;
    transform: scale(1.02);
}

.prev-step {
    background: #a0aec0;
    margin-left: 10px;
}

.prev-step:hover {
    background: #718096;
}

/* جدول درخواست‌ها */
.table-responsive {
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.requests-table th, .requests-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.requests-table th {
    background: #f8f9fa;
    color: #333;
}

.token {
    font-family: monospace;
    font-size: 12px;
    background: #f1f1f1;
    padding: 4px 8px;
    border-radius: 20px;
}

/* ویزارد نظرسنجی */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: white;
    padding: 15px;
    border-radius: 50px;
}

.progress-step {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4a5568;
    transition: all 0.3s;
}

.progress-step.active {
    background: #667eea;
    color: white;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.3);
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #2d3748;
    font-weight: 500;
}

.rating-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin: 25px 0;
}

.rating-option {
    flex: 1;
    text-align: center;
    background: #f7fafc;
    padding: 12px 5px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.rating-option input {
    display: none;
}

.rating-option span {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.rating-option small {
    font-size: 11px;
    color: #718096;
}

.rating-option.selected {
    background: #667eea;
    color: white;
    border-color: #5a67d8;
    transform: scale(1.02);
}

.rating-option.selected small {
    color: white;
}

.step-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

textarea {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #ccc;
    resize: vertical;
}

.thankyou-card {
    text-align: center;
    padding: 50px;
}

@media (max-width: 640px) {
    .rating-group {
        flex-direction: column;
    }
    .rating-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 15px;
    }
    .rating-option span {
        font-size: 1.2rem;
    }
}