:root {
  --primary-orange: #f15a24;
  --dark-green: #1b4d3e;
  --light-green: #2d6a4f;
  --bg-color: #f0f2f5;
  --text-dark: #1f2d27;
  --muted: #64736c;
  --input-bg: #f7f9f8;
  --card: #ffffff;
  --line: #e0e6e3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(27, 77, 62, 0.12), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(241, 90, 36, 0.12), transparent 40%),
    var(--bg-color);
  margin: 0;
  padding: 24px 18px 60px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  color: var(--text-dark);
}

.app-shell {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 18px;
}

.hero-card {
  background: linear-gradient(135deg, var(--dark-green), var(--light-green));
  color: #fff;
  border-radius: 24px;
  padding: 28px 22px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 36px rgba(15, 54, 37, 0.28);
  animation: floatIn 0.7s ease-out both;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-card::before {
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
}

.hero-card::after {
  width: 140px;
  height: 140px;
  right: -30px;
  bottom: -50px;
  background: rgba(255, 255, 255, 0.18);
}

.logo-pill {
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}

.logo-pill img {
  width: 180px;
  height: auto;
  display: block;
}

.hero-card h1 {
  margin: 16px 0 4px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.hero-card p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.form-card,
.result-card {
  background: var(--card);
  border-radius: 22px;
  padding: 22px 20px 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: rise 0.6s ease both;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0;
}

.section-subtitle {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.section-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.input-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2a3a32;
}

.req {
  color: var(--primary-orange);
  font-weight: 700;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: #7a8a82;
  font-size: 18px;
  z-index: 1;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 14px 14px 14px 46px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--input-bg);
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  font-family: inherit;
}

input[type="file"] {
  width: 100%;
  padding: 10px 12px 10px 46px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.92rem;
  color: var(--text-dark);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: none;
  background: #e9f0ec;
  color: #1b4d3e;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--input-bg);
  color: #1b4d3e;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}

.photo-action i {
  color: var(--primary-orange);
}

.photo-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.photo-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.photo-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.photo-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text-dark);
}

.photo-chip button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f4ebe8;
  color: var(--primary-orange);
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.12);
}

.textarea-wrap textarea {
  padding-left: 16px;
  min-height: 140px;
  resize: vertical;
}

.helper {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

.btn-submit {
  background: linear-gradient(90deg, #f15a24 0%, #ff7e5f 100%);
  color: #fff;
  border: none;
  width: 100%;
  padding: 18px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 14px 24px rgba(241, 90, 36, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:active {
  transform: scale(0.98);
  box-shadow: 0 10px 18px rgba(241, 90, 36, 0.18);
}

.btn-submit:disabled,
.opacity-50 {
  opacity: 0.6;
}

.status {
  text-align: center;
  margin-top: 16px;
  font-weight: 700;
}

.text-green-600 {
  color: #16a34a;
}

.text-red-600 {
  color: #dc2626;
}

.result-card {
  display: grid;
  gap: 12px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  background: var(--dark-green);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.result-button.secondary {
  background: #e9f0ec;
  color: var(--dark-green);
}

.result-card textarea {
  padding: 14px;
  min-height: 230px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.hidden,
.result-card.hidden {
  display: none !important;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  body {
    padding: 18px 12px 44px;
  }

  .logo-pill img {
    width: 150px;
  }

  .hero-card {
    padding: 24px 18px;
  }
}
