﻿:root {
  --bg-start: #f5f7fb;
  --bg-end: #ecf5ff;
  --card-bg: #ffffff;
  --text: #1a2230;
  --muted: #5e6b80;
  --primary: #0b6ef6;
  --primary-strong: #0958c4;
  --accent: #00a989;
  --danger: #c43d4c;
  --border: #dbe5f3;
  --shadow: 0 14px 40px rgba(16, 36, 94, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: radial-gradient(circle at 15% 15%, #ffffff 0%, transparent 38%), linear-gradient(145deg, var(--bg-start), var(--bg-end));
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(860px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.brand-logo {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #3f5f86;
  line-height: 1;
  white-space: nowrap;
}

.subtitle {
  margin: 10px 0 24px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label,
legend {
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 110, 246, 0.16);
}

.extras {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  gap: 10px;
}

.extras label {
  font-weight: 600;
  color: #2b374d;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.extras input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.extras label span {
  display: inline-block;
}

small {
  color: var(--muted);
}

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

button {
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

button:hover {
  filter: brightness(1.05);
}

button:active {
  transform: translateY(1px);
}

.result {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fbfdff;
}

.result.error {
  border-color: #f2c7ce;
  background: #fff7f8;
  color: var(--danger);
}

.result h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.result p {
  margin: 6px 0;
}

.result .total {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.result-note {
  margin-top: 8px;
  margin-bottom: 2px;
  color: #4c5d76;
  font-size: 0.92rem;
  font-weight: 600;
}

.result-note-small {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.result-cta {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #00a989, #007d67);
  box-shadow: 0 10px 24px rgba(0, 125, 103, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.result-cta:hover {
  filter: brightness(1.05);
}

.result-cta:active {
  transform: translateY(1px);
}

.result-cta-secondary {
  margin-top: 14px;
  width: 100%;
  border: 1px solid #b8c8df;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  color: #1f3f66;
  background: #eef4ff;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.result-cta-secondary:hover {
  filter: brightness(0.98);
}

.result-cta-secondary:active {
  transform: translateY(1px);
}

@media (max-width: 700px) {
  .card {
    padding: 20px;
    border-radius: 14px;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }
}

.whatsapp-float {
  position: fixed;
  right: clamp(14px, 2.8vw, 24px);
  bottom: clamp(14px, 2.8vw, 24px);
  width: clamp(52px, 7vw, 60px);
  height: clamp(52px, 7vw, 60px);
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(22, 140, 74, 0.35);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.whatsapp-float:hover {
  filter: brightness(1.05);
}

.whatsapp-float:active {
  transform: translateY(1px);
}

.whatsapp-float svg {
  width: 54%;
  height: 54%;
  fill: #fff;
}
