.sg-contact-wrapper{max-width:800px;margin:40px auto;padding:0 20px}.sg-contact-form{padding:20px;background:linear-gradient(145deg,#fff,#f8fafc);border:1px solid rgba(0,0,0,.03);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.1);color:#1e293b}.sg-contact-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:30px;flex-wrap:wrap;gap:20px}.header-content{display:flex;align-items:center;gap:15px}.contact-icon{width:64px;height:64px;color:#3b82f6;transition:transform .3s;flex-shrink:0}.contact-icon:hover{transform:scale(1.1)}.header-text{text-align:left}.header-text h1{margin:0;font-size:32px;font-weight:700;color:#1e293b;letter-spacing:-.8px;text-transform:uppercase}.header-text .subtitle{margin:10px 0 0;font-size:16px;color:#64748b}.header-actions{display:flex;gap:10px}.history-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:linear-gradient(135deg,#10b981 0,#059669 100%);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:.3s;position:relative}.history-btn:hover{transform:translateY(-2px);box-shadow:0 4px 15px rgba(16,185,129,.4)}.history-btn svg{width:18px;height:18px}.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;font-size:12px;font-weight:700;margin-left:8px;transition:.3s}.unread-badge.has-unread{background:#dc2626;color:#fff;animation:2s infinite pulse}.unread-badge.no-unread{background:#94a3b8;color:#fff;animation:none}@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.1)}}.login-prompt-banner{display:flex;align-items:center;gap:15px;padding:18px 22px;background:linear-gradient(135deg,#fef3c7 0,#fde68a 100%);border:1px solid #f59e0b;border-radius:12px;margin-bottom:25px;box-shadow:0 4px 15px rgba(245,158,11,.15)}.login-prompt-icon{color:#d97706;flex-shrink:0}.login-prompt-content{flex:1}.login-prompt-content p{margin:0 0 5px;font-size:14px;color:#92400e;line-height:1.5}.login-prompt-content p:last-child{margin-bottom:0}.login-prompt-actions{display:flex;gap:10px;flex-shrink:0}.login-prompt-actions .btn-login,.login-prompt-actions .btn-register{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;transition:.3s}.login-prompt-actions .btn-login{background:linear-gradient(135deg,#2563eb 0,#1d4ed8 100%);color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.3)}.login-prompt-actions .btn-login:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(37,99,235,.4)}.login-prompt-actions .btn-register{background:#fff;color:#2563eb;border:2px solid #2563eb}.login-prompt-actions .btn-register:hover{background:#eff6ff}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:0}.form-group{position:relative;margin-bottom:28px}.form-group label{display:block;margin-bottom:10px;font-size:15px;font-weight:600;color:#1e293b;text-transform:uppercase}.required{color:#dc2626;font-weight:700}.form-group input[type=email],.form-group input[type=text],.form-group textarea{width:100%;padding:16px;border:2px solid #e2e8f0;border-radius:10px;font-size:16px;color:#1e293b;background:#fff;transition:.3s;box-sizing:border-box}.form-group input:focus,.form-group textarea:focus{outline:0;border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.15)}.form-group input.invalid,.form-group textarea.invalid{border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.15)}.form-group textarea{min-height:140px;resize:vertical}.field-error{display:none;color:#dc2626;font-size:14px;margin-top:8px;font-weight:500}.word-count-info{margin-top:12px;padding:12px 16px;background:#f1f5f9;border-radius:8px;font-size:14px;border:1px solid #e2e8f0}.count-display{display:flex;gap:20px;margin-bottom:8px;flex-wrap:wrap}.char-count,.word-count{color:#000;font-weight:500}.char-count strong,.word-count strong{color:#1e293b;font-weight:700;font-size:16px}.char-count.valid strong,.word-count.valid strong{color:#16a34a}.char-count.warning strong,.word-count.warning strong{color:#f59e0b}.char-count.error strong,.word-count.error strong{color:#dc2626}.count-limits{color:#000;font-size:13px;margin-top:4px}.form-actions{text-align:center;margin-top:30px}.submit-btn{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;padding:16px 36px;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:10px;transition:.3s}.submit-btn:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 6px 20px rgba(59,130,246,.4);transform:translateY(-2px)}.submit-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.submit-btn .icon{width:22px;height:20px}@keyframes fly{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}.submit-btn:hover .icon{animation:.6s ease-in-out fly}.spinner{display:inline-block;width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:.6s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.form-messages{margin-top:20px}.error-message,.success-message{padding:16px 20px;border-radius:10px;margin-bottom:15px;font-size:15px;font-weight:500;display:none}.success-message{background:#d1fae5;color:#065f46;border:1px solid #34d399}.error-message{background:#fee2e2;color:#991b1b;border:1px solid #f87171}.form-notice{background:#eff6ff;padding:16px 20px;margin-top:20px;border-radius:10px;color:#1e40af;font-size:15px;border:1px solid #dbeafe;box-shadow:0 4px 12px rgba(0,0,0,.05);display:flex;align-items:flex-start;gap:12px}.form-notice .icon{width:20px;height:20px;flex-shrink:0;color:#3b82f6;margin-top:2px}.form-notice p{margin:0;line-height:1.5}.message-status-container{margin-top:30px}.message-status-wrapper{margin-top:20px}.message-status.sent{display:flex;align-items:flex-start;gap:15px;background:#d1fae5;padding:20px;border-radius:12px;border:1px solid #a7f3d0}.status-icon{width:40px;height:40px;background:#10b981;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.status-content h4{margin:0 0 8px;color:#065f46;font-size:16px}.status-content p{margin:0 0 5px;color:#047857;font-size:14px}.status-info{font-weight:600}.message-history-section{background:#fff;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,.1);margin-bottom:30px;overflow:hidden;border:1px solid rgba(0,0,0,.03)}.history-header{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:#fff}.history-header h2{margin:0;font-size:20px;color:#fff;font-weight:600}.close-history-btn{background:rgba(255,255,255,.2);border:none;padding:8px;border-radius:8px;cursor:pointer;color:#fff;transition:background .3s;display:flex;align-items:center;justify-content:center}.close-history-btn:hover{background:rgba(255,255,255,.3)}#message-history-content{padding:25px;max-height:600px;overflow-y:auto}.recent-messages-section{background:#f8fafc;border-radius:12px;padding:20px;margin-bottom:30px;border:1px solid #e2e8f0}.recent-messages-section h3{margin:0 0 15px;font-size:18px;color:#1e293b;font-weight:600}.recent-messages-wrapper{display:flex;flex-direction:column;gap:12px}.message-item{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:15px;transition:box-shadow .3s}.message-item:hover{box-shadow:0 4px 12px rgba(0,0,0,.08)}.message-item.replied{border-left:3px solid #10b981}.message-item.pending,.message-item.unread{border-left:3px solid #f59e0b}.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.message-date{display:flex;align-items:center;gap:5px;font-size:13px;color:#64748b}.message-date svg{width:14px;height:14px}.message-status-badge{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600}.status-replied{background:#d1fae5;color:#065f46}.status-pending,.status-unread{background:#fef3c7;color:#92400e}.message-preview,.reply-preview{font-size:14px;color:#475569;margin-bottom:8px}.reply-preview{background:#eff6ff;padding:10px;border-radius:6px;border-left:3px solid #3b82f6}.view-all-btn{width:100%;padding:12px;background:0 0;border:2px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:14px;font-weight:600;cursor:pointer;transition:.3s}.view-all-btn:hover{border-color:#667eea;color:#667eea;background:#f8fafc}.full-message-history{display:flex;flex-direction:column;gap:20px}.history-message-item{background:#f8fafc;border-radius:12px;padding:20px;border:1px solid #e2e8f0}.history-message-item.replied{border-left:4px solid #10b981}.history-message-item.unread{border-left:4px solid #f59e0b}.history-message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}.message-info{display:flex;align-items:center;gap:12px}.message-number{background:#667eea;color:#fff;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:700}.message-subject{font-size:14px;color:#475569;margin-bottom:15px;padding:10px;background:#fff;border-radius:6px;border:1px solid #e2e8f0}.message-conversation{display:flex;flex-direction:column;gap:15px}.conversation-item{display:flex;gap:12px}.conversation-avatar{width:40px;height:40px;background:#e2e8f0;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#64748b}.conversation-avatar svg{width:20px;height:20px}.conversation-avatar.admin-avatar{background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:#fff}.conversation-content{flex:1;background:#fff;padding:15px;border-radius:12px;border:1px solid #e2e8f0}.conversation-content.admin-content{background:#eff6ff;border-color:#bfdbfe}.conversation-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.conversation-header strong{color:#1e293b;font-size:14px}.conversation-time{font-size:12px;color:#94a3b8}.conversation-text{color:#475569;font-size:14px;line-height:1.6}.awaiting-reply-notice{display:flex;align-items:center;gap:8px;padding:12px 15px;background:#fef3c7;border-radius:8px;color:#92400e;font-size:13px}.awaiting-reply-notice svg{width:16px;height:16px;flex-shrink:0}.user-reply-section{margin-top:15px}.reply-to-admin-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;color:#475569;font-size:14px;font-weight:500;cursor:pointer;transition:.3s}.reply-to-admin-btn:hover{background:#e2e8f0;color:#1e293b}.reply-to-admin-btn svg{width:16px;height:16px}.user-reply-form{margin-top:15px;padding:20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.user-reply-textarea{width:100%;min-height:100px;padding:12px;border:2px solid #e2e8f0;border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;transition:border-color .3s;box-sizing:border-box}.user-reply-textarea:focus{outline:0;border-color:#667eea}.reply-word-count{margin-top:10px;font-size:13px;color:#64748b}.reply-limits{color:#94a3b8;margin-left:5px}.reply-form-actions{display:flex;gap:10px;margin-top:15px}.send-user-reply-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:.3s}.send-user-reply-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px rgba(102,126,234,.4)}.send-user-reply-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.send-user-reply-btn svg{width:16px;height:16px}.cancel-user-reply-btn{padding:10px 20px;background:0 0;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;font-size:14px;cursor:pointer;transition:.3s}.cancel-user-reply-btn:hover{background:#f1f5f9;color:#1e293b}.reply-success{display:flex;align-items:center;gap:10px;padding:15px;background:#d1fae5;color:#065f46;border-radius:8px;font-weight:500}.reply-success svg{width:20px;height:20px;flex-shrink:0}#captcha-overlay,#reply-captcha-overlay,.captcha-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);z-index:9998;display:none}#captcha-popup,#reply-captcha-popup,.captcha-popup{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:20px;padding:0;max-width:420px;width:90%;z-index:9999;box-shadow:0 25px 60px rgba(0,0,0,.3);overflow:hidden;animation:.3s popupSlideIn;display:none}@keyframes popupSlideIn{from{opacity:0;transform:translate(-50%,-48%)}to{opacity:1;transform:translate(-50%,-50%)}}.captcha-content{padding:35px;text-align:center;position:relative}.close-captcha-popup{position:absolute;top:15px;right:15px;background:0 0;border:none;cursor:pointer;color:#9ca3af;padding:8px;border-radius:50%;transition:.3s;display:flex;align-items:center;justify-content:center}.close-captcha-popup:hover{background:#f3f4f6;color:#374151}.captcha-header{margin-bottom:25px}.captcha-header svg{color:#667eea;margin-bottom:15px}.captcha-header h3{margin:0 0 10px;font-size:22px;color:#111827;font-weight:700}.captcha-header p{margin:0;font-size:14px;color:#6b7280;line-height:1.5}#captcha-container,#reply-captcha-container,.captcha-container{display:flex;justify-content:center;min-height:78px;padding:10px 0}#login-prompt-overlay,.login-prompt-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);z-index:9998;display:none}#login-prompt-popup,.login-prompt-popup{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:20px;padding:0;max-width:480px;width:90%;z-index:9999;box-shadow:0 25px 60px rgba(0,0,0,.3);overflow:hidden;animation:.3s popupSlideIn;display:none}.login-prompt-popup-content{padding:35px;text-align:center;position:relative}.close-login-prompt{position:absolute;top:15px;right:15px;background:0 0;border:none;cursor:pointer;color:#9ca3af;padding:8px;border-radius:50%;transition:.3s;display:flex;align-items:center;justify-content:center}.close-login-prompt:hover{background:#f3f4f6;color:#374151}.login-prompt-popup-icon{width:90px;height:90px;margin:0 auto 25px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 10px 30px rgba(102,126,234,.3)}.login-prompt-popup h3{margin:0 0 25px;font-size:24px;color:#111827;font-weight:700}.login-prompt-popup-message{background:linear-gradient(135deg,#f0fdf4 0,#dcfce7 100%);border:1px solid #86efac;border-radius:14px;padding:20px;margin-bottom:25px}.login-prompt-popup-message p{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:15px;color:#166534;text-align:left}.login-prompt-popup-message p:last-child{margin-bottom:0}.login-prompt-popup-message .success-text svg{color:#22c55e;flex-shrink:0}.login-prompt-popup-message .email-check-text svg{color:#2563eb;flex-shrink:0}.login-prompt-popup-divider{position:relative;margin:25px 0;text-align:center}.login-prompt-popup-divider::before{content:'';position:absolute;top:50%;left:0;right:0;height:1px;background:#e5e7eb}.login-prompt-popup-divider span{position:relative;background:#fff;padding:0 20px;font-size:14px;color:#6b7280;font-weight:500}.login-prompt-popup-note{font-size:14px;color:#4b5563;margin-bottom:25px;line-height:1.6}.login-prompt-popup-buttons{display:flex;gap:15px;margin-bottom:20px}.login-prompt-popup-buttons a{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 24px;border-radius:10px;font-size:15px;font-weight:600;text-decoration:none;transition:.3s}.btn-popup-login{background:linear-gradient(135deg,#667eea 0,#764ba2 100%);color:#fff;box-shadow:0 4px 15px rgba(102,126,234,.3)}.btn-popup-login:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(102,126,234,.4)}.btn-popup-register{background:#fff;color:#667eea;border:2px solid #667eea}.btn-popup-register:hover{background:#667eea;color:#fff}.btn-continue-guest{width:100%;padding:12px;background:0 0;border:none;color:#6b7280;font-size:14px;cursor:pointer;transition:.3s}.btn-continue-guest:hover{color:#111827;text-decoration:underline}.sg-contact-form.loading{opacity:.7;pointer-events:none;position:relative}.sg-contact-form.loading::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.5);border-radius:16px;z-index:10}.loading-spinner{text-align:center;padding:40px;color:#666}.loading-spinner .spinner{border-color:rgba(0,0,0,.2);border-top-color:#667eea;width:24px;height:24px;margin:0 auto 15px}#website{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}.button-link-delete{color:#dc2626;text-decoration:none;border:none;background:0 0;cursor:pointer;padding:8px 16px;font-size:14px;font-weight:600;transition:.3s;border-radius:6px}.button-link-delete:hover{background:#fee2e2;color:#991b1b}#load-more-messages{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;padding:14px 32px;border:none;border-radius:10px;font-size:15px;font-weight:600;cursor:pointer;display:inline-block;margin:20px auto;transition:.3s}#load-more-messages:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 4px 15px rgba(59,130,246,.4);transform:translateY(-2px)}.no-messages{text-align:center;padding:40px;color:#64748b;font-size:15px}@keyframes footerPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(220,38,38,.4)}50%{transform:scale(1.05);box-shadow:0 0 0 6px rgba(220,38,38,0)}}html[data-theme="dark"] .sg-contact-form{background:linear-gradient(145deg,#1f2937,#111827);border:1px solid rgba(255,255,255,.05);box-shadow:0 12px 40px rgba(0,0,0,.3);color:#d1d5db}html[data-theme="dark"] .form-group input,html[data-theme="dark"] .form-group textarea{background:#2d3748;border-color:#4b5563;color:#d1d5db}html[data-theme="dark"] .form-group input:focus,html[data-theme="dark"] .form-group textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.2)}html[data-theme="dark"] .form-group input.invalid,html[data-theme="dark"] .form-group textarea.invalid{border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.2)}html[data-theme="dark"] .header-text h1{color:#f3f4f6}html[data-theme="dark"] .header-text .subtitle{color:#9ca3af}html[data-theme="dark"] .form-group label{color:#fff}html[data-theme="dark"] .field-error{color:#fca5a5}html[data-theme="dark"] .word-count-info{background:#1f2937;border-color:#374151}html[data-theme="dark"] .char-count,html[data-theme="dark"] .word-count{color:#9ca3af}html[data-theme="dark"] .char-count strong,html[data-theme="dark"] .word-count strong{color:#d1d5db}html[data-theme="dark"] .char-count.valid strong,html[data-theme="dark"] .word-count.valid strong{color:#34d399}html[data-theme="dark"] .char-count.warning strong,html[data-theme="dark"] .word-count.warning strong{color:#fbbf24}html[data-theme="dark"] .char-count.error strong,html[data-theme="dark"] .word-count.error strong{color:#f87171}html[data-theme="dark"] .count-limits{color:#6b7280}html[data-theme="dark"] .form-notice{background:#1e3a5f;border-color:#1e40af;color:#93c5fd}html[data-theme="dark"] .form-notice .icon{color:#60a5fa}html[data-theme="dark"] .success-message{background:#064e3b;color:#6ee7b7;border-color:#059669}html[data-theme="dark"] .error-message{background:#7f1d1d;color:#fca5a5;border-color:#dc2626}html[data-theme="dark"] .login-prompt-banner{background:linear-gradient(135deg,#422006 0,#713f12 100%);border-color:#92400e}html[data-theme="dark"] .login-prompt-content p{color:#fcd34d}html[data-theme="dark"] .message-history-section{background:#1f2937;box-shadow:0 8px 30px rgba(0,0,0,.3);border-color:#374151}html[data-theme="dark"] .history-header{background:linear-gradient(135deg,#4c1d95 0,#6d28d9 100%)}html[data-theme="dark"] #message-history-content,html[data-theme="dark"] .full-message-history{background:#1f2937}html[data-theme="dark"] .history-message-item{background:#111827;border-color:#374151}html[data-theme="dark"] .history-message-item.replied{border-left-color:#10b981}html[data-theme="dark"] .history-message-item.unread{border-left-color:#f59e0b}html[data-theme="dark"] .history-message-header{border-bottom-color:#374151}html[data-theme="dark"] .message-number{background:#6d28d9}html[data-theme="dark"] .conversation-time,html[data-theme="dark"] .message-date{color:#9ca3af}html[data-theme="dark"] .message-subject{background:#1f2937;color:#d1d5db;border-color:#374151}html[data-theme="dark"] .conversation-avatar{background:#374151;color:#9ca3af}html[data-theme="dark"] .conversation-avatar.admin-avatar{background:linear-gradient(135deg,#4c1d95 0,#6d28d9 100%);color:#fff}html[data-theme="dark"] .conversation-content{background:#1f2937;border-color:#374151}html[data-theme="dark"] .conversation-content.admin-content{background:#1e1b4b;border-color:#4c1d95}html[data-theme="dark"] .conversation-header strong{color:#f3f4f6}html[data-theme="dark"] .conversation-text{color:#d1d5db}html[data-theme="dark"] .awaiting-reply-notice{background:#422006;color:#fbbf24}html[data-theme="dark"] .recent-messages-section{background:#111827;border-color:#374151}html[data-theme="dark"] .recent-messages-section h3{color:#f3f4f6}html[data-theme="dark"] .message-item{background:#1f2937;border-color:#374151}html[data-theme="dark"] .message-item.replied{border-left-color:#10b981}html[data-theme="dark"] .message-item.pending,html[data-theme="dark"] .message-item.unread{border-left-color:#f59e0b}html[data-theme="dark"] .message-date{color:#9ca3af}html[data-theme="dark"] .message-preview{color:#d1d5db}html[data-theme="dark"] .reply-preview{background:#1e1b4b;border-color:#4c1d95;color:#c4b5fd}html[data-theme="dark"] .view-all-btn{border-color:#374151;color:#9ca3af}html[data-theme="dark"] .view-all-btn:hover{border-color:#6d28d9;color:#a78bfa;background:#1f2937}html[data-theme="dark"] .status-replied{background:#064e3b;color:#6ee7b7}html[data-theme="dark"] .status-pending,html[data-theme="dark"] .status-unread{background:#78350f;color:#fde68a}html[data-theme="dark"] .reply-to-admin-btn{background:#374151;border-color:#4b5563;color:#d1d5db}html[data-theme="dark"] .reply-to-admin-btn:hover{background:#4b5563;color:#f3f4f6}html[data-theme="dark"] .user-reply-form{background:#111827;border-color:#374151}html[data-theme="dark"] .user-reply-textarea{background:#1f2937;border-color:#374151;color:#f3f4f6}html[data-theme="dark"] .user-reply-textarea:focus{border-color:#6d28d9}html[data-theme="dark"] .reply-word-count{color:#9ca3af}html[data-theme="dark"] .reply-limits{color:#6b7280}html[data-theme="dark"] .cancel-user-reply-btn{border-color:#4b5563;color:#9ca3af}html[data-theme="dark"] .cancel-user-reply-btn:hover{background:#374151;color:#f3f4f6}html[data-theme="dark"] .reply-success{background:#064e3b;color:#6ee7b7}html[data-theme="dark"] .history-btn{background:linear-gradient(135deg,#059669 0,#047857 100%)}html[data-theme="dark"] .close-history-btn{background:rgba(255,255,255,.1)}html[data-theme="dark"] .close-history-btn:hover{background:rgba(255,255,255,.2)}html[data-theme="dark"] .loading-spinner{color:#9ca3af}html[data-theme="dark"] .loading-spinner .spinner{border-color:rgba(255,255,255,.2);border-top-color:#a78bfa}html[data-theme="dark"] .no-messages{color:#9ca3af}html[data-theme="dark"] #captcha-popup,html[data-theme="dark"] #reply-captcha-popup,html[data-theme="dark"] .captcha-popup{background:#1f2937;border:1px solid rgba(255,255,255,.05);box-shadow:0 12px 40px rgba(0,0,0,.3)}html[data-theme="dark"] .captcha-content h3,html[data-theme="dark"] .captcha-header h3{color:#f3f4f6}html[data-theme="dark"] .captcha-header p,html[data-theme="dark"] .close-captcha-popup{color:#9ca3af}html[data-theme="dark"] .close-captcha-popup:hover{background:#374151;color:#f9fafb}html[data-theme="dark"] #login-prompt-popup,html[data-theme="dark"] .login-prompt-popup{background:#1f2937}html[data-theme="dark"] .login-prompt-popup h3{color:#f9fafb}html[data-theme="dark"] .login-prompt-popup-message{background:linear-gradient(135deg,#064e3b 0,#065f46 100%);border-color:#059669}html[data-theme="dark"] .login-prompt-popup-message p{color:#a7f3d0}html[data-theme="dark"] .login-prompt-popup-divider span{background:#1f2937;color:#9ca3af}html[data-theme="dark"] .login-prompt-popup-divider::before{background:#374151}html[data-theme="dark"] .close-login-prompt,html[data-theme="dark"] .login-prompt-popup-note{color:#9ca3af}html[data-theme="dark"] .close-login-prompt:hover{background:#374151;color:#f9fafb}html[data-theme="dark"] .btn-continue-guest{color:#9ca3af}html[data-theme="dark"] .btn-continue-guest:hover{color:#f9fafb}html[data-theme="dark"] .message-status.sent{background:#064e3b;border-color:#059669}html[data-theme="dark"] .status-icon{background:#10b981}html[data-theme="dark"] .status-content h4{color:#6ee7b7}html[data-theme="dark"] .status-content p{color:#a7f3d0}html[data-theme="dark"] .footer-reply-stats.has-unread{color:#f87171}html[data-theme="dark"] .footer-new-badge{background:linear-gradient(135deg,#ef4444 0,#dc2626 100%)}html[data-theme="dark"] .footer-unread-badge{background:#ef4444}@media (max-width:768px){.sg-contact-wrapper{padding:0 15px}.sg-contact-header{flex-direction:column;align-items:stretch}.header-content{flex-direction:column;text-align:center}.header-text{text-align:center}.header-actions{justify-content:center}.sg-contact-form{padding:20px 16px}.header-text h1{font-size:24px}.header-text .subtitle{font-size:14px}.contact-icon{width:50px;height:50px}.form-row{grid-template-columns:1fr}.count-display{flex-direction:column;gap:8px}.submit-btn{width:100%;justify-content:center}.message-status.sent{flex-direction:column;text-align:center}.history-header{flex-direction:column;gap:15px;text-align:center}.history-message-header,.message-header{flex-direction:column;align-items:flex-start;gap:10px}.conversation-item{flex-direction:column}.conversation-avatar{width:32px;height:32px}.awaiting-reply-notice,.user-reply-section{margin-left:0}.reply-form-actions{flex-direction:column}.cancel-user-reply-btn,.history-btn,.send-user-reply-btn{width:100%;justify-content:center}.login-prompt-banner{flex-direction:column;text-align:center}.login-prompt-actions{flex-direction:column;width:100%}.login-prompt-actions .btn-login,.login-prompt-actions .btn-register{width:100%;text-align:center}#captcha-popup,#login-prompt-popup,#reply-captcha-popup,.captcha-popup,.login-prompt-popup{width:95%;max-width:none}.captcha-content,.login-prompt-popup-content{padding:25px}.login-prompt-popup-buttons{flex-direction:column}}@media (max-width:480px){.header-text h1{font-size:20px}.form-group input,.form-group textarea{font-size:16px;padding:14px}.submit-btn{padding:14px 28px;font-size:15px}.history-header{padding:15px 20px}.history-header h2{font-size:18px}#message-history-content,.history-message-item,.user-reply-form{padding:15px}.login-prompt-popup-icon{width:70px;height:70px}.login-prompt-popup h3{font-size:20px}}
/* Theme dark mode replacement */
html[data-theme="dark"] .sg-contact-form,
html[data-theme="dark"] .message-history-section,
html[data-theme="dark"] .recent-messages-section,
html[data-theme="dark"] .captcha-popup,
html[data-theme="dark"] #captcha-popup,
html[data-theme="dark"] #reply-captcha-popup,
html[data-theme="dark"] .login-prompt-popup,
html[data-theme="dark"] #login-prompt-popup,
html[data-theme="dark"] .history-message-item,
html[data-theme="dark"] .message-item,
html[data-theme="dark"] .user-reply-form {
    background: var(--gsm-surface) !important;
    border-color: var(--gsm-line) !important;
    color: var(--gsm-text) !important;
    box-shadow: var(--gsm-shadow) !important;
}

html[data-theme="dark"] .header-text h1,
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .word-count strong,
html[data-theme="dark"] .char-count strong,
html[data-theme="dark"] .history-header h2,
html[data-theme="dark"] .recent-messages-section h3,
html[data-theme="dark"] .message-subject,
html[data-theme="dark"] .conversation-header strong,
html[data-theme="dark"] .captcha-content h3,
html[data-theme="dark"] .captcha-header h3,
html[data-theme="dark"] .login-prompt-popup h3 {
    color: var(--gsm-text) !important;
}

html[data-theme="dark"] .header-text .subtitle,
html[data-theme="dark"] .field-error,
html[data-theme="dark"] .word-count-info,
html[data-theme="dark"] .count-limits,
html[data-theme="dark"] .message-date,
html[data-theme="dark"] .conversation-time,
html[data-theme="dark"] .conversation-text,
html[data-theme="dark"] .message-preview,
html[data-theme="dark"] .reply-preview,
html[data-theme="dark"] .reply-word-count,
html[data-theme="dark"] .reply-limits,
html[data-theme="dark"] .captcha-header p,
html[data-theme="dark"] .login-prompt-popup-message {
    color: var(--gsm-muted) !important;
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .user-reply-textarea {
    background: var(--gsm-surface-2) !important;
    border-color: var(--gsm-line) !important;
    color: var(--gsm-text) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .form-group input::placeholder,
html[data-theme="dark"] .form-group textarea::placeholder,
html[data-theme="dark"] .user-reply-textarea::placeholder {
    color: var(--gsm-muted) !important;
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus,
html[data-theme="dark"] .user-reply-textarea:focus {
    background: var(--gsm-surface) !important;
    border-color: var(--gsm-primary) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18) !important;
    outline: none !important;
}

html[data-theme="dark"] .word-count-info,
html[data-theme="dark"] .form-notice,
html[data-theme="dark"] .awaiting-reply-notice,
html[data-theme="dark"] .no-messages {
    background: var(--gsm-surface-2) !important;
    border-color: var(--gsm-line) !important;
    color: var(--gsm-text) !important;
}

html[data-theme="dark"] .form-notice .icon,
html[data-theme="dark"] .contact-icon {
    color: var(--gsm-primary-strong) !important;
}

html[data-theme="dark"] .success-message,
html[data-theme="dark"] .reply-success,
html[data-theme="dark"] .status-replied,
html[data-theme="dark"] .history-message-item.replied,
html[data-theme="dark"] .message-item.replied {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.34) !important;
    color: #6ee7b7 !important;
}

html[data-theme="dark"] .error-message,
html[data-theme="dark"] .field-error,
html[data-theme="dark"] .form-group input.invalid,
html[data-theme="dark"] .form-group textarea.invalid {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.36) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .login-prompt-banner,
html[data-theme="dark"] .history-message-item.unread,
html[data-theme="dark"] .message-item.unread,
html[data-theme="dark"] .message-item.pending,
html[data-theme="dark"] .status-unread,
html[data-theme="dark"] .status-pending {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: rgba(245, 158, 11, 0.36) !important;
    color: #facc15 !important;
}

html[data-theme="dark"] .login-prompt-content p {
    color: #fde68a !important;
}

html[data-theme="dark"] .login-prompt-actions .btn-register,
html[data-theme="dark"] .view-all-btn,
html[data-theme="dark"] .cancel-user-reply-btn,
html[data-theme="dark"] .close-history-btn,
html[data-theme="dark"] .close-captcha-popup {
    background: var(--gsm-surface-2) !important;
    border-color: var(--gsm-line) !important;
    color: var(--gsm-text) !important;
}

html[data-theme="dark"] .login-prompt-actions .btn-register:hover,
html[data-theme="dark"] .view-all-btn:hover,
html[data-theme="dark"] .cancel-user-reply-btn:hover,
html[data-theme="dark"] .close-history-btn:hover,
html[data-theme="dark"] .close-captcha-popup:hover {
    background: rgba(96, 165, 250, 0.14) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    color: var(--gsm-primary-strong) !important;
}

html[data-theme="dark"] .conversation-content,
html[data-theme="dark"] .conversation-content.admin-content {
    background: var(--gsm-surface-2) !important;
    border-color: var(--gsm-line) !important;
    color: var(--gsm-text) !important;
}
