:root {
  --bg: #e9edf2;
  --surface: #f7f8fa;
  --surface-2: #ffffff;
  --text: #1e2d39;
  --text-soft: #667888;
  --border: #d5dde6;
  --primary: #073743;
  --primary-2: #114d58;
  --gold: #ddb25d;
  --gold-soft: #f4e3bc;
  --danger-bg: rgba(130, 30, 30, 0.12);
  --danger-border: rgba(160, 45, 45, 0.35);
  --danger-text: #9f2e2e;
  --success-bg: rgba(30, 110, 50, 0.12);
  --success-border: rgba(55, 150, 85, 0.3);
  --success-text: #1f7a43;
  --shadow: 0 16px 40px rgba(17, 34, 51, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.hero-header {
  background: radial-gradient(circle at top right, #185a66 0%, #0d4350 42%, #062e39 72%, #051e27 100%);
  color: white;
  border-bottom-left-radius: 42px;
  border-bottom-right-radius: 42px;
  padding: 18px 16px 28px;
  box-shadow: 0 10px 30px rgba(5, 30, 39, 0.18);
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero-brand {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-card {
  border: 1px solid rgba(220, 232, 235, 0.18);
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.hero-badge,
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #18323d;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
}

.mini-badge {
  margin-bottom: 16px;
}

.hero-text h1 {
  margin: 18px 0 10px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-text p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.page {
  width: 100%;
}

.surface-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.search-surface {
  margin-bottom: 18px;
}

.section-heading {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-wrapper {
  position: relative;
}

#searchInput {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(80, 97, 118, 0.45);
  background: #f3f5f8;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

#searchInput::placeholder {
  color: #596370;
}

#searchInput:focus,
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #2f6d79;
  box-shadow: 0 0 0 4px rgba(17, 77, 88, 0.12);
}

.map {
  height: 280px;
  margin-top: 14px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.results-header {
  margin: 16px 2px 14px;
}

.results-title {
  margin: 0;
  color: #6b7b89;
  font-size: 15px;
  font-weight: 700;
}

.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card h2,
#artisanName {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.trade {
  color: #184a57;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.city {
  color: #6b7b89;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.distance {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  width: 100%;
  border-radius: 999px;
  background: #eef2f6;
  border: 1px solid var(--border);
  padding: 0 18px;
  color: #738493;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 14px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.badge.recommended {
  background: #e6f4ea;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge.premium {
  background: var(--gold);
  color: #18323d;
}

.card-actions,
.detail-actions,
.detail-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-actions {
  margin-top: 16px;
}

.primary-btn,
.ghost-btn,
.call-btn,
.secondary-btn,
.back-btn {
  min-height: 58px;
  border-radius: 999px;
  border: none;
  padding: 0 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.2s ease, background 0.2s ease;
}

.primary-btn,
.call-btn {
  background: var(--primary);
  color: white;
}

.primary-btn:hover,
.call-btn:hover,
.ghost-btn:hover,
.back-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn,
.secondary-btn {
  background: #f4f6f8;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.back-btn {
  background: transparent;
  color: #184a57;
  border: none;
  min-height: auto;
  padding: 6px 0;
  font-size: 16px;
}

.small-btn {
  min-height: 48px;
  font-size: 14px;
  padding: 0 16px;
}

.full-width {
  width: 100%;
}

.call-btn.disabled,
.secondary-btn.disabled,
.primary-btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.artisan-detail-card {
  padding: 24px;
}

.detail-block {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: #f5f7fa;
  border: 1px solid var(--border);
}

.detail-block strong {
  display: block;
  margin-bottom: 10px;
  color: #b9811f;
  font-size: 14px;
  font-weight: 700;
}

.detail-block div,
.detail-block a {
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}

.detail-block a {
  text-decoration: none;
  font-weight: 600;
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.suggestion-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #eef2f5;
  font-family: inherit;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #f5f8fa;
}

.suggestion-label {
  font-weight: 700;
}

.suggestion-type {
  color: #b9811f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.form-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.form-subtitle {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: #b9811f;
  font-size: 14px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(80, 97, 118, 0.3);
  background: #f7f8fa;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

.form-field textarea {
  min-height: 140px;
}

.full-row {
  grid-column: 1 / -1;
}

.form-note {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}

.form-message,
.message {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.form-message.success,
.message.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.form-message.error,
.message.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

@media (max-width: 768px) {
  .hero-header {
    padding: 16px 14px 24px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
  }

  .hero-brand {
    font-size: 21px;
    margin-bottom: 14px;
  }

  .hero-card {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .container {
    padding: 16px 12px 26px;
  }

  .surface-card,
  .artisan-detail-card {
    padding: 18px;
    border-radius: 24px;
  }

  .card {
    padding: 18px;
    border-radius: 28px;
  }

  .card h2,
  #artisanName,
  .form-title,
  .section-heading {
    font-size: 21px;
  }

  .top-actions,
  .detail-topbar,
  .detail-topbar-actions,
  .card-actions,
  .detail-actions {
    flex-direction: column;
  }

  .ghost-btn,
  .primary-btn,
  .call-btn,
  .secondary-btn,
  #locationBtn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .map {
    height: 230px;
  }
}
#artisanDescription {
  white-space: pre-line;
  line-height: 1.8;
}
@media (min-width: 1024px) {
  .container {
    max-width: 1180px;
    padding: 28px 24px 56px;
  }

  .hero-inner {
    max-width: 1180px;
  }

  .hero-card {
    padding: 28px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .search-surface,
  .artisan-detail-card,
  .surface-card {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  #list {
    max-width: 980px;
    margin: 0 auto;
  }

  .card {
    padding: 26px 28px;
  }

  .card h2,
  #artisanName {
    font-size: 30px;
  }

  .trade {
    font-size: 18px;
  }

  .city,
  .distance,
  .detail-block div,
  .detail-block a,
  #artisanDescription {
  white-space: pre-line;
  line-height: 1.85;
}

  #artisanDescription {
    max-width: 78ch;
  }

  .detail-block {
    padding: 22px 24px;
  }

  .detail-topbar {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .form-field.full-row {
    grid-column: 1 / -1;
  }
}
.site-footer {
  padding: 10px 16px 26px;
  text-align: center;
}

.footer-link {
  color: #6b7b89;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.footer-link:hover {
  color: #073743;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 6px 12px 22px;
  }

  .footer-link {
    font-size: 13px;
  }
}
.form-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.form-legal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.form-legal-links a:hover {
  background: #e6edf2;
  transform: translateY(-1px);
}

.form-group {
  margin-top: 18px;
}

.form-group label {
  color: #b9811f;
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.form-group select {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(80, 97, 118, 0.3);
  background: #f7f8fa;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.form-group select:focus {
  outline: none;
  border-color: #2f6d79;
  box-shadow: 0 0 0 4px rgba(17, 77, 88, 0.12);
}

#assurance-details {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f7fa;
  border: 1px solid var(--border);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.checkbox-group a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.legal-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #fff8ea;
  border: 1px solid #edd7a9;
  color: #6e5521;
  font-size: 14px;
  line-height: 1.65;
}

.legal-note p {
  margin: 0 0 10px;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .form-legal-links {
    flex-direction: column;
  }

  .form-legal-links a {
    width: 100%;
  }
}
.site-footer {
  margin-top: 40px;
  padding: 20px 16px 30px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #6b7b89;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ddb25d;
}
.admin-request-card {
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
}

.admin-request-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.admin-request-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.admin-request-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-request-actions .approve-btn {
  background: #1f7a43;
  color: white;
}

.admin-request-actions .reject-btn {
  background: #9f2e2e;
  color: white;
}

@media (max-width: 768px) {
  .admin-request-actions {
    flex-direction: column;
  }

  .admin-request-actions button {
    width: 100%;
  }
}
.site-footer {
  padding: 26px 16px 34px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-link {
  color: #6b7b89;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.footer-link:hover {
  color: #073743;
  text-decoration: underline;
}
.install-btn {
  display: inline-flex !important;
  margin: 0 auto 18px;
}