/*
Theme Name: SDN 2 Temon
Theme URI: https://sdn2temon.sch.id
Author: SDN 2 Temon
Author URI: https://sdn2temon.sch.id
Description: Theme resmi SD Negeri 2 Temon, Kecamatan Baturetno, Kabupaten Wonogiri. Dirancang dengan tampilan merah putih yang menarik untuk siswa dan orang tua.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdn2temon
Tags: education, school, red, white, responsive
*/

/* =============================================
   CSS CUSTOM PROPERTIES (diatur via Customizer)
   ============================================= */
:root {
  --color-primary:     #D91C2A;
  --color-primary-dark:#A81020;
  --color-primary-light:#FF4D5B;
  --color-primary-pale:#FFF0F1;
  --color-white:       #FFFFFF;
  --color-cream:       #FFF8F8;
  --color-gold:        #F5C842;
  --color-text:        #2D1010;
  --color-text-muted:  #7A3030;
  --font-heading:      'Fredoka One', cursive;
  --font-body:         'Nunito', sans-serif;
  --border-radius:     20px;
  --shadow:            0 8px 32px rgba(217,28,42,0.13);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

/* =============================================
   LAYOUT
   ============================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 5rem 1.5rem; }

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .tag {
  display: inline-block;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-weight: 800;
  font-size: .75rem;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title h2 { font-size: clamp(1.8rem,4vw,2.8rem); }
.section-title h2 span { color: var(--color-primary); }

/* =============================================
   NAVBAR
   ============================================= */
.site-header {
  background: var(--color-primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 18px rgba(217,28,42,.3);
  height: 70px;
  display: flex; align-items: center;
  padding: 0 2rem;
  justify-content: space-between;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo img { width: 48px; height: 48px; object-fit: contain; }
.site-title-wrap { line-height: 1.2; }
.site-title, .site-title a {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
}
.site-description {
  font-size: .65rem; color: rgba(255,255,255,.85);
  font-weight: 700; display: block;
}
.main-navigation ul {
  display: flex; gap: 6px;
}
.main-navigation a {
  color: rgba(255,255,255,.88);
  font-weight: 700; font-size: .88rem;
  padding: 6px 14px; border-radius: 30px;
  transition: background .2s, color .2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block; width: 26px; height: 3px;
  background: #fff; border-radius: 2px; transition: .3s;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 3rem 2rem;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  animation: bgScroll 30s linear infinite;
}
@keyframes bgScroll { to { background-position: 80px 80px; } }

.hero-float {
  position: absolute; border-radius: 50%; opacity: .12;
  animation: floatAnim 6s ease-in-out infinite;
}
.hero-float:nth-child(1){width:260px;height:260px;background:#fff;top:-80px;right:-60px;animation-delay:0s}
.hero-float:nth-child(2){width:160px;height:160px;background:var(--color-gold);bottom:-40px;left:-50px;animation-delay:2s}
.hero-float:nth-child(3){width:100px;height:100px;background:#fff;top:40%;left:5%;animation-delay:4s}
@keyframes floatAnim{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-20px) scale(1.05)}}

.hero-content {
  text-align: center; color: #fff;
  position: relative; z-index: 2;
  max-width: 720px;
  animation: heroIn .9s ease both;
}
@keyframes heroIn{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50px; padding: 6px 18px;
  font-size: .82rem; font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: .5px; backdrop-filter: blur(6px);
}
.hero-logo {
  width: 180px; height: 180px;
  margin: 0 auto 2rem; overflow: hidden;
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem,6vw,4.2rem);
  margin-bottom: .5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,.2);
  color: #fff;
}
.hero-title span { color: var(--color-gold); }
.hero-subtitle { font-size: 1.05rem; opacity: .9; margin-bottom: .5rem; font-weight: 600; }
.hero-location { font-size: .88rem; opacity: .75; margin-bottom: 2rem; }

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: #fff; color: var(--color-primary);
  border: none; border-radius: 50px;
  padding: 13px 32px;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.btn-hero-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50px; padding: 12px 28px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); }

.hero-stats { display: flex; gap: 24px; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.stat-item {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px; padding: 12px 22px; text-align: center;
}
.stat-number { font-family: var(--font-heading); font-size: 2rem; color: #fff; }
.stat-label { font-size: .76rem; opacity: .82; font-weight: 600; color: #fff; }

/* =============================================
   KEUNGGULAN / FEATURES
   ============================================= */
.features-section { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--color-cream);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem; text-align: center;
  border: 2px solid transparent;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.feature-card::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:4px; background: linear-gradient(90deg,var(--color-primary),var(--color-gold));
  transform: scaleX(0); transition: transform .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--color-primary-light); box-shadow: var(--shadow); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg,var(--color-primary),var(--color-primary-light));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.2rem;
  box-shadow: 0 6px 20px rgba(217,28,42,.25);
  transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.1); }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-primary-dark); margin-bottom: .5rem; }
