/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-primary: #1a3a2a;
  --color-primary-hover: #264d39;
  --color-accent: #e8a838;
  --color-accent-soft: #fdf3e0;
  --color-text: #1a1a1a;
  --color-text-secondary: #5c5c5c;
  --color-text-muted: #8a8a8a;
  --color-border: #d9d4cc;
  --color-border-focus: #1a3a2a;
  --color-error: #c0392b;
  --color-error-bg: #fdecea;
  --color-success: #1a3a2a;
  --color-success-bg: #e8f5e9;
  --font-heading: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ========== Layout ========== */

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ========== Header ========== */

.app-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-spacer {
  width: 36px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: none;
}

.logo-area .company-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* ========== Progress Bar ========== */

.progress-bar-container {
  padding: 12px 20px;
  background: var(--color-surface);
}

.progress-track {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}

.progress-steps span.active {
  color: var(--color-primary);
  font-weight: 700;
}

.progress-steps span.done {
  color: var(--color-accent);
}

/* ========== Screen Container ========== */

.screen {
  flex: 1 1;
  padding: 28px 20px 100px;
  animation: screenIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.screen-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ========== Legal Notice ========== */

.legal-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  max-height: 45vh;
  overflow-y: auto;
  margin-bottom: 24px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
  white-space: pre-line;
}

.legal-box::-webkit-scrollbar {
  width: 4px;
}

.legal-box::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

/* ========== Service Type Buttons ========== */

.service-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.service-btn:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.service-btn:active {
  transform: scale(0.98);
}

.service-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.service-btn .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--color-accent-soft);
  transition: background 0.2s ease;
  display: none;
}

.service-btn.selected .icon {
  background: rgba(255, 255, 255, 0.2);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.btn-start-over {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.btn-start-over:hover {
  opacity: 0.75;
}

/* ========== Billing Code Input ========== */

.billing-code-input {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.attempts-left {
  display: block;
  font-weight: 700;
  margin-top: 4px;
}

/* ========== Form Inputs ========== */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(26, 58, 42, 0.1);
}

.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-error {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-error);
}

/* ========== Phone Input ========== */

.phone-input-wrapper {
  position: relative;
}

.phone-input-wrapper .prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-weight: 500;
  pointer-events: none;
}

.phone-input-wrapper .form-input {
  padding-left: 44px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ========== Review Screen ========== */

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.review-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

/* ========== Buttons ========== */

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.01em;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-back:hover {
  color: var(--color-text);
}

/* ========== Bottom Action Bar ========== */

.action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
}

/* ========== Success Screen ========== */

.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 24px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-screen .screen-title {
  margin-bottom: 12px;
}

.success-screen .screen-subtitle {
  max-width: 280px;
}

/* ========== Loading Spinner ========== */

.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: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* ========== Error Banner ========== */

.error-banner {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--color-error);
  line-height: 1.4;
}

/* ========== Help Button & Modal ========== */

.help-btn {
  width: 48px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.help-btn:hover {
  background: var(--color-primary-hover);
}

.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlayIn 0.2s ease;
  padding: 16px;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.help-modal {
  background: var(--color-surface);
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15);
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: env(safe-area-inset-bottom);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.help-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
}

.help-modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.help-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.help-modal-close:hover {
  background: var(--color-border);
}

.help-modal-body {
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  overflow-y: auto;
  white-space: pre-line;
}

.help-modal-btn {
  margin: 0 20px 20px;
  width: auto;
}

/* ========== Utility ========== */

@media (max-width: 480px) {
  .app-shell {
    max-width: 100%;
  }

  .action-bar {
    max-width: 100%;
  }
}

.help-sent-message {
  padding: 0 20px 8px;
  font-size: 0.95rem;
  color: var(--color-success);
  line-height: 1.5;
}

.help-error-message {
  padding: 0 20px 8px;
  font-size: 0.95rem;
  color: var(--color-error);
  line-height: 1.5;
}

