/**
 * Survey Modal Styles
 * Modal hiển thị form khảo sát trước khi xem eMagazine
 */

/* Overlay backdrop */
.survey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal container */
.survey-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.survey-modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #eee;
}

.survey-modal-header h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #222;
    font-weight: 700;
}

.survey-modal-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.survey-modal-body {
    padding: 20px 28px 24px;
}

/* Survey type badge */
.survey-type-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Choices list */
.survey-choices {
    list-style: none;
    padding: 0;
    margin: 0;
}

.survey-choices li {
    margin-bottom: 8px;
}

.survey-choice-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.survey-choice-item:hover {
    border-color: #1976d2;
    background: #f5f9ff;
}

.survey-choice-item.selected {
    border-color: #1976d2;
    background: #e3f2fd;
}

.survey-choice-item input[type="radio"],
.survey-choice-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #1976d2;
    flex-shrink: 0;
}

.survey-choice-item label {
    cursor: pointer;
    font-size: 15px;
    color: #333;
    flex-grow: 1;
    margin: 0;
}

/* Text input */
.survey-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.survey-text-input:focus {
    outline: none;
    border-color: #1976d2;
}

/* Selection counter for limited type */
.survey-counter {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    text-align: right;
}

.survey-counter.warning {
    font-weight: 600;
}

/* Submit button */
.survey-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 16px;
    font-family: inherit;
}

.survey-submit-btn:hover {
    background: #1565c0;
}

.survey-submit-btn:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

.survey-submit-btn.loading {
    position: relative;
    color: transparent;
}

.survey-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: survey-spin 0.8s linear infinite;
}

@keyframes survey-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.survey-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    display: none;
}

.survey-error.show {
    display: block;
}

.survey-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.survey-success h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.survey-success p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media only screen and (max-width: 1100px) and (orientation: portrait) {
    .survey-modal {
        zoom:1.5;
    }
}



/* .survey-modal-header {
    padding: 18px 20px 12px;
}

.survey-modal-header h2 {
    font-size: 18px;
}

.survey-modal-body {
    padding: 16px 20px 20px;
}

.survey-choice-item {
    padding: 10px 12px;
}

.survey-choice-item label {
    font-size: 14px;
} */
