.ewtn-wrap,
.ewtn-wrap * {
  box-sizing: border-box;
}

.ewtn-wrap {
  --ewtn-blue: #0799d6;
  --ewtn-dark: #3f4246;
  --ewtn-line: #aab5bc;
  --ewtn-pale: #eaf7fc;
  --ewtn-light: #f5f7f8;
  width: min(100%, 1080px);
  margin: 32px auto;
  color: var(--ewtn-dark);
  font-family: Arial, Helvetica, sans-serif;
}

.ewtn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.ewtn-header img {
  width: min(44%, 360px);
  height: auto;
}

.ewtn-header > div {
  text-align: right;
}

.ewtn-header span {
  color: var(--ewtn-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ewtn-header h2 {
  margin: 5px 0 4px;
  color: var(--ewtn-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.ewtn-header p {
  margin: 0;
  color: #6c747a;
  font-size: 14px;
}

.ewtn-form {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid #dbe3e7;
  border-top: 7px solid var(--ewtn-blue);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 59, 76, 0.09);
}

.ewtn-company-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px 18px;
  border-radius: 8px;
  background: var(--ewtn-pale);
}

.ewtn-company-strip div:last-child {
  text-align: right;
}

.ewtn-company-strip strong,
.ewtn-company-strip span {
  display: block;
}

.ewtn-company-strip strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.ewtn-company-strip span {
  color: var(--ewtn-blue);
  font-size: 15px;
  font-weight: 800;
}

.ewtn-section {
  margin-top: 18px;
  padding: clamp(17px, 3vw, 26px);
  border: 1px solid #d7e0e5;
  border-radius: 9px;
  background: #fff;
}

.ewtn-section h3 {
  margin: 0 0 18px;
  color: var(--ewtn-dark);
  font-size: 17px;
}

.ewtn-grid {
  display: grid;
  gap: 18px;
}

.ewtn-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ewtn-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ewtn-form label,
.ewtn-label-row strong {
  display: block;
  color: var(--ewtn-dark);
  font-size: 13px;
  font-weight: 700;
}

.ewtn-form label small {
  color: #788188;
  font-weight: 400;
}

.ewtn-form input[type="text"],
.ewtn-form input[type="email"],
.ewtn-form input[type="date"],
.ewtn-form input[type="time"],
.ewtn-form textarea {
  width: 100%;
  min-height: 47px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #b9c5cb;
  border-radius: 5px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ewtn-form textarea {
  resize: vertical;
}

.ewtn-form input:focus,
.ewtn-form textarea:focus {
  border-color: var(--ewtn-blue);
  box-shadow: 0 0 0 3px rgba(7, 153, 214, 0.13);
}

.ewtn-waste-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(135px, 1fr) minmax(120px, 1fr);
  gap: 0;
}

.ewtn-waste-head {
  overflow: hidden;
  border: 1px solid var(--ewtn-line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--ewtn-pale);
}

.ewtn-waste-head span {
  padding: 12px;
  border-right: 1px solid var(--ewtn-line);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ewtn-waste-head span:last-child {
  border-right: 0;
}

.ewtn-waste-row label {
  padding: 9px;
  border: 1px solid var(--ewtn-line);
  border-right: 0;
  border-bottom: 0;
}

.ewtn-waste-row label:last-child {
  border-right: 1px solid var(--ewtn-line);
}

.ewtn-waste-row:last-child label {
  border-bottom: 1px solid var(--ewtn-line);
}

.ewtn-waste-row:last-child label:first-child {
  border-radius: 0 0 0 6px;
}

.ewtn-waste-row:last-child label:last-child {
  border-radius: 0 0 6px 0;
}

.ewtn-waste-row input[type="text"] {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.ewtn-mobile-label {
  display: none;
}

.ewtn-sign-grid {
  margin-top: 18px;
}

.ewtn-signature-field {
  margin-top: 18px;
}

.ewtn-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.ewtn-clear-signature {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ewtn-blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ewtn-signature {
  display: block;
  width: 100%;
  height: 170px;
  border: 1px dashed #8e9aa1;
  border-radius: 6px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.ewtn-signature-field p {
  margin: 7px 0 0;
  color: #778188;
  font-size: 12px;
}

.ewtn-form .ewtn-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.ewtn-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.ewtn-submit {
  width: 100%;
  margin-top: 20px;
  padding: 15px 22px;
  border: 0;
  border-radius: 7px;
  background: var(--ewtn-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.ewtn-submit:hover {
  background: #087fac;
  transform: translateY(-1px);
}

.ewtn-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.ewtn-message {
  display: none;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.ewtn-message.is-success {
  display: block;
  border: 1px solid #9bd3b3;
  background: #eefaf3;
  color: #176638;
}

.ewtn-message.is-error {
  display: block;
  border: 1px solid #efb1b1;
  background: #fff2f2;
  color: #9d1c1c;
}

.ewtn-message a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.ewtn-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 820px) {
  .ewtn-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ewtn-wrap {
    margin: 18px auto;
  }

  .ewtn-header {
    display: block;
  }

  .ewtn-header img {
    width: min(88%, 340px);
  }

  .ewtn-header > div {
    margin-top: 20px;
    text-align: left;
  }

  .ewtn-company-strip,
  .ewtn-grid-4,
  .ewtn-grid-2 {
    display: block;
  }

  .ewtn-form {
    padding: 16px !important;
    border-radius: 9px;
  }

  .ewtn-section {
    margin-top: 16px !important;
    padding: 16px !important;
    border: 1px solid #d7e0e5 !important;
    border-radius: 10px !important;
    background: #f8fafb !important;
  }

  .ewtn-section h3 {
    margin: 0 0 15px !important;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--ewtn-pale);
    font-size: 20px;
  }

  .ewtn-grid > label,
  .ewtn-section > label:not(.ewtn-consent) {
    margin-top: 12px;
    padding: 12px !important;
    border: 1px solid #d7e0e5 !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  .ewtn-grid > label:first-child,
  .ewtn-section > label:first-of-type {
    margin-top: 0;
  }

  .ewtn-company-strip div:last-child {
    margin-top: 12px;
    text-align: left;
  }

  .ewtn-waste-head {
    display: none;
  }

  .ewtn-waste-row:not(.ewtn-waste-head) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .ewtn-waste-row:not(.ewtn-waste-head) label,
  .ewtn-waste-row:not(.ewtn-waste-head) label:last-child,
  .ewtn-waste-row:not(.ewtn-waste-head):last-child label {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #cbd6dc !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(35, 59, 72, 0.04);
  }

  .ewtn-mobile-label {
    display: block !important;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  .ewtn-waste-row input[type="text"],
  .ewtn-waste-row label input[type="text"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    height: 46px !important;
    margin: 7px 0 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #aebbc2 !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #222 !important;
    line-height: 1.3 !important;
  }

  .ewtn-waste-row input[type="text"]:focus {
    border-color: var(--ewtn-blue) !important;
    box-shadow: 0 0 0 3px rgba(7, 153, 214, 0.13) !important;
  }

  .ewtn-signature {
    height: 145px;
  }
}

@media (max-width: 400px) {
  .ewtn-form {
    padding: 12px !important;
  }

  .ewtn-section {
    padding: 13px !important;
  }
}
