/* ROY DIAMOND — Contact B2B form v9 */
.rd-contact-inquiry {
  max-width: 1040px;
  margin: 34px auto 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid #dfe3e8;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
}

.rd-contact-inquiry-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.rd-contact-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #637487;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.rd-contact-inquiry-head h2 {
  margin: 0;
  color: #101010;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.rd-contact-inquiry-head p {
  max-width: 720px;
  margin: 13px 0 0;
  color: #59636f;
  font-size: 16px;
  line-height: 1.7;
}

.rd-contact-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.rd-contact-trust-item {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 16px;
  background: #fff;
}

.rd-contact-trust-item strong,
.rd-contact-trust-item span {
  display: block;
}

.rd-contact-trust-item strong {
  margin-bottom: 5px;
  color: #111;
  font-size: 13px;
  line-height: 1.3;
}

.rd-contact-trust-item span {
  color: #6c7580;
  font-size: 11px;
  line-height: 1.45;
}

.rd-contact-form {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dfe3e8;
  border-radius: 22px;
  background: #fff;
}

.rd-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.rd-contact-field {
  min-width: 0;
}

.rd-contact-field-full {
  grid-column: 1 / -1;
}

.rd-contact-field label {
  display: block;
  margin: 0 0 8px;
  color: #161616;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.rd-required {
  color: #9b1c1c;
}

.rd-optional {
  color: #77818d;
  font-size: 12px;
  font-weight: 600;
}

.rd-contact-field input,
.rd-contact-field select,
.rd-contact-field textarea {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d6dbe0;
  border-radius: 14px;
  background: #fff;
  color: #151515;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.rd-contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.rd-contact-field input::placeholder,
.rd-contact-field textarea::placeholder {
  color: #9299a1;
  opacity: 1;
}

.rd-contact-field input:hover,
.rd-contact-field select:hover,
.rd-contact-field textarea:hover {
  border-color: #b8c0c8;
}

.rd-contact-field input:focus,
.rd-contact-field select:focus,
.rd-contact-field textarea:focus {
  outline: none;
  border-color: #28394a;
  box-shadow: 0 0 0 4px rgba(40, 57, 74, 0.11);
}

.rd-contact-field input[aria-invalid='true'],
.rd-contact-field select[aria-invalid='true'],
.rd-contact-field textarea[aria-invalid='true'] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.09);
}

.rd-field-hint {
  margin: -2px 0 9px;
  color: #707984;
  font-size: 12px;
  line-height: 1.55;
}

.rd-character-count {
  display: block;
  margin-top: 7px;
  color: #7a838e;
  font-size: 11px;
  text-align: right;
}

.rd-file-control {
  position: relative;
}

.rd-file-input {
  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;
}

.rd-file-picker {
  display: flex !important;
  min-height: 58px;
  margin: 0 !important;
  padding: 7px;
  align-items: center;
  gap: 13px;
  border: 1px dashed #bdc5ce;
  border-radius: 15px;
  background: #fbfcfd;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rd-file-picker:hover {
  border-color: #6d7e8f;
  background: #f6f8fa;
}

.rd-file-input:focus + .rd-file-picker {
  border-color: #28394a;
  box-shadow: 0 0 0 4px rgba(40, 57, 74, 0.11);
}

