/* Clean Minimalist Mobile-First Styling for Supermarket Request Form */
:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --bg-gradient: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --focus-ring: rgba(5, 150, 105, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-main);
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 14px;
}

.app-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: auto;
}

/* Header */
.store-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.store-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #a7f3d0;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.store-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Card */
.main-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
}

/* Form */
.request-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-star {
  color: #ef4444;
  font-weight: 700;
}

.optional-text {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 400;
  margin-right: 4px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
}

.phone-input {
  letter-spacing: 1px;
  font-family: inherit;
  font-weight: 600;
}

.helpline {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 1px;
}

.gift-helpline {
  color: #b45309;
}

/* Submit Button */
.form-actions {
  margin-top: 6px;
}

.btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

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

.btn-primary:active {
  transform: translateY(1px);
}

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

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .spinner {
  display: inline-block;
}

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

/* Alert */
.alert {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-top: 6px;
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 16px 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 52px;
  height: 52px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 6px;
}

.success-message {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
}

.submitted-pill {
  background: #f1f5f9;
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* Footer */
.app-footer {
  text-align: center;
}

.admin-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.76rem;
  transition: color 0.15s ease;
}

.admin-link:hover {
  color: var(--primary);
}
