/* ==========================================================================
   Sri Sedono v2 — Form Pesanan Online (Mobile-First CSS)
   ========================================================================== */
:root {
  --primary: #1b4332;
  --primary-light: #2d6a4f;
  --accent: #52b788;
  --accent-light: #d8f3dc;
  --bg: #f3f6f4;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(27, 67, 50, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 40px;
}

/* Header & Brand */
.header-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #fff;
  padding: 28px 20px 24px;
  text-align: center;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.brand-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #b7e4c7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.brand-sub {
  font-size: 0.95rem;
  color: #d8f3dc;
  font-weight: 400;
}

.container {
  max-width: 580px;
  margin: -16px auto 0;
  padding: 0 16px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--accent-light);
  padding-bottom: 8px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

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

label span.req {
  color: #dc2626;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background-color: #fff;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.25);
}

.hint-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Service Selection Cards */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: #fafafa;
}

.service-card:hover {
  border-color: var(--primary-light);
  background: #f0fdf4;
}

.service-card.selected {
  border-color: var(--primary);
  background: var(--accent-light);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.15);
}

.service-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.service-card .svc-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}

.service-card .svc-price {
  font-size: 0.8rem;
  color: #047857;
  font-weight: 600;
}

.service-card .svc-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Live Calculator Box */
.calc-box {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.calc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.calc-item {
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1fae5;
}

.calc-label {
  font-size: 0.75rem;
  color: #047857;
  margin-bottom: 2px;
}

.calc-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #064e3b;
}

.calc-total {
  grid-column: span 2;
  background: #d1fae5;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calc-total .val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #065f46;
}

/* Action Buttons */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.35);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-whatsapp {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  margin-top: 12px;
}

.btn-whatsapp:hover {
  background: #1eb956;
}

/* Footer note */
.contact-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-footer a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

.contact-footer a:hover {
  text-decoration: underline;
}

/* Receipt / Sukses Card */
.receipt-card {
  border-top: 5px solid var(--accent);
}

.receipt-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1.5px dashed var(--border);
  margin-bottom: 16px;
}

.receipt-icon {
  width: 56px;
  height: 56px;
  background: #d8f3dc;
  color: #1b4332;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

.receipt-code {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  background: #f3f4f6;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 6px;
}

.receipt-rows {
  margin-bottom: 20px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

.receipt-row .r-label {
  color: var(--text-muted);
}

.receipt-row .r-val {
  font-weight: 600;
  text-align: right;
  max-width: 65%;
}

/* v2.3 — sembunyikan input jumlah yang tidak relevan dengan layanan terpilih */
.hidden { display: none !important; }
