﻿body {
    background-color: #f5f6f8;
}

.survey-container {
    max-width: 800px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    direction: rtl;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.survey-header {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 30px;
    text-align: center;
}

    .survey-header h1 {
        margin: 0;
        font-size: 26px;
        font-weight: 600;
    }

.survey-body {
    padding: 50px 40px;
    text-align: center;
}

.survey-question {
    font-size: 20px;
    color: #333333;
    margin-bottom: 50px;
    line-height: 1.8;
    text-align: right;
}

.survey-button {
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    padding: 18px 60px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .survey-button:hover {
        background-color: #219150;
    }

.survey-form {
    text-align: right;
    margin: 0 auto 40px auto;
}

.survey-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.survey-label {
    text-align: right;
    min-width: 160px;
    font-size: 16px;
    color: #333333;
}

.survey-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d8dbe0;
    background: #f7f8fa;
    font-size: 16px;
    outline: none;
}

    .survey-input:read-only {
        color: #222;
    }

.survey-textbox {
    flex: 1;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d8dbe0;
    font-size: 16px;
    outline: none;
}

.survey-select {
    flex: 1;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d8dbe0;
    background-color: #ffffff;
    font-size: 16px;
    outline: none;
    cursor: pointer;
}

    .survey-select:focus {
        border-color: #27ae60;
    }

.survey-note {
    text-align: right;
    font-size: 14px;
    color: #666666;
    margin: 0px auto 30px auto;
    /*max-width: 560px;*/
    line-height: 1.8;
}

.survey-inline {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.survey-secondary-button {
    border: 1px solid #d8dbe0;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

    .survey-secondary-button:hover {
        background-color: #f2f4f7;
    }

.survey-input-editable {
    background: #ffffff;
    border-color: #27ae60;
}

.survey-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background-color: #fff7e6;
    border: 1px solid #f1c40f;
    border-radius: 8px;
    padding: 12px 14px;
    margin: -5px auto 25px auto;
    font-size: 14px;
    color: #555;
}

.survey-warning-icon {
    font-size: 18px;
    line-height: 1;
}

.survey-warning-title {
    font-weight: 600;
    color: #b58900;
    white-space: nowrap;
}

.survey-section-title {
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 auto 12px auto;
    max-width: 560px;
}

.survey-table-card {
    max-width: 560px;
    margin: 0 auto 28px auto;
    background-color: #f7f8fa;
    border: 1px solid #d8dbe0;
    border-radius: 10px;
    padding: 10px 12px;
}

.survey-table {
    width: 100%;
    border-collapse: collapse;
}

    .survey-table tr + tr td {
        border-top: 1px solid #e2e5ea;
    }

    .survey-table td {
        padding: 12px 10px;
        vertical-align: middle;
    }

.survey-td-key {
    width: 45%;
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    white-space: nowrap;
}

.survey-td-value {
    width: 55%;
    color: #333333;
    text-align: left; /* برای ایمیل و اعداد خواناتر است */
    direction: ltr; /* برای ایمیل/عدد */
}

.survey-sensitive {
    background-color: #fff1f1;
    border: 1px solid #f3c2c2;
    border-radius: 8px;
    padding: 12px 10px;
    margin-top: 10px;
}

    .survey-sensitive .survey-checkbox label {
        font-weight: 600;
        color: #a94442;
    }

.survey-checkbox input[type="checkbox"] {
    margin-left: 8px;
    transform: scale(1.2);
}

.survey-password-status {
    position: relative;
    padding-right: 32px;
    text-align: right;
    border-radius: 6px;
    font-weight: 500;
    margin-top: -10px;
}

    .survey-password-status.neutral {
        color: #555;
    }
    .survey-password-status.success {
        color: #2f7d32;
    }
    .survey-password-status.wrong {
        color: #d62020;
    }
    .survey-password-status.error {
        color: #a94442;
    }
    /* حالت موفق */
    .survey-password-status.success::after {
        content: "✔";
        color: #2f7d32;
        font-size: 18px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* حالت خطا */
    .survey-password-status.wrong::after {
        content: "✖";
        color: #d62020;
        font-size: 18px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }



.survey-layout-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* space between rows */
}

    .survey-layout-table td {
        vertical-align: middle;
        padding: 8px;
    }
