/* ============================================================
   HALAMAN KONTAK – V2.0 MODERN & CLEAN (FULL WIDTH)
   ============================================================ */

/* =========================
   HERO SECTION - Lebih Dramatis
   ========================= */

.kontak-wrap .pengumuman-hero-wrap {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf5 50%, #dce3f0 100%);
  color: #0f172a;
  margin-top: calc(var(--head-offset) * -1) !important;
  padding-top: calc(var(--head-offset) + 2rem) !important;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
}

/* Animated background shapes */
.kontak-wrap .pengumuman-hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(13, 110, 253, 0.03) 0%, transparent 50%);
  z-index: 0;
}

.kontak-wrap .pengumuman-hero-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='dots' x='0' y='0' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='2' cy='2' r='1' fill='%230d6efd' opacity='0.08'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23dots)'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.kontak-wrap .pengumuman-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: heroFadeIn 0.8s var(--ease-swift);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kontak-wrap .pengumuman-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0f172a 0%, #0d6efd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.kontak-wrap .pengumuman-hero .lead {
  font-size: 1.1rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  padding-bottom: 1rem;
}

.kontak-wrap .pengumuman-hero .lead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0d6efd, transparent);
  border-radius: var(--radius-pill);
}

/* =========================
   WRAPPER - Full Width
   ========================= */

.kontak-wrap {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

.kontak-inner {
  width: 100%;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

/* Desktop: full width dengan padding kecil untuk readability */
@media (min-width: 1400px) {
  .kontak-inner {
    padding: 2.5rem 2rem;
    gap: 2rem;
  }
}

@media (max-width: 991.98px) {
  .kontak-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .kontak-inner {
    padding: 1rem 0.75rem;
    gap: 1rem;
  }
}

/* =========================
   CARD STYLE - Premium Cards (Fixed - No Glass)
   ========================= */

.kontak-card {
  border-radius: 24px;
  background: #ffffff;
  /* Solid white, no glass */
  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(13, 110, 253, 0.02) inset;
  color: #0f172a;
  padding: 1.75rem;
  transition: all 0.3s var(--ease-swift);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.kontak-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #4d9eff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kontak-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(13, 110, 253, 0.1) inset;
  background: #ffffff;
  /* Tetap solid white */
  border-color: rgba(13, 110, 253, 0.3);
}

.kontak-card:hover::before {
  opacity: 1;
}

/* Hapus glass effect yang bikin blur */
.kontak-card::after {
  display: none;
  /* Hilangkan radial gradient yang bikin efek glass */
}

@media (max-width: 575.98px) {
  .kontak-card {
    padding: 1.25rem;
    border-radius: 20px;
    /* Hapus backdrop-filter */
  }

  .kontak-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
  }
}

/* =========================
   INFO / PROFIL - Enhanced
   ========================= */

.kontak-info h2 {
  color: #0f172a;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kontak-info h2 i {
  color: #0d6efd;
  font-size: 1.4rem;
}

.kontak-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.kontak-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.3);
  transition: all 0.2s ease;
}

.kontak-row:hover {
  background: #ffffff;
  border-color: rgba(13, 110, 253, 0.2);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.kontak-label {
  min-width: 130px;
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.kontak-label i {
  color: #0d6efd;
  font-size: 1rem;
}

.kontak-value {
  flex: 1;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 500;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .kontak-row {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0.8rem;
  }

  .kontak-label {
    min-width: 0;
    font-size: 0.85rem;
  }

  .kontak-value {
    font-size: 0.9rem;
    padding-left: 1.2rem;
  }
}

/* =========================
   JAM OPERASIONAL - Modern
   ========================= */

.jam-operasional-container {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 20px;
  padding: 1.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.jam-header {
  margin-bottom: 1rem;
}

.jam-operasional-container h5 {
  font-weight: 600;
  color: #0f172a;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jam-operasional-container h5 i {
  color: #0d6efd;
}

#jam-hari-ini {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.status-operasional {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

#status-text {
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bg-success {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.bg-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

/* Toggle button */
#toggleJadwalBtn {
  border-radius: 40px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(13, 110, 253, 0.2);
  background: white;
  color: #0d6efd;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#toggleJadwalBtn:hover {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.25);
}

#toggleJadwalBtn:active {
  transform: translateY(0);
}

/* Jadwal list */
#semuaJadwal {
  border-radius: 16px;
  padding: 0.75rem;
  background: white;
  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

#semuaJadwal::-webkit-scrollbar {
  width: 4px;
}

#semuaJadwal::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#semuaJadwal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#semuaJadwal::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.jadwal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  border-left: 3px solid transparent;
}

.jadwal-row:hover {
  background: #f8fafc;
  border-left-color: #0d6efd;
  transform: translateX(4px);
}

