/* =========================================================
   CONTACT
   - form + info card
   - file picker with preview list + remove X
   ========================================================= */

.hm-contact{
  background:
    linear-gradient(180deg, #fff 0%, #fff 10%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 74%, #fff 92%, #fff 100%),
    radial-gradient(720px 420px at 18% 20%, rgba(31,138,91,.10), transparent 60%),
    radial-gradient(720px 420px at 82% 10%, rgba(201,162,39,.10), transparent 60%);
}

.hm-contact__grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px){
  .hm-contact__grid{ grid-template-columns: 1fr; }
}

.hm-contactCard{
  border-radius: 26px;
  padding: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 20px 54px rgba(15,23,42,.08);
}

.hm-contactCard h3{ margin: 0 0 10px; }

.hm-contactRow{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(15,23,42,.08);
}

.hm-contactRow a{
  text-decoration:none;
  font-weight: 950;
}

.hm-contactLabel{
  color: rgba(15,23,42,.62);
  font-weight: 900;
}

.hm-contactCard__note{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(31,138,91,.08);
  border: 1px solid rgba(31,138,91,.16);
  color: rgba(15,23,42,.76);
  line-height: 1.6;
  font-weight: 750;
}

/* Form shell */
.hm-form{
  border-radius: 26px;
  padding: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 20px 54px rgba(15,23,42,.08);
}

.hm-form__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

@media (max-width: 620px){
  .hm-form__grid{ grid-template-columns: 1fr; }
}

.hm-field{ display:grid; gap: 8px; }
.hm-field--full{ grid-column: 1 / -1; }

.hm-field > span{
  font-weight: 900;
  color: rgba(15,23,42,.70);
  font-size: 13px;
}

.hm-field input,
.hm-field textarea{
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
  padding: 12px 12px;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hm-field input:focus,
.hm-field textarea:focus{
  border-color: rgba(31,138,91,.35);
  box-shadow: 0 0 0 6px rgba(31,138,91,.10);
}

.hm-field__hint{
  color: rgba(15,23,42,.60);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.4;
}

/* ===== File picker row ===== */
.hm-fileRow{
  display:flex;
  align-items:center;
  gap: 10px;
}

.hm-fileInput{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.hm-fileBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;

  font-weight: 950;
  color: rgba(15,23,42,.86);
  background: rgba(31,138,91,.10);
  border: 1px solid rgba(31,138,91,.18);

  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
}

.hm-fileBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15,23,42,.14);
}

.hm-fileClear{
  height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;

  font-weight: 950;
  color: rgba(15,23,42,.78);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.12);

  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.hm-fileClear:disabled{
  opacity: .45;
  cursor: not-allowed;
}

.hm-fileClear:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15,23,42,.12);
}

/* ===== Preview list ===== */
.hm-filesPreview{
  display:none;
  margin-top: 10px;
  gap: 10px;
}

.hm-filesPreview.is-show{
  display:grid;
}

.hm-fileItem{
  display:grid;
  grid-template-columns: 52px 1fr 38px;
  gap: 10px;
  align-items:center;

  padding: 10px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
}

.hm-fileThumb{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.hm-fileThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.hm-fileIcon{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(15,23,42,.70);
}

.hm-fileMeta{
  min-width: 0;
}

.hm-fileName{
  font-weight: 950;
  color: rgba(15,23,42,.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-fileSize{
  font-weight: 800;
  font-size: 12px;
  color: rgba(15,23,42,.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-fileRemove{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.80);
  cursor: pointer;
  font-weight: 950;
  color: rgba(15,23,42,.86);
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hm-fileRemove:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15,23,42,.14);
}

/* Actions */
.hm-form__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 620px){
  .hm-form__actions{ flex-direction: column; align-items: stretch; }
}

.hm-submit{
  position: relative;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(31,138,91,.22);
  cursor:pointer;

  font-weight: 950;
  background: linear-gradient(135deg, var(--hm-green), var(--hm-green2));
  color: #fff;
  box-shadow: 0 18px 50px rgba(31,138,91,.22);

  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  overflow:hidden;
}

.hm-submit:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 64px rgba(31,138,91,.28);
}

.hm-submit.is-loading{
  filter: grayscale(.15) brightness(.95);
  cursor: wait;
  padding-left: 46px; /* space for spinner */
}

/* Loading spinner inside submit button */
.hm-submit.is-loading::before{
  content:"";
  position:absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255,255,255,.85);
  border-right-color: transparent;
  border-radius: 50%;
  animation: hmSpin 0.8s linear infinite;
  pointer-events: none;
}

@keyframes hmSpin{
  to{ transform: rotate(360deg); }
}

.hm-submit__sheen{
  position:absolute;
  inset:-2px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-22%);
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,.44), rgba(255,255,255,0));
  transition: opacity 220ms ease, transform 460ms cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}

.hm-submit:hover .hm-submit__sheen{ opacity: 1; transform: translateX(22%); }

/* Toast */
.hm-form__toast{
  margin-top: 12px;
  display:none;
  padding: 12px 14px;
  border-radius: 18px;
  font-weight: 900;
  color: rgba(15,23,42,.78);
  background: rgba(31,138,91,.08);
  border: 1px solid rgba(31,138,91,.16);
}

.hm-form__toast.is-show{ display:block; }

.hm-form__toast.is-ok{
  background: rgba(31,138,91,.10);
  border-color: rgba(31,138,91,.22);
}

.hm-form__toast.is-bad{
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .18);
}


/* ===== Anti-spam honeypot (hidden field) ===== */
.hm-hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
