:root {
  --bg-color: #e0e5ec;
  --primary: #4a90e2;
  --wa-color: #25D366;
  --receipt-bg: #fdfdfd;
  --text-dark: #333;
  --text-light: #777;
}

* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--bg-color); margin: 0; padding: 20px; display: flex; justify-content: center; }

.container { display: flex; gap: 30px; flex-wrap: wrap; max-width: 900px; width: 100%; }

.form-section, .preview-section {
  background: white; padding: 25px; border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex: 1; min-width: 300px;
}

h2, h3 { margin-top: 0; color: var(--text-dark); }

label { display: block; margin: 10px 0 5px; font-weight: 600; font-size: 14px; color: var(--text-dark); }
input, select {
  width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px;
  font-size: 14px; transition: border 0.3s; background: white;
}
input:focus, select:focus { border-color: var(--primary); outline: none; }

.action-buttons { display: flex; gap: 10px; margin-top: 20px; }
button {
  flex: 1; padding: 12px; border: none; border-radius: 6px;
  font-weight: bold; cursor: pointer; transition: 0.3s; color: white;
}
.btn-save { background: var(--primary); }
.btn-save:hover { background: #357abd; }
.btn-wa { background: var(--wa-color); }
.btn-wa:hover { background: #1ebe5d; }

/* === GAYA STRUK (Mengikuti Referensi) === */
.struk-wrapper { display: flex; justify-content: center; margin-top: 15px; }

.receipt {
  width: 280px; background: var(--receipt-bg); padding: 20px;
  /* Efek zig-zag atas bawah */
  mask-image: radial-gradient(circle at 50% 0, transparent 5px, black 6px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cpolygon points='0,10 10,0 20,10' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 20px 10px;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: bottom;
  padding-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  font-family: 'Courier New', Courier, monospace; /* Font struk */
  color: var(--text-dark);
}

.receipt-header { text-align: center; }
.receipt-header h1 { margin: 0 0 5px; font-size: 22px; letter-spacing: 2px; font-weight: normal; }
.studio-info { font-size: 10px; line-height: 1.3; color: var(--text-light); margin-bottom: 10px; }

.dashed-line { border-bottom: 2px dashed #ccc; margin: 10px 0; }

.receipt-body { font-size: 12px; }
.row { display: flex; justify-content: space-between; margin: 5px 0; }
.row span:first-child { color: var(--text-light); }
.row span:last-child { font-weight: bold; text-align: right; max-width: 60%; word-break: break-word;}

.total-row { font-size: 14px; font-weight: bold; margin-top: 10px; }
.link-row { margin-top: 10px; }
.link-text { font-size: 9px; color: var(--text-light); word-break: break-all; line-height: 1.2; margin-bottom: 10px; }

.receipt-footer { text-align: center; margin-top: 15px; }
.stars { letter-spacing: 5px; color: #ccc; font-size: 14px; margin: 5px 0; }
.receipt-footer p { font-size: 10px; margin: 0; color: var(--text-light); }