/* Shared Stylesheet */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.2rem;
}

code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85rem;
  font-family: "Consolas", "Courier New", monospace;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #f1f5f9;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
}

.nav-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 3px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  line-height: 1;
}

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

.btn-primary {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.btn-primary:hover:not(:disabled) {
  background: #0d6b63;
  border-color: #0d6b63;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #0f766e;
  border-color: #0f766e;
}

.btn-outline:hover:not(:disabled) {
  background: #f0fdfb;
  text-decoration: none;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: #ffffff;
  padding: 100px 0 96px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-body {
  color: #64748b;
  font-size: 0.93rem;
}

.card-pricing {
  text-align: center;
  padding: 36px 28px;
}

.card-featured {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px #0f766e22;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f766e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 6px;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

.plan-monthly {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.plan-monthly span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  text-align: left;
  font-size: 0.9rem;
  color: #374151;
}

.plan-features li {
  padding: 5px 0;
}

.plan-features li::before {
  content: "✓ ";
  color: #0f766e;
  font-weight: 700;
}

@media (max-width: 768px) {
  #pricing .section-subtitle {
    max-width: 100%;
    margin-bottom: 28px;
  }

  #pricing .cards {
    gap: 16px;
    margin-top: 28px;
  }

  #pricing .card-pricing {
    padding: 24px 20px;
  }

  #pricing .plan-price {
    font-size: 1.8rem;
  }

  #pricing .plan-monthly {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  #pricing .plan-features {
    margin-bottom: 20px;
  }
}

.demo-box {
  max-width: 500px;
  margin: 0 auto;
  background: #e2e8f0;
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  padding: 60px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 32px 0;
  text-align: center;
  margin-top: auto;
}

.footer .nav-logo {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.83rem;
}

.footer .btn {
  margin: 10px 0 6px;
}

.alert {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.hidden {
  display: none !important;
}

.page-form .section {
  padding: 48px 0 80px;
}

.form-container {
  max-width: 700px;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.form-subtitle {
  color: #64748b;
  margin-bottom: 36px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  background: #ffffff;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  display: block;
}

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

.form-row:last-child {
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.required {
  color: #dc2626;
}

.hint {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.82rem;
}

.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 88px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.faq-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.faq-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.faq-row-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faq-remove-btn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 6px;
}

.faq-remove-btn:hover {
  text-decoration: underline;
}

.faq-answer {
  margin-top: 8px;
}

.form-actions {
  padding-top: 8px;
}

.page-admin .section {
  padding: 40px 0 80px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: #64748b;
}

.stat strong {
  font-weight: 700;
  color: #1e293b;
}

.stat-pending strong { color: #d97706; }
.stat-approved strong { color: #16a34a; }
.stat-rejected strong { color: #dc2626; }

.admin-state {
  text-align: center;
  color: #94a3b8;
  padding: 48px 0;
  font-size: 0.95rem;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.admin-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.admin-card-body {
  padding: 20px 24px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 24px;
  margin-bottom: 20px;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.admin-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
  margin-top: 16px;
}

.admin-services {
  color: #374151;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.admin-faq {
  font-size: 0.88rem;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-faq li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  list-style: none;
}

.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.action-note {
  font-size: 0.88rem;
  color: #64748b;
}

.muted {
  color: #94a3b8 !important;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-approved {
  background: #dcfce7;
  color: #166534;
}

.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}
