/* ==========================================================================
   SFARMART24 - GOOGLE FORMS STYLE THEME
   Simple, Sober, Clean, Highly User-Friendly
   ========================================================================== */

:root {
  --gform-bg: #f0f4f1; /* Soft gentle sage-grey background */
  --gform-card-bg: #ffffff;
  --gform-primary: #15803d; /* Sfarmart Emerald Green */
  --gform-primary-dark: #166534;
  --gform-accent-blue: #1a73e8; /* Google Blue */
  --gform-text-dark: #202124;
  --gform-text-muted: #5f6368;
  --gform-border: #dadce0;
  --gform-border-focus: #15803d;
  --gform-error: #d93025;
  --gform-card-radius: 8px;
  --gform-shadow: 0 1px 3px rgba(60, 64, 67, 0.15), 0 1px 2px rgba(60, 64, 67, 0.08);
  --gform-shadow-active: 0 2px 6px rgba(60, 64, 67, 0.2);

  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', Consolas, monospace;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--gform-bg);
  color: var(--gform-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 1.5rem 1rem 3rem;
}

.gform-page-wrapper {
  max-width: 660px;
  margin: 0 auto;
}

/* Top Accent Strip */
.gform-top-accent {
  height: 10px;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
  border-top-left-radius: var(--gform-card-radius);
  border-top-right-radius: var(--gform-card-radius);
}

/* Base Card */
.gform-card {
  background: var(--gform-card-bg);
  border-radius: var(--gform-card-radius);
  box-shadow: var(--gform-shadow);
  border: 1px solid rgba(218, 220, 224, 0.6);
  margin-bottom: 12px;
  padding: 24px 26px;
  position: relative;
  border-left: 5px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gform-card.header-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  border-left: 5px solid transparent;
}

/* Active Card Highlight (Classic Google Forms behavior) */
.gform-card.is-active {
  border-left-color: var(--gform-primary);
  box-shadow: var(--gform-shadow-active);
}

/* ==========================================================================
   HEADER CARD
   ========================================================================== */

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.header-logo {
  height: 38px;
  width: auto;
  border-radius: 4px;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--gform-text-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.header-badge {
  font-size: 0.75rem;
  color: var(--gform-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-description {
  font-size: 0.92rem;
  color: var(--gform-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.header-divider {
  height: 1px;
  background-color: var(--gform-border);
  margin-bottom: 14px;
}

.header-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.fee-pill {
  font-size: 0.88rem;
  color: var(--gform-primary-dark);
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 500;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.required-notice {
  font-size: 0.82rem;
  color: var(--gform-error);
  font-weight: 500;
}

/* ==========================================================================
   QUESTION CARDS & GOOGLE INPUTS
   ========================================================================== */

.question-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gform-text-dark);
  margin-bottom: 4px;
}

.required-star {
  color: var(--gform-error);
  font-weight: bold;
}

.question-help {
  display: block;
  font-size: 0.82rem;
  color: var(--gform-text-muted);
  margin-bottom: 18px;
}

/* Google Forms Style Underline Input */
.input-underline-wrap {
  position: relative;
  width: 100%;
  margin-top: 6px;
}

.gform-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gform-border);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--gform-text-dark);
  padding: 8px 0;
  outline: none;
  background: transparent;
  transition: border-bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gform-input:focus {
  border-bottom: 2px solid var(--gform-primary);
}

.gform-input::placeholder {
  color: #9aa0a6;
  font-size: 0.92rem;
}

/* Phone input with +91 prefix */
.phone-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gform-border);
  transition: border-bottom 0.2s;
}

.phone-wrap:focus-within {
  border-bottom: 2px solid var(--gform-primary);
}

.phone-prefix {
  font-weight: 500;
  color: var(--gform-text-dark);
  font-size: 0.98rem;
  padding-bottom: 4px;
}

.phone-input {
  border-bottom: none !important;
  padding-left: 0;
}

/* Textarea input */
.gform-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gform-border);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--gform-text-dark);
  padding: 6px 0;
  outline: none;
  resize: vertical;
  background: transparent;
  line-height: 1.45;
  transition: border-bottom 0.2s;
}

.gform-textarea:focus {
  border-bottom: 2px solid var(--gform-primary);
}

.gform-textarea::placeholder {
  color: #9aa0a6;
  font-size: 0.92rem;
}

/* Error message */
.gform-error {
  font-size: 0.78rem;
  color: var(--gform-error);
  margin-top: 6px;
  min-height: 1rem;
  font-weight: 500;
}

.question-card.has-error {
  border-left-color: var(--gform-error) !important;
}

.question-card.has-error .gform-input,
.question-card.has-error .phone-wrap,
.question-card.has-error .gform-textarea {
  border-bottom-color: var(--gform-error);
}

/* ==========================================================================
   QUESTION 5: PAYMENT METHODS
   ========================================================================== */

.payment-question-card {
  padding-bottom: 28px;
}

.payment-box-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.payment-method-block {
  background: #f8fafc;
  border: 1px solid var(--gform-border);
  border-radius: 8px;
  padding: 16px 18px;
}

.payment-method-block.rzp-block {
  background: #f0fdf4;
  border-color: #86efac;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.method-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  text-transform: uppercase;
}

.method-tag.tag-blue {
  background: #16a34a;
  color: #ffffff;
}

