/* Growth Report Landing Page */

.gr-page {
  margin: 0;
  padding: 0;
  background: #0a0f1e;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background effects */
.gr-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.gr-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.gr-bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #005eb8, transparent);
  top: -100px; right: -100px;
}

.gr-bg-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #009639, transparent);
  bottom: 10%; left: -100px;
}

.gr-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Header */
.gr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.gr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.gr-logo-icon {
  width: 36px; height: 36px;
  background: url('/images/logo-icon.svg') center/contain no-repeat;
  border-radius: 8px;
  display: block;
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  flex-shrink: 0;
}
.gr-logo span { color: #fff; }
.gr-logo .gr-logo-accent { color: #3B82F6; }

.gr-back-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
}

.gr-back-link:hover { color: #e2e8f0; }

/* Hero */
.gr-hero {
  text-align: center;
  padding: 40px 0 32px;
}

.gr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 94, 184, 0.15);
  border: 1px solid rgba(0, 94, 184, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: #60a5fa;
  margin-bottom: 20px;
}

.gr-badge-dot {
  width: 6px; height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  animation: gr-pulse 2s infinite;
}

@keyframes gr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.gr-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
}

.gr-highlight {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gr-hero-sub {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Form Card */
.gr-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gr-form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.gr-form-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gr-form-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.gr-form-header p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

.gr-form {
  padding: 28px;
}

.gr-field {
  margin-bottom: 20px;
}

.gr-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.gr-field input[type="text"],
.gr-field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.gr-field input:focus {
  outline: none;
  border-color: #005eb8;
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.2);
}

.gr-field input::placeholder {
  color: #64748b;
}

/* ODS Search */
.ods-search-wrapper {
  position: relative;
}

.ods-search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.ods-result-item {
  padding: 10px 14px;
  font-size: 14px;
  color: #e2e8f0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ods-result-item:hover {
  background: rgba(0, 94, 184, 0.2);
}

.ods-selected-info {
  position: relative;
  background: rgba(0, 150, 57, 0.1);
  border: 1px solid rgba(0, 150, 57, 0.3);
  border-radius: 8px;
  padding: 12px 40px 12px 14px;
  margin-top: 8px;
}

.ods-pharmacy-name {
  display: block;
  font-weight: 600;
  color: #34d399;
  font-size: 14px;
}

.ods-address {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.ods-clear-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.ods-clear-btn:hover { color: #ef4444; }

/* Consent */
.gr-consent {
  margin-bottom: 20px;
}

.gr-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1.5;
}

.gr-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #005eb8;
}

/* Submit Button */
.gr-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #005eb8, #003087);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.gr-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 94, 184, 0.4);
}

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

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

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

/* Messages */
.gr-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.gr-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.gr-success {
  background: rgba(0, 150, 57, 0.1);
  border: 1px solid rgba(0, 150, 57, 0.3);
  color: #34d399;
}

/* Preview Section */
.gr-preview {
  text-align: center;
}

.gr-preview h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
}

.gr-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gr-preview-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}

.gr-preview-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.gr-preview-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.gr-preview-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Trust Signals */
.gr-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
}

.gr-trust-item {
  text-align: center;
}

.gr-trust-item strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #60a5fa;
}

.gr-trust-item span {
  font-size: 12px;
  color: #94a3b8;
}

/* FAQ */
.gr-faq {
  padding: 40px 0;
}

.gr-faq h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
  text-align: center;
}

.gr-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.gr-faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.gr-faq-item p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.gr-footer {
  text-align: center;
  padding: 24px 0;
  color: #64748b;
  font-size: 13px;
}

.gr-footer-links {
  margin-top: 8px;
}

.gr-footer-links a {
  color: #64748b;
  text-decoration: none;
  margin: 0 12px;
}

.gr-footer-links a:hover { color: #94a3b8; }

/* Success card — report sent */
.gr-success-card {
  text-align: center;
  padding: 40px 32px;
}

.gr-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.gr-success-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #34d399;
  margin: 0 0 12px 0;
}

.gr-success-card p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.gr-success-tips {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 24px;
  margin-top: 20px;
  text-align: left;
}

.gr-success-tips p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0 0 8px 0;
}

.gr-success-tips ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.8;
}

/* Gated state — report already generated */
.gr-gated-card {
  text-align: center;
  padding: 40px 32px;
}

.gr-gated-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.gr-gated-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.gr-gated-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .gr-hero h1 { font-size: 26px; }
  .gr-preview-grid { grid-template-columns: 1fr; }
  .gr-trust { flex-wrap: wrap; gap: 20px; }
  .gr-form-header, .gr-form { padding: 20px; }
}
