/**
 * Oakscroft Scratch & Win Verification System
 * Customer-Facing Mobile-First Stylesheet
 */

:root {
  --primary: #FF6F00;
  --primary-hover: #E65100;
  --accent: #FF005C;
  --gold: #D4AF37;
  --gold-light: #FFF8E1;
  --bg-page: #FAF9F6;
  --bg-card: #FFFFFF;
  --text-main: #121212;
  --text-muted: #616161;
  --border: #E0E0E0;
  --success: #2E7D32;
  --danger: #C62828;
  --warning: #F57F17;
  --info: #0288D1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #C8E6C9;
}

.header-badge .dot {
  width: 7px;
  height: 7px;
  background: #2E7D32;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Container */
.main-content {
  flex: 1;
  padding: 24px 16px 40px;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

/* Cards */
.claim-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.claim-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.card-header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.icon-verified {
  background: #E8F5E9;
  color: var(--success);
  border: 2px solid #C8E6C9;
}

.icon-noprize {
  background: var(--gold-light);
  color: var(--gold);
  border: 2px solid #FFE082;
}

.icon-invalid {
  background: #FFEBEE;
  color: var(--danger);
  border: 2px solid #FFCDD2;
}

.icon-submitted {
  background: #FFF3E0;
  color: var(--primary);
  border: 2px solid #FFE0B2;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Serial Badge */
.serial-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F5F5F5;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin: 0 auto 20px;
  justify-content: center;
  width: fit-content;
}

.serial-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-main);
  background: #FAFAFA;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.12);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, #FF5722 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 111, 0, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #E64A19 100%);
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success reference card */
.reference-box {
  background: #F8F9FA;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin: 20px 0;
}

.reference-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.reference-code {
  font-family: monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

/* Alert Boxes */
.alert-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-danger {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.alert-info {
  background: #E1F5FE;
  color: #0277BD;
  border: 1px solid #B3E5FC;
}

.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

/* Security notice */
.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
}

.security-notice svg {
  width: 16px;
  height: 16px;
  fill: var(--success);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-support {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-support a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-support a:hover {
  text-decoration: underline;
}

.footer-copy {
  opacity: 0.8;
}
