.kcm-contact-layout {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: minmax(0, 760px) 520px;
  align-items: start;
  gap: 20px;
  direction: rtl;
}

.kcm-form,
.rgcm-form {
  width: 100%;
  padding: 24px;
  border: 1px solid #eadbd2;
  border-radius: 8px;
  background: #fffaf7;
  color: #17120f;
  direction: rtl;
  font-family: inherit;
}

.kcm-form {
  order: 1;
}

.kcm-form h2,
.rgcm-form h2 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.3;
}

.kcm-form-note {
  margin: -6px 0 16px;
  padding: 10px 12px;
  border: 1px solid #eadbd2;
  border-radius: 6px;
  background: #fff;
  color: #7d551f;
  font-weight: 800;
}

.kcm-grid,
.rgcm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kcm-field,
.rgcm-field {
  margin-bottom: 14px;
}

.kcm-field label,
.rgcm-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.kcm-field input,
.kcm-field select,
.kcm-field textarea,
.rgcm-field input,
.rgcm-field textarea,
.rgcm-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #eadbd2;
  border-radius: 6px;
  background: #fff;
  color: #17120f;
  font: inherit;
}

.kcm-field textarea,
.rgcm-field textarea {
  min-height: 150px;
  resize: vertical;
}

.kcm-form button,
.rgcm-form button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #b8893b, #7d551f);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.kcm-map-box {
  order: 2;
  width: 520px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #17120f;
  direction: rtl;
}

.kcm-map-box h3 {
  margin: 0 0 6px;
  color: #7d551f;
  font-size: 20px;
}

.kcm-contact-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #eadbd2;
  border-radius: 8px;
  background: #fffaf7;
}

.kcm-contact-card ul {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.kcm-contact-card li {
  margin-bottom: 8px;
}

.kcm-contact-card a {
  color: #7d551f;
  font-weight: 800;
}

.kcm-contact-card p {
  margin: 12px 0 6px;
}

.kcm-store-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  background: #7d551f;
  color: #fff !important;
  text-decoration: none;
}

.kcm-map-frame {
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid #eadbd2;
  border-radius: 8px;
  background: #f8f1ed;
  width: 500px;
  height: 500px;
  max-width: 100%;
}

.kcm-map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.kcm-map-link {
  display: none;
}

.kcm-alert,
.rgcm-alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-weight: 800;
}

.kcm-alert-success,
.rgcm-alert-success {
  color: #1d4b35;
  background: #e5f5ec;
}

.kcm-alert-error,
.rgcm-alert-error {
  color: #7a1f1f;
  background: #fde8e8;
}

.kcm-hidden,
.rgcm-hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

@media (max-width: 680px) {
  .kcm-contact-layout {
    grid-template-columns: 1fr;
  }

  .kcm-map-box {
    width: 100%;
  }

  .kcm-map-frame {
    width: 300px;
  }

  .kcm-grid,
  .rgcm-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (min-width: 1180px) {
  .contact-panel:has(.rg-contact-form-wrap .kcm-contact-layout) {
    grid-template-columns: minmax(220px, .75fr) minmax(420px, 1fr);
    align-items: start;
  }

  .contact-panel:has(.rg-contact-form-wrap .kcm-contact-layout) > .rg-contact-form-wrap {
    display: contents;
  }

  .rg-contact-form-wrap .kcm-contact-layout {
    display: contents;
  }

  .rg-contact-form-wrap .kcm-form {
    grid-column: 2;
  }
}

body.home .rg-contact-form-wrap .kcm-map-box,
body.front-page .rg-contact-form-wrap .kcm-map-box {
  display: none;
}

.kcm-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.kcm-whatsapp-float svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: currentColor;
}

.kcm-whatsapp-float:hover,
.kcm-whatsapp-float:focus {
  color: #fff !important;
  background: #1ebe5d;
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .kcm-whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding: 0 14px;
  }

  .kcm-whatsapp-float span {
    display: none;
  }
}
