/* Contact module — IEGrinds Notes design language. Scoped to .contact-page only. */

.contact-page{
  background: #f6f8f7;
  min-height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 48px;
  box-sizing: border-box;
}

.contact-page *,
.contact-page *::before,
.contact-page *::after{
  box-sizing: border-box;
}

/* Hero */
.contact-page .contact-hero{
  position: relative;
  width: 100%;
  height: 104px;
  min-height: 104px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 14px;
  background:
    radial-gradient(
      circle at 79% 32%,
      rgba(196, 235, 231, 0.48) 0%,
      rgba(222, 240, 240, 0.30) 21%,
      rgba(244, 248, 250, 0.10) 46%,
      rgba(246, 248, 250, 0) 68%
    ),
    linear-gradient(
      100deg,
      #f6f8fa 0%,
      #fbfcfd 23%,
      #f5f9fa 62%,
      #e5f3f2 100%
    );
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-page .contact-hero-left{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.contact-page .contact-hero-icon{
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background: #e8f2fb;
  border-radius: 8px;
  color: #2878c8;
}

.contact-page .contact-hero-icon svg{
  width: 27px;
  height: 27px;
  color: #2878c8;
}

.contact-page .contact-hero-copy{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-page .contact-hero-copy h1{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 34px;
  line-height: 38px;
  font-weight: 750;
  letter-spacing: -1.1px;
  color: #0d1114;
  text-align: left;
  text-transform: none;
}

.contact-page .contact-hero-subtitle{
  margin: 3px 0 0 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #46515d;
}

.contact-page .contact-hero-art{
  position: absolute;
  right: 0;
  top: 0;
  width: 215px;
  height: 104px;
  overflow: hidden;
  background:
    linear-gradient(
      110deg,
      rgba(207, 235, 233, 0.20) 0%,
      rgba(184, 225, 221, 0.52) 100%
    );
}

.contact-page .contact-hero-art::before{
  content: "";
  position: absolute;
  width: 89px;
  height: 91px;
  left: 8px;
  top: -5px;
  background: rgba(174, 221, 218, 0.58);
  transform: skewX(-8deg);
}

.contact-page .contact-hero-art::after{
  content: "";
  position: absolute;
  width: 122px;
  height: 110px;
  right: -20px;
  top: -10px;
  background: rgba(195, 232, 229, 0.45);
  transform: skewX(8deg);
}

.contact-page .contact-hero-document{
  position: absolute;
  left: 29px;
  top: 17px;
  width: 57px;
  height: 68px;
  background: rgba(248, 253, 252, 0.94);
  border-radius: 2px;
  transform: skewX(-5deg);
  z-index: 3;
  box-shadow: 0 1px 2px rgba(20, 80, 70, 0.04);
}

.contact-page .contact-hero-document::before{
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 11px;
  height: 11px;
  background: #d0ebe7;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.contact-page .contact-hero-document::after{
  content: "";
  position: absolute;
  left: 13px;
  top: 19px;
  width: 31px;
  height: 4px;
  background: #9edbd2;
  box-shadow:
    0 10px 0 #b6e2dc,
    0 20px 0 #c3e8e3;
}

.contact-page .contact-hero-message{
  position: absolute;
  left: 104px;
  top: 27px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 17px;
  font-style: italic;
  font-weight: 600;
  color: #006d43;
}

.contact-page .contact-hero-message strong{
  font-weight: 750;
}

.contact-page .contact-hero-accent{
  position: absolute;
  left: 104px;
  bottom: 10px;
  width: 29px;
  height: 4px;
  border-radius: 99px;
  background: #00a45a;
  z-index: 4;
}

/* Layout */
.contact-page .contact-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .9fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

/* Form card */
.contact-page .contact-form-card{
  background: #ffffff;
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 3px 10px rgba(20, 48, 33, 0.05);
}

.contact-page .contact-form-card h2{
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 750;
  color: #17211b;
  text-align: left;
  text-transform: none;
}

.contact-page .contact-field{
  margin-bottom: 16px;
}

.contact-page .contact-field label{
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 650;
  color: #27332c;
}

.contact-page .contact-req{
  color: #d95656;
}

.contact-page .contact-input-wrap{
  position: relative;
}

.contact-page .contact-input-wrap > i{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #87948c;
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

.contact-page .contact-input-wrap.is-textarea > i{
  top: 15px;
  transform: none;
}

.contact-page .contact-field input,
.contact-page .contact-field textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dfd9;
  border-radius: 9px;
  background: #ffffff;
  color: #17211b;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background-color .16s ease;
  font-family: inherit;
  box-shadow: none;
  min-height: 0;
}

.contact-page .contact-field input{
  height: 46px;
  padding: 0 14px 0 42px;
}

.contact-page .contact-field textarea{
  min-height: 130px;
  resize: vertical;
  padding: 13px 14px 13px 42px;
}

.contact-page .contact-field input::placeholder,
.contact-page .contact-field textarea::placeholder{
  color: #87948c;
}

.contact-page .contact-field input:focus,
.contact-page .contact-field textarea:focus{
  border-color: #149447;
  box-shadow: 0 0 0 3px rgba(20, 148, 71, .10);
}

.contact-page .contact-field input.field-error,
.contact-page .contact-field textarea.field-error{
  border-color: #d95656;
}

.contact-page .field-error-msg{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #a73b3b;
}

.contact-page .contact-submit{
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: #149447;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .01em;
  cursor: pointer;
  transition:
    background-color .16s ease,
    transform .16s ease;
}

.contact-page .contact-submit:hover{
  background: #0f7d3b;
}

.contact-page .contact-submit:active{
  transform: translateY(1px);
}


.contact-page .contact-result{
  margin-bottom: 12px;
}

.contact-page .contact-result:empty{
  margin-bottom: 0;
}

.contact-page .contact-error,
.contact-page .contact-result .error,
.contact-page .block-inform-error{
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #fdeeee;
  border: 1px solid #f3cccc;
  color: #a73b3b;
  font-size: 13px;
}

.contact-page .contact-success,
.contact-page #form-feedback .block-inform-success,
.contact-page .block-inform-success{
  padding: 22px;
  background: #eaf8f0;
  border: 1px solid #cfe9da;
  border-radius: 12px;
  color: #0f6f38;
}

/* Sidebar */
.contact-page .contact-sidebar{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-page .contact-sidebar-card{
  background: #ffffff;
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 3px 10px rgba(20, 48, 33, 0.05);
}

.contact-page .contact-side-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-page .contact-side-ico{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: #eaf8f0;
  color: #149447;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.contact-page .contact-sidebar-card h2{
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  color: #17211b;
  text-align: left;
  text-transform: none;
}

.contact-page .contact-sidebar-card h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 750;
  color: #17211b;
  text-align: left;
  text-transform: none;
}

.contact-page .contact-side-copy{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #5d6961;
}

.contact-page .contact-reasons{
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-page .contact-reasons li{
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
  color: #27332c;
}

.contact-page .contact-reasons i{
  width: 18px;
  text-align: center;
  color: #149447;
}

.contact-page .contact-links{
  display: flex;
  flex-direction: column;
}

.contact-page .contact-links a{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #e5ece8;
  font-size: 14px;
  font-weight: 650;
  color: #0f7d3b;
  text-decoration: none;
}

.contact-page .contact-links a:first-child{
  border-top: 0;
  padding-top: 4px;
}

.contact-page .contact-links a:hover{
  color: #0c6a32;
}

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

@media (max-width: 640px){
  .contact-page{
    padding: 8px 14px 32px;
  }
  .contact-page .contact-hero{
    padding: 0 12px;
  }
  .contact-page .contact-hero-art{
    width: 120px;
  }
  .contact-page .contact-hero-art::before{
    width: 70px;
    height: 80px;
  }
  .contact-page .contact-hero-art::after{
    width: 90px;
    height: 104px;
  }
  .contact-page .contact-hero-document{
    left: 18px;
    top: 22px;
    width: 44px;
    height: 56px;
  }
  .contact-page .contact-hero-document::after{
    left: 10px;
    top: 15px;
    width: 24px;
  }
  .contact-page .contact-hero-message{
    display: none;
  }
  .contact-page .contact-hero-accent{
    left: 18px;
    bottom: 12px;
  }
  .contact-page .contact-hero-copy h1{
    font-size: 28px;
    line-height: 32px;
  }
  .contact-page .contact-hero-subtitle{
    font-size: 12px;
    line-height: 16px;
  }
  .contact-page .contact-form-card,
  .contact-page .contact-sidebar-card{
    padding: 18px;
  }
}