.method-title {
  font-size: 0.98rem;
  color: var(--gform-text-dark);
}

.method-subtitle {
  font-size: 0.84rem;
  color: var(--gform-text-muted);
  margin-bottom: 12px;
}

.optional-pill {
  font-size: 0.76rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
  border: 1px solid #e2e8f0;
}

/* QR Code Container */
.qr-clean-container {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px;
  width: fit-content;
  max-width: 270px;
  margin: 0 auto 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-clean-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.gform-qr-img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 6px;
}

/* Tap to Pay button on Mobile */
.upi-mobile-pay-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px auto 14px;
  width: 100%;
}

.btn-upi-mobile-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.25);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.btn-upi-mobile-pay:hover {
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
  transform: translateY(-1px);
}

.mobile-pay-hint {
  font-size: 0.76rem;
  color: #166534;
  font-weight: 500;
  margin-top: 5px;
}

/* Payment Verification Box */
.payment-verification-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
}

.verification-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 0.88rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

/* UPI ID Copy Strip */
.upi-clean-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  width: fit-content;
  margin: 0 auto 14px;
}

.upi-clean-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gform-text-muted);
}

.upi-clean-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gform-primary);
}

.btn-clean-copy {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clean-copy:hover {
  background: var(--gform-primary);
  color: #ffffff;
  border-color: var(--gform-primary);
}

/* Screenshot Upload Box */
.screenshot-upload-box {
  background: #ffffff;
  border: 1.5px dashed #86efac;
  border-radius: 8px;
  padding: 16px 14px 10px;
  margin-top: 10px;
  transition: border-color 0.2s;
}

.screenshot-upload-box:hover {
  border-color: #15803d;
}

.screenshot-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  padding-bottom: 8px;
}

.screenshot-upload-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gform-text-dark);
}

.screenshot-upload-hint {
  font-size: 0.78rem;
  color: var(--gform-text-muted);
  line-height: 1.4;
}

.screenshot-upload-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 16px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
}

.screenshot-file-input {
  display: none;
}

/* Preview after file selected */
.screenshot-preview-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
}

.screenshot-preview-img {
  height: 56px;
  width: auto;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #dcfce7;
}

.btn-remove-screenshot {
  padding: 3px 10px;
  background: #fee2e2;
  border: none;
  border-radius: 4px;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.utr-subnote {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* Separator OR */


/* ==========================================================================
   BOTTOM ACTION BAR (SUBMIT & CLEAR)
   ========================================================================= */

.form-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 24px;
}

/* Google Forms style green submit button */
.btn-gform-submit {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.3);
  transition: all 0.2s ease;
}

.btn-gform-submit:hover {
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.4);
}

.btn-gform-clear {
  background: transparent;
  border: none;
  color: var(--gform-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.btn-gform-clear:hover {
  background: rgba(0,0,0,0.05);
  color: var(--gform-text-dark);
}

/* Google Forms Footer */
.gform-footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gform-text-muted);
  line-height: 1.6;
}

.gform-footer-links {
  margin-top: 4px;
}

/* ==========================================================================
   SUCCESS CARD (Google Forms Response Recorded View)
   ========================================================================== */

.success-card {
  padding: 0;
  overflow: hidden;
}

.success-top-bar {
  height: 10px;
  background: #15803d;
}

.success-body {
  padding: 32px 28px;
  text-align: center;
}

.success-check-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gform-text-dark);
  margin-bottom: 4px;
}

.success-hindi {
  font-size: 0.95rem;
  color: var(--gform-text-muted);
  margin-bottom: 24px;
}

/* Receipt in Success view */
.success-receipt-box {
  background: #f8fafc;
  border: 1px solid var(--gform-border);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto 24px;
}

.receipt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gform-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.receipt-brand {
  font-weight: 800;
  color: var(--gform-primary);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.receipt-tag {
  font-size: 0.72rem;
  color: var(--gform-text-muted);
  text-transform: uppercase;
}

.receipt-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rcpt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.88rem;
}

.rcpt-k {
  color: var(--gform-text-muted);
  font-weight: 500;
}

.rcpt-v {
  color: var(--gform-text-dark);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.rcpt-item.total-item {
  border-top: 1.5px solid var(--gform-text-dark);
  padding-top: 10px;
  margin-top: 6px;
}

.total-v {
  color: var(--gform-primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.receipt-verified-footer {
  margin-top: 14px;
  padding: 6px;
  background: #dcfce7;
  border: 1px dashed #16a34a;
  border-radius: 4px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  letter-spacing: 0.05em;
}

.success-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-print-slip {
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--gform-border);
  color: var(--gform-text-dark);
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-print-slip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.link-submit-another {
  font-size: 0.88rem;
  color: var(--gform-accent-blue);
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.gform-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.88rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  z-index: 2000;
  animation: toast-fade 0.2s ease-out;
}

@keyframes toast-fade {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-green { color: var(--gform-primary) !important; }

/* Print styling */
@media print {
  body {
    background: #ffffff;
    padding: 0;
  }
  .form-bottom-actions, .gform-footer-note, .success-actions-row, .header-brand-row, .header-description, .header-info-row, .header-divider {
    display: none !important;
  }
  .gform-card {
    box-shadow: none;
    border: none;
    padding: 0;
  }
}
