:root {
  --icr-teal: #073f40;
  --icr-teal-deep: #063536;
  --icr-gold: #e0ad2d;
  --icr-gold-hover: #efbd3d;
  --icr-mint: #8de2d8;
  --icr-line: rgba(211, 239, 234, .36);
  --icr-text: #f6fbfa;
  --icr-muted: #a9ccc8;
}

.icr-form-card,
.icr-form-card * { box-sizing: border-box; }

.icr-form-card {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 54px) clamp(28px, 6vw, 46px) clamp(30px, 5vw, 46px);
  color: var(--icr-text);
  background: var(--icr-teal);
  border-radius: 0 64px 0 0;
  font-family: Manrope, "DM Sans", Arial, sans-serif;
}

.icr-form-header { margin-bottom: 18px; }
.icr-form-header h2 {
  max-width: 560px;
  margin: 0;
  color: var(--icr-text);
  font-size: clamp(32px, 4.2vw, 42px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.custom-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 26px;
  row-gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
}
.form-row { margin: 0; }
.form-row-name,
.form-row:nth-of-type(4),
.form-row:nth-of-type(5),
.custom-contact-form > input[type="hidden"],
.custom-contact-form > .icr-honeypot,
.custom-contact-form > .form-footer { grid-column: 1 / -1; }
.form-row-email { grid-column: 1; grid-row: 2; }
.form-row-phone { grid-column: 2; grid-row: 2; }
.input-group-block,
.phone-block,
.amount-composite { position: relative; width: 100%; }
.input-group-block::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .82;
  pointer-events: none;
}
.input-group-block:has(#full-name)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238de2d8' stroke-width='1.7'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.8 3.6-8 8-8s8 3.2 8 8'/%3E%3C/svg%3E");
}
.input-group-block:has(#email)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238de2d8' stroke-width='1.7'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
}
.input-group-block:has(#input_message)::before {
  top: 23px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238de2d8' stroke-width='1.7'%3E%3Cpath d='M4 5h16v12H8l-4 3V5Z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E");
}
.screen-reader-text {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.custom-contact-form input:not([type="checkbox"]):not([type="hidden"]),
.custom-contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--icr-line) !important;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--icr-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .18s ease;
}
.custom-contact-form input:not([type="checkbox"]):not([type="hidden"]) {
  min-height: 55px;
  padding: 17px 0 12px 26px;
}
.custom-contact-form textarea {
  min-height: 72px;
  max-height: 150px;
  padding: 17px 0 12px 26px;
  resize: vertical;
}
.custom-contact-form input::placeholder,
.custom-contact-form textarea::placeholder { color: var(--icr-muted); opacity: 1; }
.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
  border: 0 !important;
  border-bottom: 1px solid var(--icr-gold) !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.custom-contact-form [aria-invalid="true"]:not(:focus) { border-bottom-color: #ffb3a8 !important; }

.iti { width: 100%; }
.iti__selected-country { padding-left: 0; background: transparent !important; }
.iti__selected-dial-code { color: var(--icr-text); }
.iti__arrow { border-top-color: var(--icr-muted); }
.iti input.phone-number { padding-left: 92px !important; }
.iti__country-container { z-index: 4; }
.iti__selected-country-primary { background: transparent !important; }
.iti__dropdown-content,
.iti__country-list {
  background: #fff !important;
  color: #173638 !important;
}
.icr-form-card .custom-contact-form .iti input.iti__search-input {
  width: calc(100% - 20px) !important;
  min-height: 42px !important;
  height: 42px !important;
  margin: 10px !important;
  padding: 8px 12px !important;
  background: #fff !important;
  color: #173638 !important;
  border: 1px solid #cbd7d6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.icr-form-card .custom-contact-form .iti input.iti__search-input::placeholder { color: #718586 !important; }
.iti__country,
.iti__country-name,
.iti__dial-code { color: #173638 !important; }
.iti__country:hover,
.iti__country.iti__highlight { background: #e8f2f0 !important; }
.iti__country.iti__active { background: #d8ebe8 !important; }

.amount-composite { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: stretch; }
.currency-code {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 59px;
  padding-top: 7px;
  border-bottom: 1px solid var(--icr-line);
  color: var(--icr-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
}
.currency-code::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 17px;
  bottom: 12px;
  width: 1px;
  background: var(--icr-line);
}
.amount-composite .amount-input { padding-left: 10px !important; }

.form-footer { margin-top: 20px; }
.privacy-note { margin: 0; }
.privacy-text { color: #c3deda; font-size: 12px; line-height: 1.5; }
.privacy-text a { color: var(--icr-text); text-decoration: underline; text-underline-offset: 3px; }

.submit-button {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: 0 21px;
  border: 0;
  border-radius: 3px;
  background: var(--icr-gold);
  color: var(--icr-teal-deep);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  transition: background-color .2s ease, transform .2s ease;
}
.submit-button:hover:not(:disabled),
.submit-button:focus-visible {
  background: var(--icr-gold-hover) !important;
  color: var(--icr-teal-deep) !important;
  transform: translateY(-1px);
}
.submit-button span { color: inherit !important; font-weight: inherit !important; }
.submit-button:focus-visible { outline: 3px solid var(--icr-mint); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .72; }
.submit-button:disabled,
.submit-button.loading {
  background: var(--icr-gold) !important;
  color: var(--icr-teal-deep) !important;
}

#custom-form-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.45;
}
#custom-form-message:empty { display: none; }
#custom-form-message.success { color: #d8fff4; background: rgba(66, 177, 139, .18); }
#custom-form-message.error { color: #ffe2de; background: rgba(207, 74, 57, .2); }
.icr-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 560px) {
  .icr-form-card { border-radius: 0 42px 0 0; }
  .icr-form-header { margin-bottom: 22px; }
  .custom-contact-form textarea { min-height: 72px; }
  .custom-contact-form { grid-template-columns: 1fr; }
  .form-row-name,
  .form-row-email,
  .form-row-phone,
  .form-row:nth-of-type(4),
  .form-row:nth-of-type(5),
  .custom-contact-form > .form-footer { grid-column: 1; grid-row: auto; }
  .submit-button { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .icr-form-card * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