.feature-card p { font-size: .88rem; color: var(--color-text-muted); line-height: 1.6; }

/* =============================================
   KEGIATAN / EVENTS
   ============================================= */
.events-section { background: var(--color-primary-pale); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; }
.event-card {
  background: #fff; border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(217,28,42,.08);
  transition: transform .25s; display: flex;
}
.event-card:hover { transform: translateY(-5px); }
.event-date {
  background: linear-gradient(160deg,var(--color-primary),var(--color-primary-dark));
  color: #fff; min-width: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 10px;
  font-family: var(--font-heading); font-size: 1.5rem; line-height: 1;
}
.event-date span { font-size: .7rem; font-family: var(--font-body); font-weight: 800; opacity: .85; }
.event-body { padding: 1.2rem; flex: 1; }
.event-type {
  display: inline-block; background: var(--color-primary-pale);
  color: var(--color-primary); font-size: .7rem; font-weight: 800;
  padding: 2px 10px; border-radius: 20px; margin-bottom: 6px;
}
.event-body h4 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-text); margin-bottom: 4px; }
.event-body p { font-size: .82rem; color: var(--color-text-muted); }

/* =============================================
   GALERI
   ============================================= */
.gallery-section { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.gallery-item {
  border-radius: 16px; overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: 1;
  transition: transform .25s;
}
.gallery-item:first-child { grid-column: span 2; aspect-ratio: auto; min-height: 200px; }
.gallery-item:hover { transform: scale(.97); }
.gallery-item img { width:100%; height:100%; object-fit:cover; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(169,16,32,.75),transparent);
  display: flex; align-items: flex-end; padding: 14px;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-weight: 800; font-size: .88rem; }

/* =============================================
   EKSTRAKULIKULER
   ============================================= */
