/* ==========================================================================
   SMS Scam Check — Lead Gen Tool Styles
   Interactive SMS analysis section on the homepage.
   Elderly-adapted: 18px+ fonts, large touch targets, high contrast.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Accessibility Utility
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Section Layout
   -------------------------------------------------------------------------- */

#sms-scam-check {
  padding: 48px 0;
}

.sms-check-container {
  max-width: 640px;
  margin: 0 auto;
}

.sms-check-heading {
  text-align: center;
  margin-bottom: 8px;
}

.sms-check-subheading {
  text-align: center;
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Text Input
   -------------------------------------------------------------------------- */

.sms-check-textarea {
  width: 100%;
  min-height: 120px;
  font-size: 18px;
  font-family: monospace;
  padding: 16px;
  border: 3px solid #000;
  border-radius: 12px;
  background: #fff;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.5;
}

.sms-check-textarea:focus {
  border-color: #1A5C13;
  box-shadow: 0 0 0 3px rgba(26, 92, 19, 0.15);
}

.sms-check-textarea::placeholder {
  color: #888;
}

/* --------------------------------------------------------------------------
   Character Counter
   -------------------------------------------------------------------------- */

.sms-check-char-count {
  text-align: right;
  font-size: 13px;
  font-family: monospace;
  color: #888;
  margin-bottom: 12px;
  min-height: 18px;
}

.sms-check-char-count.near-limit {
  color: #9B2C2C;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Submit Button
   -------------------------------------------------------------------------- */

.sms-check-button {
  width: 100%;
  height: 60px;
  font-size: 18px;
  font-weight: 900;
  font-family: monospace;
  background: #1A5C13;
  color: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  margin-bottom: 12px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.2s ease;
}

.sms-check-button:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #000;
}

.sms-check-button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.sms-check-button:focus-visible {
  outline: 3px solid #1A5C13;
  outline-offset: 2px;
}

.sms-check-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */

.sms-check-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sms-check-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* --------------------------------------------------------------------------
   Privacy Notice
   -------------------------------------------------------------------------- */

.sms-check-privacy {
  font-size: 14px;
  color: #444;
  text-align: center;
  margin-bottom: 24px;
}

.sms-check-privacy a {
  color: #164578;
}

.sms-check-privacy a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Results Container
   -------------------------------------------------------------------------- */

#sms-check-results {
  display: none;
}

/* --------------------------------------------------------------------------
   CTA (shown after result)
   -------------------------------------------------------------------------- */

.sms-check-cta {
  display: none;
  text-align: center;
  margin-top: 24px;
}

.sms-check-cta-text {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sms-check-cta-button {
  display: inline-block;
  background: #000;
  color: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 900;
  font-family: monospace;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.sms-check-cta-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #000;
  color: #fff;
  text-decoration: none;
}

.sms-check-cta-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.sms-check-cta-button:focus-visible {
  outline: 3px solid #1A5C13;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  #sms-scam-check {
    padding: 32px 0;
  }

  .sms-check-textarea {
    font-size: 16px;
    min-height: 100px;
  }

  .sms-check-button {
    height: 56px;
    font-size: 16px;
  }

  .sms-check-cta-button {
    padding: 14px 24px;
    font-size: 16px;
  }
}