.rd-file-button {
  flex: 0 0 auto;
  padding: 11px 15px;
  border-radius: 11px;
  background: #141414;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.rd-file-name {
  min-width: 0;
  overflow: hidden;
  color: #65707b;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-field-error {
  min-height: 18px;
  margin: 7px 0 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

.rd-contact-submit-row {
  margin-top: 22px;
}

.rd-contact-submit {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 1px solid #111;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rd-contact-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #273747;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.16);
}

.rd-contact-submit:focus-visible {
  outline: 3px solid rgba(40, 57, 74, 0.28);
  outline-offset: 3px;
}

.rd-contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.rd-contact-privacy {
  margin: 12px 0 0;
  color: #717a84;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.rd-contact-privacy a {
  color: #273747;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd-contact-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.rd-contact-status.is-visible {
  display: block;
}

.rd-contact-status.is-success {
  border: 1px solid #b9dac5;
  background: #f0faf4;
  color: #155d35;
}

.rd-contact-status.is-error {
  border: 1px solid #efc2bd;
  background: #fff4f2;
  color: #8a1c13;
}

@media (max-width: 900px) {
  .rd-contact-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .rd-contact-inquiry {
    margin-top: 24px;
    padding: 20px 15px;
    border-radius: 21px;
  }

  .rd-contact-inquiry-head {
    margin-bottom: 20px;
  }

  .rd-contact-inquiry-head h2 {
    font-size: 31px;
  }

  .rd-contact-inquiry-head p {
    font-size: 14px;
  }

  .rd-contact-trust {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rd-contact-trust-item {
    padding: 13px 14px;
  }

  .rd-contact-form {
    padding: 17px 14px;
    border-radius: 18px;
  }

  .rd-contact-form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .rd-contact-field-full {
    grid-column: auto;
  }

  .rd-contact-field input,
  .rd-contact-field select,
  .rd-contact-field textarea {
    font-size: 16px;
  }

  .rd-file-picker {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .rd-file-button,
  .rd-file-name {
    text-align: center;
  }

  .rd-file-name {
    padding: 2px 8px 5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-contact-field input,
  .rd-contact-field select,
  .rd-contact-field textarea,
  .rd-file-picker,
  .rd-contact-submit {
    transition: none;
  }
}


/* ROY DIAMOND — Contact text contrast fix v10
   Overrides the website-wide black text rule only inside the two dark controls. */
.rd-file-picker .rd-file-button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

button.rd-contact-submit[type="submit"],
button.rd-contact-submit[type="submit"] .rd-submit-label {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ROY DIAMOND — Contact validation, tracking and confirmation v11 */
.rd-field-error {
  min-height: 18px;
  margin: 7px 2px 0;
  color: #9f241b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.rd-contact-field.has-error input,
.rd-contact-field.has-error select,
.rd-contact-field.has-error textarea,
.rd-contact-field.has-error .rd-file-picker {
  border-color: #c84b40 !important;
  box-shadow: 0 0 0 3px rgba(200, 75, 64, 0.10) !important;
}

.rd-error-summary {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #e4b7b2;
  border-left: 4px solid #a92f25;
  border-radius: 14px;
  background: #fff7f6;
  color: #6f1e18;
  line-height: 1.5;
}

.rd-error-summary strong { display: block; margin-bottom: 7px; }
.rd-error-summary ul { margin: 0; padding-left: 20px; }
.rd-error-summary a { color: #781f18; text-decoration: underline; text-underline-offset: 3px; }

.rd-contact-success {
  max-width: 760px;
  margin: 10px auto 0;
  padding: 46px 38px;
  border: 1px solid #d7dde3;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 20px 55px rgba(22, 30, 39, 0.08);
  text-align: center;
}

.rd-success-kicker {
  display: inline-block;
  margin-bottom: 11px;
  color: #627286;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rd-contact-success h2 {
  margin: 0 0 14px;
  color: #111111;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 500;
}

.rd-contact-success > p {
  max-width: 620px;
  margin: 0 auto;
  color: #4d5661;
  font-size: 15px;
  line-height: 1.75;
}

.rd-success-reference {
  margin: 28px auto 22px;
  padding: 18px 22px;
  border: 1px solid #d5dce3;
  border-radius: 16px;
  background: #f6f8fa;
}

.rd-success-reference span {
  display: block;
  margin-bottom: 6px;
  color: #6b7580 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rd-success-reference strong {
  color: #111111;
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: .04em;
}

.rd-success-new-inquiry {
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid #111111;
  border-radius: 13px;
  background: #111111;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 700px) {
  .rd-contact-success { padding: 34px 20px; border-radius: 20px; }
  .rd-error-summary { padding: 14px; }
}
