﻿:root {
  --bg: #eff2f5;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #1b9a52;
  --accent-dark: #157a41;
  --border: #d1d5db;
  --danger: #c62828;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f2f4f7, #e8edf3);
  color: var(--text);
}

.page-shell {
  padding: 0;
}

#main-content-wrapper {
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
}

.hero-images,
.product-form {
  width: 100%;
}

.hero-link {
  display: block;
}

.hero-images img {
  display: block;
  width: 100%;
  height: auto;
}

.product-form {
  padding: 1.5rem 1rem 2rem;
}

#orderForm {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
}

#orderForm h1 {
  margin: 0;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0.35rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.package-card {
  position: relative;
  border: 3px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.package-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(27, 154, 82, 0.2);
}

.package-card input {
  position: absolute;
  opacity: 0;
}

.package-card img {
  display: block;
  width: 100%;
  height: auto;
}

.package-badge {
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #f97316;
  color: #fff;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
}

.field-group {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: #374151;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 0.65rem;
  background: #fff;
  color: #111827;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(27, 154, 82, 0.15);
}

.submit-btn,
.back-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), #27c067);
  color: #fff;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.submit-btn:hover,
.back-btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

.submit-btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.form-message {
  min-height: 1.1rem;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--danger);
}

.form-message.success {
  color: var(--accent-dark);
}

.final-image {
  margin-bottom: 1.5rem;
}

.whatsapp-btn {
  position: fixed;
  left: 0.8rem;
  bottom: 0.8rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #22c45f;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 30;
}

.thanks-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.thanks-card {
  max-width: 520px;
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  padding: 2rem;
  text-align: center;
}

.thanks-card p {
  color: var(--muted);
}

.back-btn {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
}

@media (min-width: 992px) {
  #main-content-wrapper {
    max-width: 800px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
  }

  .product-form {
    padding: 2rem;
  }

  #orderForm {
    padding: 1.8rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
