/**
 * DASS-21 Frontend Styles
 * Color theme: Cyan/Teal (#0891B2 / #06B6D4)
 */

/* ===== Container ===== */
.dass-container { max-width: 700px; margin: 30px auto; padding: 0 15px; font-family: "Vazirmatn", "Tahoma", sans-serif; direction: rtl; text-align: right; }

/* ===== Intro Box ===== */
.dass-intro-box { background: #fff; border-radius: 16px; padding: 30px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.dass-intro-header { text-align: center; margin-bottom: 20px; }
.dass-intro-icon { margin-bottom: 12px; }
.dass-intro-title { font-size: 22px; font-weight: 800; color: #0891B2; margin: 0; }
.dass-intro-content { margin-bottom: 20px; }
.dass-intro-desc { font-size: 14px; line-height: 2; color: #555; margin-bottom: 16px; text-align: justify; }
.dass-intro-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dass-info-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #ECFEFF; border-radius: 8px; }
.dass-info-icon { font-size: 18px; }
.dass-info-text { font-size: 12px; }
.dass-info-text strong { display: block; color: #0891B2; font-size: 11px; margin-bottom: 2px; }
.dass-intro-price { text-align: center; padding: 12px; background: #ECFEFF; border-radius: 10px; margin-bottom: 14px; }
.dass-intro-price.dass-free { background: #F0FDF4; }
.dass-price-label { font-size: 13px; color: #888; }
.dass-price-value { font-size: 18px; font-weight: 700; color: #0891B2; }
.dass-intro-price.dass-free .dass-price-value { color: #10B981; }
.dass-intro-note { padding: 10px 14px; background: #FFF7ED; border-radius: 8px; border: 1px solid #FED7AA; font-size: 12px; line-height: 2; color: #92400E; }
.dass-intro-actions { display: flex; gap: 12px; justify-content: center; }

/* ===== Buttons ===== */
.dass-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 10px; font-family: "Vazirmatn", "Tahoma", sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all 0.3s ease; }
.dass-btn-primary { background: linear-gradient(135deg, #0891B2 0%, #0e7490 100%); color: #fff; box-shadow: 0 4px 14px rgba(8,145,178,0.35); }
.dass-btn-primary:hover { box-shadow: 0 6px 20px rgba(8,145,178,0.5); transform: translateY(-1px); }
.dass-btn-secondary { background: #fff; color: #0891B2; border: 2px solid #0891B2; }
.dass-btn-secondary:hover { background: #ECFEFF; }
.dass-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== Test Box ===== */
.dass-test-box { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.dass-test-header { text-align: center; margin-bottom: 20px; }
.dass-test-header h3 { color: #0891B2; font-size: 18px; margin-bottom: 12px; }
.dass-progress-bar-container { background: #E5E7EB; border-radius: 8px; height: 8px; overflow: hidden; margin-bottom: 8px; }
.dass-progress-bar { height: 100%; background: linear-gradient(90deg, #06B6D4, #0891B2); border-radius: 8px; transition: width 0.4s ease; }
.dass-progress-text { font-size: 12px; color: #888; }

/* ===== Question Items ===== */
.dass-question-item { animation: dassFadeIn 0.3s ease; }
@keyframes dassFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.dass-question-number { font-size: 12px; color: #0891B2; font-weight: 600; margin-bottom: 8px; }
.dass-question-text { font-size: 16px; font-weight: 600; line-height: 2; margin-bottom: 16px; color: #333; }

/* ===== Options ===== */
.dass-question-options { display: flex; flex-direction: column; gap: 8px; }
.dass-option-label { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 2px solid #E5E7EB; border-radius: 10px; cursor: pointer; transition: all 0.25s ease; }
.dass-option-label:hover { border-color: #0891B2; background: #ECFEFF; }
.dass-option-label.selected { border-color: #0891B2; background: #ECFEFF; }
.dass-radio-input { display: none; }
.dass-option-indicator { width: 20px; height: 20px; border: 2px solid #D1D5DB; border-radius: 50%; flex-shrink: 0; transition: all 0.25s ease; position: relative; }
.dass-option-label.selected .dass-option-indicator { border-color: #0891B2; background: #0891B2; }
.dass-option-label.selected .dass-option-indicator::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.dass-option-text { font-size: 14px; font-weight: 500; }

/* ===== Navigation ===== */
.dass-test-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.dass-btn-nav { min-width: 120px; }

/* ===== Completion ===== */
.dass-completion-box { text-align: center; padding: 30px 20px; }
.dass-completion-icon { font-size: 48px; color: #10B981; margin-bottom: 12px; }
.dass-completion-box h3 { color: #0891B2; font-size: 18px; margin-bottom: 8px; }
.dass-completion-box p { font-size: 13px; color: #666; line-height: 2; }

/* ===== Pulse Animation ===== */
.dass-pulse { animation: dassPulse 2s infinite; }
@keyframes dassPulse { 0% { box-shadow: 0 0 0 0 rgba(8,145,178,0.4); } 70% { box-shadow: 0 0 0 12px rgba(8,145,178,0); } 100% { box-shadow: 0 0 0 0 rgba(8,145,178,0); } }

/* ===== Submit Mode ===== */
.dass-btn-converted-submit { min-width: 200px; background: linear-gradient(135deg, #0891B2 0%, #0e7490 100%); color: #fff; }
.dass-nav-submit-mode { justify-content: center; }

/* ===== Popup ===== */
.dass-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dass-popup-box { background: #fff; border-radius: 16px; max-width: 480px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
.dass-popup-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #E5E7EB; }
.dass-popup-header h3 { font-size: 16px; color: #0891B2; margin: 0; }
.dass-popup-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #888; }
.dass-popup-content { padding: 20px; overflow-y: auto; flex: 1; }
.dass-popup-note { font-size: 12px; line-height: 2; color: #666; margin-bottom: 16px; }
.dass-popup-form { display: flex; flex-direction: column; gap: 14px; }
.dass-form-group { display: flex; flex-direction: column; gap: 4px; }
.dass-form-group label { font-size: 13px; font-weight: 600; color: #555; }
.dass-form-group input[type="text"],
.dass-form-group input[type="number"],
.dass-form-group input[type="tel"] { padding: 10px 12px; border: 1px solid #D1D5DB; border-radius: 8px; font-family: "Vazirmatn", "Tahoma", sans-serif; font-size: 14px; }
.dass-gender-group { display: flex; gap: 16px; }
.dass-gender-label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.dass-popup-warning { padding: 10px 14px; background: #FEF3C7; border-radius: 8px; font-size: 11px; line-height: 2; color: #92400E; margin-top: 14px; }
.dass-popup-actions { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid #E5E7EB; }

/* ===== Auth Box ===== */
.dass-auth-box { background: #fff; border-radius: 16px; padding: 30px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center; }
.dass-auth-header { margin-bottom: 20px; }
.dass-auth-icon { margin-bottom: 12px; }
.dass-auth-header h3 { color: #0891B2; font-size: 18px; margin-bottom: 8px; }
.dass-auth-header p { font-size: 13px; color: #666; line-height: 2; }
.dass-auth-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.dass-input { padding: 10px 14px; border: 1px solid #D1D5DB; border-radius: 8px; font-family: "Vazirmatn", "Tahoma", sans-serif; font-size: 14px; flex: 1; }
.dass-auth-result { margin-top: 20px; }
.dass-auth-success { padding: 16px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; text-align: right; }
.dass-auth-success h4 { color: #10B981; margin-bottom: 10px; text-align: center; }
.dass-auth-detail { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #D1FAE5; font-size: 13px; }
.dass-auth-detail-label { color: #888; }
.dass-auth-detail-value { color: #333; font-weight: 500; }
.dass-auth-error { padding: 12px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; color: #DC2626; font-size: 13px; }

/* ===== Error/Success Boxes ===== */
.dass-error-box { background: #fff; border-radius: 16px; padding: 30px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center; }
.dass-error-box h3 { color: #DC2626; margin-bottom: 8px; }
.dass-error-box p { color: #666; font-size: 13px; }
.dass-success-box { background: #fff; border-radius: 16px; padding: 30px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center; }
.dass-success-box h3 { color: #10B981; margin-bottom: 8px; }
.dass-success-box p { color: #666; font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .dass-intro-info-grid { grid-template-columns: 1fr; }
    .dass-intro-actions { flex-direction: column; }
    .dass-btn { width: 100%; }
    .dass-scores-grid { grid-template-columns: 1fr; }
    .dass-question-text { font-size: 14px; }
    .dass-option-label { padding: 10px 12px; }
}
