/* Gravity Forms "Project Inquiry" form, styled to match the static contact form (.ct-*). */
.ct-gf { position: relative; }
.ct-gf .gform_wrapper { margin: 0; color: #19382b; font-family: inherit; }

/* "All fields are required unless marked optional." note under the audience cards */
.ct-gf .gform_heading, .ct-gf .gform_required_legend { display: none; }
.ct-gf .ct-audience-field .gfield_description { margin: 18px 0 4px; padding: 0; font-size: .84rem; line-height: 1.5; color: #48594b; }
.ct-gf .gfield_required { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Layout */
.ct-gf .gform_fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 17px; }
.ct-gf .gfield { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-gf .gfield--width-half { grid-column: span 6; }
.ct-gf .gform_validation_container, .ct-gf .gform_hidden, .ct-gf .gfield--type-honeypot { display: none !important; }

/* Labels */
.ct-gf .gfield_label { display: block; font-size: .95rem; line-height: 1.3; font-weight: 650; margin: 0 0 8px; padding: 0; color: inherit; }
.ct-gf .ct-optional .gfield_label::after { content: " (optional)"; font-size: .78rem; color: #556451; font-weight: 400; white-space: nowrap; }

/* Inputs */
.ct-gf input[type=text], .ct-gf input[type=email], .ct-gf input[type=tel], .ct-gf select, .ct-gf textarea {
  width: 100%; box-sizing: border-box; display: block; min-width: 0; margin: 0;
  background: #fafaf2; border: 1px solid #a2ae9d; border-radius: 3px; padding: 11px 12px;
  color: #19382b; font-family: inherit; font-size: 1rem; line-height: 1.45; transition: border-color .18s, background-color .18s;
}
.ct-gf input[type=text], .ct-gf input[type=email], .ct-gf input[type=tel], .ct-gf select { min-height: 47px; }
.ct-gf select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2319382b' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.ct-gf textarea { resize: vertical; min-height: 105px; height: 130px; }
.ct-gf :is(input, select, textarea):hover { border-color: #6f806b; }
.ct-gf :is(input, select, textarea):focus { outline: 2px solid #345b40; outline-offset: 2px; background-color: #fff; }
.ct-gf .charleft, .ct-gf .ginput_counter { display: none; }

/* Audience: card radios */
.ct-gf .ct-audience-field { margin-bottom: 0; }
.ct-gf .gfield_radio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-gf .gchoice { position: relative; display: flex; min-width: 0; margin: 0; }
.ct-gf .gchoice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ct-gf .gchoice label {
  display: flex; gap: 11px; align-items: start; width: 100%; max-width: none; margin: 0; cursor: pointer;
  border: 1px solid #9daa94; border-radius: 4px; padding: 15px 12px; background: #faf9f1;
  font-weight: 400; transition: background-color .18s, border-color .18s;
}
.ct-gf .gchoice:hover label { border-color: #39513b; }
.ct-gf .gchoice input:checked + label { border-color: #19382b; background: #e9efce; box-shadow: inset 0 0 0 1px #19382b; }
.ct-gf .gchoice input:focus-visible + label { outline: 3px solid #bc442b; outline-offset: 3px; }
.ct-gf .ct-radio { flex: none; width: 17px; height: 17px; margin-top: 2px; display: grid; place-items: center; border: 1px solid #778670; border-radius: 50%; }
.ct-gf .gchoice input:checked + label .ct-radio { border-color: #19382b; }
.ct-gf .gchoice input:checked + label .ct-radio::after { content: ""; width: 9px; height: 9px; background: #19382b; border-radius: 50%; }
.ct-gf .gchoice b, .ct-gf .gchoice small { display: block; }
.ct-gf .gchoice b { font-size: .95rem; line-height: 1.3; letter-spacing: -.015em; }
.ct-gf .gchoice small { font-size: .78rem; margin-top: 4px; color: #485b4c; line-height: 1.4; }

/* Validation */
.ct-gf .gform_validation_errors { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #c98a7d; border-left: 3px solid #962a1a; border-radius: 4px; background: #fbefe9; box-shadow: none; }
.ct-gf .gform_validation_errors .gform_submission_error { margin: 0; font-size: .95rem; font-weight: 650; line-height: 1.45; color: #962a1a; font-family: inherit; }
.ct-gf .gform_validation_errors .gform-icon { display: none; }
.ct-gf .gfield_error :is(input, select, textarea) { border-color: #a22b1a; box-shadow: inset 0 -1px #a22b1a; }
.ct-gf .gfield_error .gfield_label { color: inherit; }
.ct-gf .validation_message { display: block; margin: 6px 0 0; padding: 0; border: 0; background: none; font-size: .79rem; line-height: 1.4; font-weight: 550; color: #962a1a; }

/* Footer + submit */
.ct-gf .gform_footer { display: flex; align-items: center; gap: 18px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid #b4beac; }
.ct-gf .ct-submit { position: relative; flex-shrink: 0; gap: .65em; cursor: pointer; }
.ct-gf .ct-submit-arrow { transition: transform .18s; }
.ct-gf .ct-submit:hover .ct-submit-arrow { transform: translate(2px, -2px); }
.ct-gf .gform-loader, .ct-gf .gform_ajax_spinner { display: none !important; }

/* Loader */
.ct-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 253, 243, .35); border-top-color: #d8f660; border-radius: 50%; }
.ct-gf-progress { position: absolute; z-index: 3; top: -14px; left: 0; right: 0; height: 3px; overflow: hidden; border-radius: 3px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ct-gf-progress::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, #19382b, #d8f660); }
.ct-gf.is-loading .ct-gf-progress { opacity: 1; }
.ct-gf.is-loading .ct-gf-progress::before { animation: ct-progress 1.1s cubic-bezier(.65, 0, .35, 1) infinite; }
.ct-gf.is-loading .gform_fields { opacity: .5; filter: saturate(.6); pointer-events: none; transition: opacity .2s, filter .2s; }
.ct-gf.is-loading .ct-submit { cursor: wait; background: #28503b; transform: none; }
.ct-gf.is-loading .ct-spinner { display: inline-block; animation: ct-spin .7s linear infinite; }
.ct-gf.is-loading .ct-submit-arrow { display: none; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
@keyframes ct-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* Confirmation */
.ct-gf .gform_confirmation_wrapper, .ct-gf .gform_confirmation_message { margin: 0; padding: 0; font-family: inherit; color: inherit; }
.ct-thanks { position: relative; padding: clamp(26px, 4vw, 40px); border: 1px solid #19382b; border-radius: 6px; background: #e9efce; animation: ct-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.ct-thanks-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 50%; background: #19382b; color: #d8f660; animation: ct-pop .45s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
.ct-thanks .eyebrow { margin: 0 0 10px; color: #48594b; }
.ct-thanks h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -.05em; font-weight: 650; }
.ct-thanks h3 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.ct-thanks p:not(.eyebrow) { max-width: 52ch; margin: 14px 0 22px; line-height: 1.6; color: #374a3c; }
@keyframes ct-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes ct-pop { from { opacity: 0; transform: scale(.4); } }

@media (max-width: 490px) {
  .ct-gf .gfield--width-half { grid-column: 1 / -1; }
  .ct-gf .gfield_radio { grid-template-columns: 1fr; }
  .ct-gf .gchoice label { align-items: center; padding: 11px 13px; }
  .ct-gf .gform_fields { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-gf *, .ct-thanks, .ct-thanks-mark { animation: none !important; transition: none !important; }
  .ct-gf.is-loading .ct-spinner { display: none; }
}
