/* LL CE Contact Form - frontend */

.llcf{
  width: 100%;
  max-width: 100%;
  margin: 0;
}

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

/* Header */
.llcf__header{
  text-align: left;
  margin: 0 0 18px;
}

.llcf__title{
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 700;
}

.llcf__text{
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Layout */
.llcf__grid{
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center; /* center aside vs form */
}

/*
  Between ~1000px and ~1400px viewport the module is often placed inside a narrower
  page column. Keep the aside and form on one line by allowing the aside to shrink.
*/
@media (min-width: 1000px) and (max-width: 1400px){
  .llcf__grid{
    flex-wrap: nowrap;
    gap: 16px;
  }

  .llcf__aside{
    flex: 0 1 220px;
  }

  .llcf__photo{
    width: clamp(140px, 14vw, 190px);
    height: clamp(140px, 14vw, 190px);
  }

  .llcf__contact-name{font-size: 18px;}
  .llcf__contact-phone,
  .llcf__contact-email{font-size: 13px;}
}

.llcf__aside{
  flex: 0 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.llcf__form{
  flex: 1 1 340px;
  min-width: 0;
}

/* Photo */
.llcf__photo{
  border-radius: 9999px;
  overflow: hidden;
  width: clamp(160px, 20vw, 224px); /* ~30% smaller than 320 */
  height: clamp(160px, 20vw, 224px);
  max-width: 100%;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

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

/* Contact */
.llcf__contact{
  text-align: center;
}

.llcf__contact-name{
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
}

.llcf__contact-phone,
.llcf__contact-email{
  margin: 0;
  line-height: 1.6;
}

.llcf__contact a{
  text-decoration: underline;
}

/* Alerts */
.llcf__success{
  background: #eaf7ed;
  border: 1px solid rgba(0,0,0,.08);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 14px;
}

.llcf__error{
  background: #fff0f0;
  border: 1px solid rgba(0,0,0,.08);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 14px;
}

/* Form */
.llcf__fields{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.llcf__field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.llcf__field--full{grid-column: 1 / -1;}

.llcf__field label{
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.llcf__req{color:#c00;}

.llcf__field input,
.llcf__field textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.llcf__field textarea{
  resize: vertical;
  min-height: 180px;
}

.llcf__consent{
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
  text-align: left;
}

.llcf__actions{margin: 18px 0 0;}

.llcf__submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  padding: 12px 26px;
  font-weight: 700;
  color: #fff;
  background: #000;
  cursor: pointer;
}

.llcf__submit:hover{opacity: .9;}

/* Responsive for narrow columns */
@media (max-width: 760px){
  .llcf__grid{gap: 18px;}
  .llcf__aside{flex-basis: 100%;}
  .llcf__form{flex-basis: 100%;}
  .llcf__fields{grid-template-columns: 1fr;}
}