.jadwal-hari {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.jadwal-jam {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  background: #f1f5f9;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

@media (max-width: 575.98px) {
  .jadwal-row {
    flex-direction: row;
    padding: 0.5rem 0.6rem;
  }

  .jadwal-jam {
    font-size: 0.8rem;
    padding: 0.15rem 0.6rem;
  }

  #jam-hari-ini {
    font-size: 1.1rem;
  }
}

/* =========================
   MAPS - Premium (Fixed)
   ========================= */

.maps-container {
  position: relative;
  height: fit-content;
}

.maps-container h2 {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.maps-container h2 i {
  color: #0d6efd;
  font-size: 1.2rem;
}

.maps-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #ffffff;
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(13, 110, 253, 0.05) inset;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.maps-frame:hover {
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(13, 110, 253, 0.15) inset;
  border-color: rgba(13, 110, 253, 0.2);
}

.maps-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  transition: none;
  /* Hapus transform effect */
}

/* Hapus hover effect di iframe */
.maps-frame:hover iframe {
  transform: none;
  /* Jangan scale maps */
}

/* Maps overlay info - lebih subtle */
.maps-container::after {
  content: '📍 Klik untuk buka Google Maps';
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-size: 0.75rem;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
  font-weight: 500;
}

.maps-container:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Quick action buttons - tambah sedikit style */
.maps-container .btn {
  border-radius: 40px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border: 1px solid rgba(13, 110, 253, 0.2);
  background: white;
  color: #0d6efd;
  transition: all 0.2s ease;
}

.maps-container .btn:hover {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.maps-container .btn:active {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .maps-frame iframe {
    height: 450px;
  }
}

@media (max-width: 575.98px) {
  .maps-frame iframe {
    height: 280px;
  }

  .maps-container::after {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    backdrop-filter: blur(2px);
  }
}

/* =========================
   BUTTONS - Enhanced
   ========================= */

.kontak-wrap .btn {
  border-radius: 40px;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-swift);
  border: none;
  position: relative;
  overflow: hidden;
}

.kontak-wrap .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.kontak-wrap .btn:hover::before {
  width: 300px;
  height: 300px;
}

.kontak-wrap .btn-outline-primary {
  background: white;
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.2);
  position: relative;
  z-index: 1;
}

.kontak-wrap .btn-outline-primary:hover {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(13, 110, 253, 0.4);
}

/* =========================
   ANIMATIONS & UTILITIES
   ========================= */

/* Stagger animation for rows */
.kontak-row {
  animation: slideInRow 0.5s var(--ease-swift) backwards;
  animation-delay: calc(var(--row-index, 0) * 0.1s);
}

@keyframes slideInRow {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse effect for status */
@keyframes gentlePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

#status-text {
  animation: gentlePulse 2s ease-in-out infinite;
}

/* =========================
   MOBILE OPTIMIZATIONS
   ========================= */
@media (max-width: 767.98px) {

  /* Hero adjustments */
  .kontak-wrap .pengumuman-hero-wrap {
    padding-top: calc(var(--head-offset) + 1rem) !important;
    padding-bottom: 2rem;
  }

  .kontak-wrap .pengumuman-hero h1 {
    font-size: 1.8rem;
  }

  .kontak-wrap .pengumuman-hero .lead {
    font-size: 0.95rem;
    padding-bottom: 0.75rem;
  }

  .kontak-wrap .pengumuman-hero .lead::after {
    width: 60px;
    height: 2px;
  }

  /* Card adjustments */
  .kontak-card {
    padding: 1.25rem;
  }

  .kontak-card:hover {
    transform: translateY(-2px);
  }

  /* Remove hover effects that might feel heavy on mobile */
  .kontak-row:hover {
    transform: none;
    background: rgba(248, 250, 252, 0.8);
  }

  .jadwal-row:hover {
    transform: none;
  }

  /* Maps overlay hint */
  .maps-container::after {
    content: '📍 Ketuk untuk buka Maps';
  }
}

/* Small phones */
@media (max-width: 375px) {
  .kontak-inner {
    padding: 0.75rem 0.5rem;
  }

  .kontak-card {
    padding: 1rem;
  }

  .kontak-info h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .kontak-row {
    padding: 0.5rem 0.6rem;
  }

  .maps-frame iframe {
    height: 220px;
  }
}

/* Landscape mode */
@media (max-height: 600px) and (orientation: landscape) {
  .kontak-wrap .pengumuman-hero-wrap {
    padding-top: calc(var(--head-offset) + 0.75rem) !important;
    padding-bottom: 1.5rem;
  }

  .kontak-inner {
    padding-top: 1rem;
  }

  .maps-frame iframe {
    height: 200px;
  }
}

/* Tambahkan di file kontak.css atau di @push('styles') */
.jadwal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.jadwal-row:last-child {
  border-bottom: none;
}

.jadwal-hari {
  font-weight: 500;
  color: #495057;
}

.jadwal-jam {
  color: #6c757d;
  font-weight: 500;
}

#semuaJadwal {
  transition: all 0.3s ease;
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
}
