:root {
  --primary-color: #f7a89e;   /* Peach lembut */
  --secondary-color: #fdd5c4; /* Peach muda pastel */
  --accent-color: #ffb347;    /* Orange peach untuk aksen */
  --text-color: #4a3f35;      /* Coklat gelap lembut */
  --background-color: #fff7f3;/* Latar peach pucat */
  --error-color: #e63946;     /* Merah soft */
}

body {
  font-family:'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-color);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 850px;
  width: 100%;
  margin: 2rem auto;
  position: relative;
  z-index: 1;
}

/* Tablet */
@media (max-width: 768px) {
  .content {
    padding: 1.5rem;
    margin: 1.5rem auto;
    /* auto supaya tetap center */
  }
}

/* Mobile */
@media (max-width: 480px) {
  .content {
    padding: 1rem;
    margin: 1rem auto;
    /* selalu simetris kiri-kanan */
    border-radius: 0.75rem;
    max-width: 95%;
    /* biar ada jarak kiri kanan */
  }

  .content h1,
  .content h2,
  .content h3 {
    font-size: 1.25rem;
    text-align: center;
    /* opsional, biar rapi di HP */
  }

  .content p {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: justify;
    /* supaya rata kanan kiri */
  }

  .btn {
    display: block;
    width: 100%;
    /* tombol full width */
    font-size: 1rem;
    padding: 0.75rem;
    margin-top: 1rem;
  }
}

.decorative-image {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 220px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* Judul */
.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.card-subtitle {
  color: #8d7b6a;
  margin-bottom: 2rem;
  font-size: 1rem;
  text-align: center;
}

.invitation-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.signature {
  margin-top: 1.5rem;
  text-align: right;
  font-weight: 500;
  /*color: var(--primary-color);*/
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-back {
  background-color: #e5e7eb;
  color: var(--text-color);
  border: none;
}

.btn-back:hover {
  background-color: #d1d5db;
}

/* Button */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}
.btn-primary:hover {
  background-color: #f48b7a; /* peach lebih gelap */
}

.btn-success {
  background-color: var(--accent-color);
  color: white;
  border: none;
}
.btn-success:hover {
  background-color: #ff9933;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .decorative-image {
    display: none;
  }
}

/* Highlight box */
.highlight-box {
  background: #fffaf7;
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  color: #5a463a;
  font-size: 0.95rem;
  line-height: 1.6;
}

.highlight-amount {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.05rem;
}

.job-option {
  display: block;
  cursor: pointer;
}

.job-option input {
  display: none;
}

.job-box {
  border: 2px dashed #dcdcdc;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  background: #fff;
  margin-top: 10px;
}

.job-box i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
  color: #4a5568;
}

.job-box h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.job-box p {
  font-size: 0.9rem;
  color: #6c757d;
}

.job-option input:checked + .job-box {
  border-color: #198754;
  background: #e8f5e9;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

/* === FORM DEMOGRAFI === */
.demografi-form {
  margin-top: 20px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #333;
}

/* Grup Input */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 15px;
  color: #222;
}

/* Opsi Pilihan (Grid) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
}

.option-card input {
  display: none;
}

.option-card .option-body {
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

/* Hover Style */
.option-card:hover {
  border-color: #28a745;
  background: #f6fff9;
}

/* Selected Style → seluruh kartu berubah */
.option-card input:checked + .option-body {
  color: #28a745;
  font-weight: 600;
}

.option-card input:checked ~ .option-body {
  color: #28a745;
  font-weight: 600;
}

/* Trik biar kartu ikut berubah */
.option-card input:checked ~ .option-body::before {
  content: "✓ ";
  color: #28a745;
  font-weight: bold;
}

/* Gunakan parent untuk ubah kartu */
.option-card:has(input:checked) {
  border-color: #28a745;
  background: #eafff2;
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.4);
}

/* Input Group */
.input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.input-group .form-control {
  border: none;
  flex: 1;
  padding: 12px 14px;
  font-size: 14px;
}

.input-group .form-control:focus {
  outline: none;
  background: #f9fdf9;
}

.input-suffix {
  background: #f1f3f5;
  padding: 12px 16px;
  font-size: 14px;
  color: #555;
  border-left: 1px solid #ddd;
}

/* Tombol Navigasi */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.btn {
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Tombol Kembali */
.btn-back {
  background: #f1f1f1;
  color: #444;
}

.btn-back:hover {
  background: #e1e1e1;
}

/* Tombol Lanjut */
.btn-success {
  background: #28a745;
  color: #fff;
}

.btn-success:hover {
  background: #218838;
}

/* Responsif */
@media (max-width: 576px) {
  .option-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

.modal-backdrop {
  z-index: 1050 !important;
}
.modal {
  z-index: 1060 !important;
}
body.modal-open {
  overflow: auto !important;
}

.custom-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-textarea:focus {
    border-color: #28a745; /* hijau senada dengan tombol */
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.3);
}