/* ============================================================================
   KAYAN -- CONTACT PAGE TEMPLATE
   Contact Info Cards, Hours, Map, Form
   Extracted from custom.css — conditionally loaded on contact-template.php only.
============================================================================ */

/* -- CONTACT INFO CARDS -------------------------------------------------- */
.k-contact-info{
  padding-block: clamp(60px, 10vw, 100px);
  background: #f9f8f7;
}
.k-contact-info__grid{
  display: grid; gap: clamp(24px, 3.5vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.k-contact-info__card{
  background: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 40px);
  border: 1px solid #e6ecf6; transition: box-shadow .3s ease, transform .3s ease;
  text-align: center;
}
.k-contact-info__card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(6, 3, 21, .08);
}
.k-contact-info__icon{
  display: block; margin: 0 auto 20px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #ff8e90));
  border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 10px 28px rgba(255, 62, 65, .25);
}
.k-contact-info__icon svg{ width: 30px; height: 30px; }
.k-contact-info__title{
  margin: 0 0 12px; font-weight: 900; color: var(--dark); font-size: 18px;
}
.k-contact-info__value{
  display: block; margin: 0 0 6px; color: var(--dark); font-weight: 800;
  font-size: 16px; text-decoration: none;
  transition: color .2s ease;
}
.k-contact-info__value:hover{ color: var(--primary); }
.k-contact-info__secondary{
  margin: 0; color: #6b7280; font-size: 13px;
}
.k-contact-info__actions{
  margin-top: 12px;
}
.k-btn--wa.k-btn--sm{
  --h: 38px; --px: 12px;
  font-size: 13px;
}

/* -- BUSINESS HOURS TABLE ------------------------------------------------ */
.k-hours{
  padding-block: clamp(50px, 8vw, 100px);
  background: #fff;
}
.k-hours__head{
  text-align: center; margin-bottom: clamp(50px, 8vw, 80px);
}
.k-hours__title{
  margin: 0 0 12px; font-weight: 900; font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15; color: var(--dark);
}
.k-hours__sub{
  margin: 0; color: #6b7280; font-size: clamp(15px, 2vw, 17px);
}
.k-hours__table{
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 16px;
  border: 1px solid #e6ecf6; overflow: hidden;
  box-shadow: 0 4px 16px rgba(6, 3, 21, .05);
}
.k-hours__table thead{
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #ff8e90));
  color: #fff;
}
.k-hours__table th{
  padding: clamp(14px, 2vw, 20px); font-weight: 900;
  text-align: start; font-size: 14px;
}
.k-hours__table td{
  padding: clamp(14px, 2vw, 20px); border-top: 1px solid #e6ecf6;
  color: var(--dark);
}
.k-hours__table tbody tr:hover{
  background: #f9f8f7;
}
.k-hours__table tbody tr.is-today{
  background: linear-gradient(180deg, rgba(255, 62, 65, .05), transparent);
  font-weight: 800;
}
.k-hours__day{
  font-weight: 800;
}
.k-hours__time{
  font-family: 'Courier New', monospace; font-weight: 700; color: var(--primary);
}

/* -- MAP & FORM SIDE-BY-SIDE --------------------------------------------- */
.k-contact-split{
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
@media (max-width: 1024px){ .k-contact-split{ grid-template-columns: 1fr; min-height: auto; } }

/* Map */
.k-map{
  order: -1;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
}
@media (max-width: 1024px){ .k-map{ order: 0; min-height: 400px; } }
.k-map__container{
  width: 100%; height: 100%;
}
.k-map__container iframe{
  width: 100%; height: 100%; border: 0;
}

/* Form */
.k-contact-form{
  padding-block: clamp(50px, 8vw, 100px);
  padding-inline: clamp(20px, 4vw, 60px);
  background: #fff;
}
.k-contact-form__head{
  margin-bottom: clamp(40px, 6vw, 60px);
}
.k-contact-form__title{
  margin: 0 0 12px; font-weight: 900; font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15; color: var(--dark);
}
.k-contact-form__sub{
  margin: 0; color: #6b7280; font-size: clamp(15px, 2vw, 16px);
}

.k-form{
  max-width: 100%;
}
.k-form__grid{
  display: grid; gap: clamp(16px, 2.5vw, 24px);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px){ .k-form__grid{ grid-template-columns: 1fr; } }
.k-form__field{
  display: grid; gap: 6px;
}
.k-form__field--full{
  grid-column: 1 / -1;
}
.k-form__field label{
  font-weight: 800; color: var(--dark); font-size: 14px;
}
.k-form__field label span{
  color: var(--primary);
}
.k-form__field input,
.k-form__field select,
.k-form__field textarea{
  padding: clamp(12px, 2vw, 16px);
  border: 1.5px solid #e6ecf6; border-radius: 12px;
  font: inherit; color: var(--dark); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.k-form__field input::placeholder,
.k-form__field textarea::placeholder{
  color: #b4bcc4;
}
.k-form__field input:focus,
.k-form__field select:focus,
.k-form__field textarea:focus{
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 62, 65, .1);
}
.k-form__field textarea{
  resize: vertical; min-height: 120px;
}
.k-form__actions{
  margin-top: clamp(24px, 4vw, 32px);
}
.k-form__hint{
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; color: #9ca3af; font-size: 13px;
}
.k-form__hint svg{ flex: 0 0 14px; }

/* -- 24/7 HOURS BADGE SECTION -------------------------------------------- */
.k-hours__24-7{
  display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 4vw, 32px);
  padding: clamp(30px, 5vw, 50px); border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 62, 65, .08), rgba(14, 27, 145, .08));
  border: 1px solid rgba(255, 62, 65, .15);
}

.k-hours__badge{
  display: flex; align-items: center; gap: 12px;
  padding: clamp(14px, 2vw, 18px) clamp(24px, 4vw, 32px);
  border-radius: 12px; background: #fff;
  box-shadow: 0 4px 12px rgba(255, 62, 65, .1);
  font-weight: 800; color: var(--dark); font-size: clamp(15px, 2vw, 18px);
}

.k-hours__badge-dot{
  display: inline-block; width: 10px; height: 10px;
  background: #10b981; border-radius: 50%;
  animation: k-pulse-online 2s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes k-pulse-online{
  0%, 100%{
    opacity: 1; transform: scale(1);
  }
  50%{
    opacity: 0.6; transform: scale(1.1);
  }
}

.k-hours__message{
  margin: 0; text-align: center; color: #6b7280;
  font-size: clamp(14px, 2vw, 16px); line-height: 1.6;
}

/* -- FORM WRAPPER MARGIN CONTROL ----------------------------------------- */
.k-contact-form__inner{
  padding-left: clamp(15px, 3vw, 50px) !important;
  padding-right: clamp(15px, 3vw, 50px) !important;
}

/* -- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce){
  .k-hours__badge-dot{
    animation: none !important;
    transition: none !important;
  }
}