.ekskul-section {
  background: linear-gradient(135deg,var(--color-primary-dark),var(--color-primary));
}
.ekskul-section .section-title .tag { background: rgba(255,255,255,.18); color: #fff; }
.ekskul-section .section-title h2 { color: #fff; }
.ekskul-section .section-title h2 span { color: var(--color-gold); }
.ekskul-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ekskul-pill {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50px; color: #fff;
  padding: 10px 22px; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s, transform .2s;
}
.ekskul-pill:hover { background: rgba(255,255,255,.28); transform: translateY(-3px); }
.ekskul-icon { font-size: 1.3rem; }

/* =============================================
   GURU / STAFF
   ============================================= */
.guru-section { background: #fff; }
.guru-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 1.5rem; }
.guru-card {
  background: var(--color-cream);
  border-radius: var(--border-radius);
  padding: 2rem 1.2rem; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.guru-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.guru-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  background: linear-gradient(135deg,var(--color-primary),var(--color-primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 18px rgba(217,28,42,.18);
}
.guru-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.guru-card h4 { font-family: var(--font-heading); font-size: 1rem; color: var(--color-text); margin-bottom: 4px; }
.guru-card .guru-jabatan { font-size: .78rem; color: var(--color-text-muted); font-weight: 600; }

/* =============================================
   PENGUMUMAN
   ============================================= */
.pengumuman-section { background: var(--color-cream); }
.announce-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.announce-item {
  background: #fff; border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1.2rem;
  box-shadow: 0 3px 14px rgba(217,28,42,.07);
  border-left: 5px solid var(--color-primary);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.announce-item:hover { transform: translateX(6px); box-shadow: 0 6px 22px rgba(217,28,42,.13); }
.announce-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--color-primary-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.announce-info { flex: 1; }
.announce-info h4 { font-weight: 800; font-size: .95rem; margin-bottom: 3px; }
.announce-info p { font-size: .8rem; color: var(--color-text-muted); }
.announce-date {
  flex-shrink: 0; font-size: .75rem; color: var(--color-text-muted);
  font-weight: 700; background: var(--color-primary-pale);
  padding: 4px 12px; border-radius: 20px;
}

/* =============================================
   VISI MISI
   ============================================= */
.visimisi-section { background: var(--color-primary-pale); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.vm-box {
  background: #fff; border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 4px 18px rgba(217,28,42,.08);
}
.vm-box h3 {
  font-family: var(--font-heading); font-size: 1.5rem;
  color: var(--color-primary); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.vm-box p { color: var(--color-text-muted); line-height: 1.75; font-size: .92rem; }
.vm-box ul { display: flex; flex-direction: column; gap: 10px; }
.vm-box li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: var(--color-text-muted);
  line-height: 1.6; text-align: justify;
}
.vm-box li::before { content:'★'; color: var(--color-primary); font-size: .8rem; margin-top: 3px; flex-shrink: 0; }

/* =============================================
   KONTAK
   ============================================= */
.kontak-section { background: #fff; }
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.kontak-info { display: flex; flex-direction: column; gap: 1rem; }
.kontak-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-cream); border-radius: 14px; padding: 1rem 1.2rem;
}
.kontak-row .k-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg,var(--color-primary),var(--color-primary-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.kontak-row p { font-size: .83rem; color: var(--color-text-muted); }
.kontak-row strong { display: block; font-weight: 800; color: var(--color-text); font-size: .95rem; }
.kontak-form { background: var(--color-cream); border-radius: var(--border-radius); padding: 2rem; }
.kontak-form h3 { font-family: var(--font-heading); color: var(--color-primary); font-size: 1.4rem; margin-bottom: 1.2rem; }

/* =============================================
   SCROLL TOP BUTTON
   ============================================= */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 50px; height: 50px;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(217,28,42,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, opacity .3s;
  opacity: 0; pointer-events: none; z-index: 200;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: scale(1.1) translateY(-3px); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.85);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2rem;
}
.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem; color: #fff;
  display: flex; align-items: center; gap: 10px; margin-bottom: .8rem;
}
.footer-brand .footer-logo img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand p { font-size: .83rem; line-height: 1.7; opacity: .75; }
.site-footer h4 { font-family: var(--font-heading); color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer li a { color: rgba(255,255,255,.7); font-size: .85rem; transition: color .2s; }
.site-footer li a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.2rem; text-align: center;
  font-size: .8rem; opacity: .6;
  max-width: 1100px; margin: 0 auto;
}

/* =============================================
   SINGLE POST / PAGE
   ============================================= */
.entry-content { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; line-height: 1.8; }
.entry-content h1,.entry-content h2,.entry-content h3 { color: var(--color-primary); margin: 1.5rem 0 .75rem; }
.entry-content p { margin-bottom: 1rem; }

/* =============================================
   CONTACT FORM (CF7 / native)
   ============================================= */
.wpcf7-form .form-group { margin-bottom: 1rem; }
.wpcf7-form label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 5px; color: var(--color-text-muted); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%; padding: 10px 14px;
  border: 2px solid #f0d5d7; border-radius: 12px;
  font-family: var(--font-body); font-size: .92rem;
  transition: border-color .2s; background: #fff;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--color-primary); }
.wpcf7-form textarea { height: 100px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  width: 100%;
  background: linear-gradient(90deg,var(--color-primary),var(--color-primary-light));
  color: #fff; border: none; border-radius: 12px;
  padding: 12px; font-family: var(--font-body);
  font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.wpcf7-form input[type="submit"]:hover { opacity: .9; transform: translateY(-2px); }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85); z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  background: #fff; border-radius: 20px;
  padding: 1rem; max-width: 90vw; max-height: 90vh;
  overflow: hidden;
  transform: scale(.85); transition: transform .3s;
}
.lightbox.open .lightbox-inner { transform: scale(1); }
.lightbox-inner img { max-width: 80vw; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox-caption { text-align: center; padding: .75rem 0 0; font-weight: 800; color: var(--color-primary); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .vm-grid, .kontak-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .main-navigation { display: none; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--color-primary-dark);
    padding: 1rem; gap: 4px;
  }
  .main-navigation.open { display: flex; }
  .main-navigation ul { flex-direction: column; }
  .menu-toggle { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item:first-child { grid-column: span 2; }
}

/* =============================================
   FORM KONTAK – WHATSAPP (updated)
   ============================================= */
.kontak-form {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 6px 28px rgba(217,28,42,.1);
  border: 1.5px solid #f5e0e2;
}
.kontak-form h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--color-primary-pale);
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: .83rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-label-icon { font-size: 1rem; }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #eedfe1;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217,28,42,.08);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D91C2A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group textarea {
  height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
  font-size: .88rem;
}

/* Submit button */
.btn-send {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(37,211,102,.3);
  margin-top: .5rem;
}
.btn-send:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}
.btn-send:active { transform: translateY(0); }

/* Catatan di bawah tombol */
.form-note {
  text-align: center;
  font-size: .78rem;
  color: #aaa;
  margin-top: .75rem;
  line-height: 1.5;
}
.form-note strong { color: var(--color-text-muted); }

/* Validasi error state */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
  background: #fff8f8;
}
.form-group .error-msg {
  color: #e74c3c;
  font-size: .76rem;
  font-weight: 700;
  margin-top: 4px;
  display: none;
}
.form-group input.error ~ .error-msg,
.form-group select.error ~ .error-msg,
.form-group textarea.error ~ .error-msg { display: block; }

@media (max-width: 600px) {
  .kontak-form { padding: 1.5rem 1.2rem; }
  .btn-send { font-size: .92rem; padding: 13px 16px; }
}
