﻿/* ==================== QuickPOS Theme - Shared Style ==================== */
/* Matches www.quickpos-thailand.com design system */

:root { --primary: #2192FF; --primary-dark: #1a7ce0; --accent: #38E54D; --accent-dark: #16a34a; --dark: #0d1b2a; --navy: #1a3a5c; --footer-bg: #0a1220; }

*, *::before, *::after { box-sizing: border-box; }

body { font-family: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fbff; margin: 0; min-height: 100vh; color: #333; overflow-x: hidden; }

/* Navbar */ .qpos-navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(33,146,255,0.08); transition: background 0.3s, box-shadow 0.3s; }
.qpos-nav-link { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #444; text-decoration: none; transition: background 0.2s, color 0.2s; }
.qpos-nav-link:hover { background: rgba(33,146,255,0.1); color: var(--primary); }
.qpos-btn-contact { padding: 9px 22px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 4px 15px rgba(33,146,255,0.35); transition: transform 0.2s; white-space: nowrap; }
.qpos-btn-contact:hover { transform: translateY(-1px); color: #fff; }

/* Page Header */ .page-header { background: linear-gradient(135deg, #f0f7ff 0%, #e8f8f0 100%); padding: 120px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(33,146,255,0.12) 0%, transparent 70%); }
.section-tag { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; padding: 6px 16px; border-radius: 30px; }
.section-tag.blue { color: var(--primary); background: rgba(33,146,255,0.1); }
.section-tag.green { color: var(--accent-dark); background: rgba(56,229,77,0.1); }
.hero-title { font-size: clamp(28px, 3vw, 42px); font-weight: 800; color: var(--dark); line-height: 1.2; letter-spacing: -0.5px; }
.hero-desc { font-size: 16px; color: #555; line-height: 1.7; font-weight: 300; max-width: 500px; margin: 0 auto; }

/* Main */ .page-section { padding: 60px 0; background: #f8fbff; }
.page-container { max-width: 560px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }

/* Step Indicator */ .step-indicator { display: flex; align-items: center; justify-content: center; padding: 12px 20px; background: rgba(255,255,255,0.95); border-radius: 14px; box-shadow: 0 4px 20px rgba(33,146,255,0.08); border: 1.5px solid rgba(33,146,255,0.1); }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-number { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; background: #ddd; color: #999; transition: all 0.3s; }
.step.active .step-number { background: var(--primary); color: white; }
.step.completed .step-number { background: var(--primary-dark); color: white; }
.step-label { font-size: 12px; color: #999; font-weight: 500; }
.step.active .step-label { color: var(--primary); font-weight: 600; }
.step.completed .step-label { color: var(--primary-dark); }
.step-connector { width: 40px; height: 2px; background: #ddd; margin: 0 8px; margin-bottom: 18px; transition: background 0.3s; }
.step-connector.active, .step-connector.completed { background: var(--primary); }

/* Card */ .card { background: rgba(255,255,255,0.95); border-radius: 20px; padding: 32px; box-shadow: 0 4px 24px rgba(33,146,255,0.08); border: 1.5px solid rgba(33,146,255,0.1); }
.logo-icon { font-size: 48px; text-align: center; margin-bottom: 8px; }
.success-icon { font-size: 64px; text-align: center; margin-bottom: 8px; }
h1 { font-size: 24px; text-align: center; margin-bottom: 4px; color: var(--dark); font-weight: 800; }
h2 { font-size: 20px; margin-bottom: 20px; color: var(--dark); font-weight: 700; }
.text-success { color: var(--accent-dark); }
.subtitle { text-align: center; color: #555; margin-bottom: 24px; font-size: 15px; font-weight: 300; }

/* Form */ .form-section { margin-bottom: 24px; }
.form-section h3 { font-size: 16px; color: var(--dark); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; font-weight: 600; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.required { color: #e74c3c; }
input[type="text"], input[type="number"], input[type="tel"], input[type="email"], select, .form-group input { width: 100%; padding: 12px 16px; border: 1.5px solid rgba(33,146,255,0.2); border-radius: 12px; font-size: 15px; transition: all 0.2s; outline: none; font-family: 'IBM Plex Sans Thai', sans-serif; }
input:focus, select:focus, .form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33,146,255,0.1); }
.form-group input.invalid { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,0.15); }
.form-hint { display: block; margin-top: 4px; font-size: 11px; color: #999; }
.otp-input-wrapper input { text-align: center; font-size: 28px; letter-spacing: 12px; font-weight: bold; padding: 16px; }

/* Buttons */ .btn { display: inline-block; padding: 14px 24px; border: none; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; text-decoration: none; font-family: 'IBM Plex Sans Thai', sans-serif; text-align: center; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 6px 20px rgba(33,146,255,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(33,146,255,0.45); color: #fff; }
.btn-success { background: linear-gradient(135deg, var(--accent-dark), #2bc43f); color: #fff; box-shadow: 0 6px 20px rgba(22,163,74,0.35); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(22,163,74,0.45); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: rgba(33,146,255,0.08); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Alert */ .alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
.alert-icon { flex-shrink: 0; font-size: 16px; }
.alert-error { background: #ffeaea; border: 1px solid #f5c6cb; color: #721c24; }
.alert-info { background: rgba(33,146,255,0.08); border: 1px solid rgba(33,146,255,0.2); color: var(--primary-dark); }
.alert-success { background: rgba(56,229,77,0.08); border: 1px solid rgba(56,229,77,0.2); color: var(--accent-dark); }

/* Shop Summary */ .shop-summary { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.shop-summary h4 { font-size: 14px; color: #555; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e9ecef; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.summary-label { color: #888; }
.summary-value { color: #333; font-weight: 500; }

/* Info Cards */ .info-card { padding: 16px; border-radius: 12px; margin-bottom: 16px; }
.info-card h3 { font-size: 15px; margin-bottom: 12px; font-weight: 700; }
.info-card-green { background: rgba(56,229,77,0.06); border: 1px solid rgba(56,229,77,0.2); }
.info-card-green h3 { color: var(--accent-dark); }
.info-card-blue { background: rgba(33,146,255,0.06); border: 1px solid rgba(33,146,255,0.2); }
.info-card-blue h3 { color: var(--primary); }
.info-card-amber { background: #fef9e7; border: 1px solid #f9e79f; }
.info-card-amber h3 { color: #e67e22; }
.info-card-gray { background: #f8f9fa; border: 1px solid #e9ecef; }
.info-card-gray h3 { color: #666; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.info-row + .info-row { border-top: 1px solid rgba(0,0,0,0.06); }
.info-label { font-size: 14px; color: #666; }
.info-value { font-weight: 600; font-size: 14px; }
.info-value.highlight { color: var(--primary); font-size: 18px; }
.info-value.small { font-size: 12px; color: #999; }
.badge { display: inline-block; background: var(--primary); color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-left: 8px; }

/* Credentials */ .credentials-box { margin-top: 8px; }
.cred-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid #e8e8e8; }
.cred-row:last-child { border-bottom: none; }
.cred-label { color: #666; flex-shrink: 0; }
.cred-value { background: #f0f0f0; padding: 4px 10px; border-radius: 6px; font-family: monospace; font-size: 13px; color: var(--dark); }
.cred-value.highlight { background: rgba(33,146,255,0.1); color: var(--primary); font-weight: 700; }
.btn-copy { background: none; border: none; cursor: pointer; font-size: 14px; padding: 2px; margin-left: auto; }

/* Checklist */ .checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 4px 0; font-size: 13px; color: #555; }

/* Misc */ .note-box { background: rgba(33,146,255,0.06); border-radius: 12px; padding: 16px; margin-top: 16px; font-size: 14px; color: #555; }
.note-box p { margin-bottom: 4px; }
.resend-section { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e0e0e0; font-size: 13px; color: #888; flex-wrap: wrap; }
.resend-hint { font-size: 11px; color: #aaa; }
.back-link { text-align: center; margin-top: 16px; }
.back-link a { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }
.back-link a:hover { text-decoration: underline; }
.action-buttons { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.status-active { color: var(--accent-dark); font-weight: 600; }
.error-text { color: #e74c3c; text-align: center; font-size: 15px; }

/* Month Selector */ .month-selector { display: flex; align-items: center; gap: 8px; }
.month-selector input[type="number"] { width: 80px; text-align: center; font-size: 24px; font-weight: bold; padding: 8px; }
.btn-month { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(33,146,255,0.2); background: white; font-size: 24px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: var(--dark); }
.btn-month:hover { background: var(--primary); color: white; border-color: var(--primary); }
.month-presets { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.btn-preset { padding: 8px 16px; border: 2px solid rgba(33,146,255,0.2); border-radius: 20px; background: white; cursor: pointer; font-size: 14px; transition: all 0.2s; font-family: 'IBM Plex Sans Thai', sans-serif; color: var(--dark); }
.btn-preset:hover, .btn-preset.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Shop Info */ .shop-info { background: rgba(33,146,255,0.06); border-radius: 14px; padding: 16px; margin-bottom: 20px; }

/* Price Box */ .price-box { background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%); border: 2px solid #ff6b6b; border-radius: 14px; padding: 20px; text-align: center; margin: 20px 0; }
.price-header { font-size: 14px; color: #999; margin-bottom: 4px; }
.price-amount { font-size: 36px; font-weight: 800; color: #e74c3c; }
.price-detail { font-size: 13px; color: #888; margin-top: 4px; }

/* Package Changer */ .package-changer { background: rgba(56,229,77,0.06); border: 1px solid rgba(56,229,77,0.2); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.package-changer h3 { font-size: 15px; color: var(--accent-dark); margin-bottom: 12px; }
.package-changer select { width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid rgba(33,146,255,0.2); font-size: 14px; font-family: 'IBM Plex Sans Thai', sans-serif; }
.package-changer .hint { font-size: 12px; color: #888; margin-top: 8px; }

/* QR Code */ .qr-container { text-align: center; margin: 20px 0; }
#qr-code-area { display: inline-block; padding: 16px; background: white; border-radius: 14px; box-shadow: 0 4px 20px rgba(33,146,255,0.12); }
#qr-image { width: 280px; height: 280px; }
.qr-loading { width: 280px; height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #999; }

/* Spinner */ .spinner { width: 40px; height: 40px; border: 4px solid rgba(33,146,255,0.12); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Payment Info */ .payment-info { background: rgba(33,146,255,0.06); border-radius: 14px; padding: 16px; margin: 16px 0; }
.waiting-box { text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.waiting-box p { font-weight: 500; color: #555; }

/* Success */ .success-title { color: var(--accent-dark) !important; font-size: 28px !important; }
.success-detail { text-align: center; color: #666; font-size: 16px; margin-bottom: 8px; }

/* Info Box */ .info-box { background: rgba(33,146,255,0.06); border-radius: 14px; padding: 16px; margin-top: 16px; font-size: 14px; color: #555; }
.info-box p { margin-bottom: 4px; }
.info-box p:last-child { margin-bottom: 0; }
.info-box-warning { background: #fef9e7; border: 1px solid #f9e79f; }

/* Footer */ .qpos-footer { background: var(--footer-bg); padding: 48px 0 28px; color: #fff; }
.footer-desc { font-weight: 300; font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 20px; }
.footer-social-btn { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); text-decoration: none; transition: background 0.2s; border: 1px solid rgba(255,255,255,0.08); }
.footer-social-btn:hover { background: rgba(33,146,255,0.3); color: #fff; }
.footer-contact-row { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-contact-row svg { flex-shrink: 0; margin-top: 2px; }
.footer-col-title { font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-link { display: block; font-weight: 300; font-size: 15px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.4); }

/* Responsive */ @media (max-width: 767px) { .page-header { padding: 100px 0 40px; } .page-container { max-width: 100%; } .card { padding: 24px 16px; } .qpos-footer { padding: 28px 0 20px; } }
