/* ===== فرم نظر سنجی ===== */
.survey-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 350px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-wrapper {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 40px 35px 45px;
    box-shadow: var(--shadow-card);
    transition: background 0.4s, box-shadow 0.4s;
    border: 1px solid var(--header-border);
}

.survey-head {
    text-align: center;
    margin-bottom: 10px;
}
.survey-head h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 6px;
}
.survey-head h1 .orange {
    color: #ff6b00;
}
.survey-head .sub-head {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 400;
}

.survey-logo-wrap {
    text-align: center;
    margin: 18px 0 30px;
}
.survey-logo-wrap img {
    max-width: 110px;
    height: auto;
    border-radius: 20px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}
.survey-logo-wrap img:hover {
    transform: scale(1.03);
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-group label .required {
    color: #ff6b00;
    font-weight: 700;
}
.form-group label i {
    color: #ff6b00;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--header-border);
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
    direction: rtl;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rating-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0 4px;
}
.rating-group label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}
.stars {
    display: flex;
    gap: 10px;
    direction: ltr;
}
.stars .star {
    font-size: 2.4rem;
    cursor: pointer;
    color: #d1d1d1;
    transition: color 0.25s, transform 0.2s;
    user-select: none;
    line-height: 1;
}
.stars .star.active,
.stars .star:hover,
.stars .star:hover~.star {
    color: #ff6b00;
}
.stars .star:hover {
    transform: scale(1.15);
}
.stars .star.active {
    transform: scale(1.05);
}
.rating-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.7;
    min-height: 1.6rem;
    transition: opacity 0.3s;
}

.submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.btn-submit {
    background: #ff6b00;
    color: #fff;
    border: none;
    padding: 16px 56px;
    border-radius: 60px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.30);
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}
.btn-submit:hover {
    background: #e05e00;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255, 107, 0, 0.40);
}
.btn-submit:active {
    transform: scale(0.97);
}
.btn-submit i {
    font-size: 1.2rem;
}

.success-msg {
    display: none;
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 107, 0, 0.08);
    border-radius: 24px;
    border: 2px solid #ff6b00;
    margin-top: 10px;
}
.success-msg.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}
.success-msg i {
    font-size: 3.2rem;
    color: #ff6b00;
    margin-bottom: 12px;
    display: block;
}
.success-msg h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 6px;
}
.success-msg p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.95rem;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== پنل ادمین ===== */
.admin-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 350px);
}

.admin-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 30px 30px 40px;
    box-shadow: var(--shadow-card);
    transition: background 0.4s, box-shadow 0.4s;
    border: 1px solid var(--header-border);
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--header-border);
}
.admin-head h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
}
.admin-head h2 i {
    color: #ff6b00;
    margin-left: 10px;
}
.admin-head .count-badge {
    background: #ff6b00;
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--header-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 700px;
}
.admin-table th {
    background: var(--header-bg);
    color: var(--text-color);
    padding: 16px 14px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--header-border);
}
.admin-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--header-border);
    color: var(--text-color);
    vertical-align: middle;
}
.admin-table tr:hover td {
    background: rgba(255, 107, 0, 0.04);
}
.admin-table .rating-stars {
    color: #ff6b00;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.admin-table .message-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-table .phone-cell a {
    color: #ff6b00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.admin-table .phone-cell a:hover {
    color: #e05e00;
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-color);
    opacity: 0.6;
}
.empty-state i {
    font-size: 4rem;
    color: #ff6b00;
    margin-bottom: 16px;
    display: block;
}
.empty-state h3 {
    font-size: 1.4rem;
    font-weight: 600;
}
.empty-state p {
    font-size: 1rem;
}

/* ===== ریسپانسیو مخصوص فرم ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
}

/* ریسپانسیو ادمین */
@media (max-width: 768px) {
    .admin-wrapper { padding: 20px 14px 30px; border-radius: 20px; }
    .admin-head h2 { font-size: 1.3rem; }
    .admin-head .count-badge { font-size: 0.8rem; padding: 4px 14px; }
    .admin-table { font-size: 0.85rem; min-width: 600px; }
    .admin-table th, .admin-table td { padding: 10px 8px; }
}
@media (max-width: 480px) {
    .admin-wrapper { padding: 14px 8px 20px; border-radius: 16px; }
    .admin-table { font-size: 0.75rem; min-width: 480px; }
    .admin-table th, .admin-table td { padding: 8px 5px; }
    .admin-table .rating-stars { font-size: 0.9rem; }
    .admin-head h2 { font-size: 1.1rem; }
}

/* حالت تاریک برای فرم و ادمین */
body.dark-mode .survey-wrapper,
body.dark-mode .admin-wrapper {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0e0e0;
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #ff6b00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.20);
}
body.dark-mode .stars .star {
    color: #555;
}
body.dark-mode .stars .star.active,
body.dark-mode .stars .star:hover,
body.dark-mode .stars .star:hover~.star {
    color: #ff6b00;
}
body.dark-mode .success-msg {
    background: rgba(255, 107, 0, 0.12);
    border-color: #ff6b00;
}
body.dark-mode .survey-logo-wrap img {
    background: #1e1e1e;
}
body.dark-mode .admin-table th {
    background: rgba(0, 0, 0, 0.4);
}
body.dark-mode .admin-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
body.dark-mode .admin-table tr:hover td {
    background: rgba(255, 107, 0, 0.08);
}