@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

/* ═══════════════════════════════════════════
   KISAH KASIH IBU — Page Styles
   ═══════════════════════════════════════════ */

/* ── HERO ── */
.kkibu-hero {
  position: relative;
  background: #28903b;
  overflow: hidden;
  min-height: 760px;
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  box-sizing: border-box;
}
.kkibu-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Envelope wrapper — centered in hero */
.kkibu-envelope-wrap {
  position: relative;
  z-index: 2;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  flex-shrink: 0;
}
.kkibu-envelope-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(-1.89deg);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.35));
}
.kkibu-kki-logo-small {
  position: absolute;
  top: 12%;
  left: 62%;
  width: 11%;
  height: auto;
  transform: rotate(4.54deg);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
}

/* Form overlaid on envelope */
.kkibu-form-on-envelope {
  position: absolute;
  top: 13%;
  left: 27%;
  width: 255px;
  transform: rotate(-1.89deg);
}
.kkibu-env-field {
  margin-bottom: 14px;
}
.kkibu-env-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #444;
  margin-bottom: 4px;
  font-family: 'Open Sans', sans-serif;
}
.kkibu-env-input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #888;
  background: transparent;
  font-size: 13px;
  color: #333;
  font-family: 'Open Sans', sans-serif;
  padding-bottom: 6px;
  outline: none;
  box-sizing: border-box;
}
.kkibu-env-input::placeholder { color: #888; }
.kkibu-env-input:focus { border-bottom-color: #28903b; }
.kkibu-env-consent {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.kkibu-env-consent input { accent-color: #28903b; width: 13px; height: 13px; flex-shrink: 0; }
.kkibu-env-consent span { font-size: 8px; color: #444; font-family: 'Open Sans', sans-serif; line-height: 1.4; }
.kkibu-env-submit {
  background: #28903b;
  color: #f5f5f5;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  border: none;
  border-radius: 9999px;
  padding: 7px 20px;
  cursor: pointer;
  transition: background .2s;
}
.kkibu-env-submit:hover { background: #1f6e2d; }

/* ── STORIES SECTION ── */
.kkibu-stories {
  background: #f9f9f9;
  padding: 80px 24px;
}
.kkibu-stories-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.kkibu-stories-hd {
  margin-bottom: 48px;
}
.kkibu-stories-title {
  font-size: 36px;
  font-weight: 700;
  color: #1b1c18;
  margin: 0 0 8px;
}
.kkibu-stories-sub {
  font-size: 17px;
  color: #52525b;
  margin: 0;
}
.kkibu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.kkibu-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.kkibu-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.kkibu-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.kkibu-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kkibu-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kkibu-card-name { font-size: 16px; font-weight: 700; color: #28903b; margin: 0; }
.kkibu-card-location { font-size: 13px; color: #a1a1aa; margin: 0; }
.kkibu-card-text {
  font-size: 15px;
  color: #3f4a3d;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty state */
.kkibu-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: #a1a1aa;
}
.kkibu-empty p { font-size: 17px; margin: 8px 0 0; }

/* CTA banner below stories */
.kkibu-cta-banner {
  background: #28903b;
  padding: 60px 24px;
  text-align: center;
}
.kkibu-cta-banner-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.kkibu-cta-banner h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.kkibu-cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin: 0;
  line-height: 1.6;
}
.kkibu-cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #28903b;
  font-size: 15px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 14px 36px;
  text-decoration: none;
  margin-top: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.kkibu-cta-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }

/* ═══════════════════════════════════════════
   SUBMIT PAGE
   ═══════════════════════════════════════════ */
.kkibu-submit-page {
  background: #28903b;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.kkibu-submit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 60%;
  object-fit: cover;
  pointer-events: none;
}
.kkibu-submit-wrap {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px;
}
.kkibu-submit-header {
  text-align: center;
  margin-bottom: 40px;
}
.kkibu-submit-logo {
  width: 180px;
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}
.kkibu-submit-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.kkibu-submit-sub {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin: 0;
  line-height: 1.6;
}
.kkibu-form {
  background: #fff;
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.kkibu-field { display: flex; flex-direction: column; gap: 8px; }
.kkibu-label { font-size: 14px; font-weight: 600; color: #1b1c18; }
.kkibu-label span { color: #e53e3e; margin-left: 2px; }
.kkibu-input,
.kkibu-textarea {
  border: 1.5px solid #e4e4e7;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: #1b1c18;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: #fafafa;
  width: 100%;
  box-sizing: border-box;
}
.kkibu-input:focus, .kkibu-textarea:focus {
  border-color: #28903b;
  box-shadow: 0 0 0 3px rgba(40,144,59,.12);
  background: #fff;
}
.kkibu-textarea { min-height: 180px; resize: vertical; }
.kkibu-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed #d4d4d8;
  border-radius: 12px;
  padding: 32px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color .2s, background .2s;
  text-align: center;
}
.kkibu-file-label:hover { border-color: #28903b; background: #f0faf2; }
.kkibu-file-hint { font-size: 13px; color: #a1a1aa; margin: 0; }
.kkibu-file-name { font-size: 14px; color: #28903b; font-weight: 600; margin: 0; display: none; }
.kkibu-file-input { display: none; }
.kkibu-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #52525b;
  line-height: 1.5;
}
.kkibu-consent input[type=checkbox] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: #28903b;
  margin-top: 2px;
}
.kkibu-submit-btn {
  background: #28903b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 18px 48px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  width: 100%;
}
.kkibu-submit-btn:hover { background: #1f6e2d; transform: translateY(-1px); }
.kkibu-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.kkibu-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 28px;
}
.kkibu-back-link:hover { color: #fff; }
.kkibu-alert {
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
}
.kkibu-alert.success { background: #f0faf2; color: #1f6e2d; border: 1.5px solid #86efac; }
.kkibu-alert.error   { background: #fff5f5; color: #c53030; border: 1.5px solid #feb2b2; }

/* ── THANK YOU PAGE ── */
.kkibu-thankyou-hero { min-height: 760px; }

.kkibu-ty-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kkibu-ty-envelope-outer {
  position: relative;
  width: min(551px, 85vw);
}

.kkibu-ty-envelope-img {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-1.31deg);
  filter: drop-shadow(0 16px 48px rgba(0,0,0,.3));
}

/* Promo code — positioned ~18% from top, ~23% from left of envelope */
.kkibu-ty-promo {
  position: absolute;
  top: 18%;
  left: 23%;
  width: 54%;
  text-align: center;
  transform: rotate(-1.64deg);
  font-family: 'Caveat', cursive;
  color: #28903b;
  line-height: 1.3;
}
.kkibu-ty-promo-label  { font-size: clamp(13px, 2.5vw, 19px); }
.kkibu-ty-promo-code   { font-size: clamp(13px, 2.5vw, 19px); font-weight: 700; }

/* Thank you text — ~76% from top */
.kkibu-ty-thanks {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%) rotate(-1.64deg);
  white-space: nowrap;
  font-family: 'Caveat', cursive;
  font-size: clamp(12px, 2vw, 16px);
  color: #28903b;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .kkibu-hero { min-height: unset; padding: 60px 16px 50px; }
  .kkibu-envelope-wrap { width: min(360px, 92vw); height: min(360px, 92vw); }
  .kkibu-kki-logo-small { width: 40px; }

  /* Form on envelope — slightly larger text so it's usable on touch */
  .kkibu-form-on-envelope { width: 155px; top: 12%; left: 26%; }
  .kkibu-env-field { margin-bottom: 9px; }
  .kkibu-env-label { font-size: 9px; }
  .kkibu-env-input { font-size: 12px; padding-bottom: 5px; }
  .kkibu-env-consent span { font-size: 8px; }
  .kkibu-env-submit { font-size: 9px; padding: 6px 16px; }

  .kkibu-stories { padding: 40px 16px; }
  .kkibu-stories-title { font-size: 24px; }
  .kkibu-stories-sub { font-size: 15px; }
  .kkibu-grid { grid-template-columns: 1fr; gap: 18px; }
  .kkibu-card-body { padding: 18px; }
  .kkibu-card-name { font-size: 15px; }
  .kkibu-card-text { font-size: 14px; }

  .kkibu-cta-banner { padding: 44px 20px; }
  .kkibu-cta-banner h2 { font-size: 22px; }
  .kkibu-cta-banner p { font-size: 14px; }

  .kkibu-form { padding: 28px 20px; }
  .kkibu-submit-wrap { padding: 52px 16px; }
  .kkibu-submit-title { font-size: 24px; }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .kkibu-grid { grid-template-columns: repeat(2, 1fr); }
}
