/* NPV Tech - Contact page. Builds on npv.css and inner.css. */

.npv-ct { padding-block: var(--section-y); }
.npv-ct__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }

/* ---------- left: talk to us ---------- */
.npv-ct__intro .npv-sec-title { margin: 14px 0 0; line-height: 1.1; }
.npv-ct__ways { list-style: none; margin: clamp(22px, 2.6vw, 34px) 0 0; padding: 0; display: grid; }
.npv-ct__way {
    position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px;
    padding: 16px 4px; border-bottom: 1px solid rgba(130,51,25,.10);
    transition: background-color .3s ease;
}
.npv-ct__way:first-child { border-top: 1px solid rgba(130,51,25,.10); }
.npv-ct__way-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--npv-orange), var(--npv-brick)); }
.npv-ct__way-ico svg { width: 22px; height: 22px; }
.npv-ct__way p { margin: 0; font-family: 'Inter', sans-serif; }
.npv-ct__way-label { font-size: 13px; font-weight: 600; color: var(--npv-brick); }
.npv-ct__way-value { margin-top: 2px !important; font-size: clamp(15px, 1.15vw, 17px); font-weight: 600; color: #3d3d3d; line-height: 1.45; overflow-wrap: anywhere; }
.npv-ct__way-value a { color: inherit; text-decoration: none; }
.npv-ct__way-value a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }   /* whole card is the link */
.npv-ct__way-value a:focus-visible { outline: none; }
.npv-ct__way:has(a:focus-visible) { outline: 2px solid var(--npv-orange); outline-offset: 2px; border-radius: 8px; }
.npv-ct__way-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff1ea; color: var(--npv-brick); transition: background-color .3s ease, color .3s ease; }
.npv-ct__way:hover .npv-ct__way-go { background: var(--npv-orange); color: #fff; }
.npv-ct__way-go svg { width: 16px; height: 16px; }

.npv-ct__places { margin-top: clamp(20px, 2.4vw, 30px); }
.npv-ct__places p { margin: 0; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: var(--npv-brick); }
.npv-ct__places ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.npv-ct__places li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff1ea; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #3d3d3d; }
.npv-ct__places li svg { width: 16px; height: 16px; color: var(--npv-orange); }

/* ---------- right: the form, on the home page card gradient ---------- */
.npv-ct__form-wrap {
    position: relative; isolation: isolate; overflow: clip; scroll-margin-top: calc(var(--header-h) + 20px);
    padding: clamp(24px, 3.2vw, 48px); border-radius: 30px; color: #3d3d3d;
    background: linear-gradient(-32deg, #ffeae4 5%, #ffffff 50%, #ffeae4 95%);
    box-shadow: 0 0 0 1px rgba(130,51,25,.08), 0 50px 90px -60px rgba(130,51,25,.45);
}
.npv-ct__form-wrap::before {   /* soft brand glow in the corner */
    content: ''; position: absolute; z-index: -1; right: -18%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(232,84,28,.12), rgba(232,84,28,0) 65%);
}
.npv-ct__form-title { margin: 14px 0 0; font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; color: #7e2b1a; }

.npv-form { margin-top: clamp(20px, 2.4vw, 30px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.npv-form__full { grid-column: 1 / -1; }
.npv-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.npv-form legend { display: block; margin-bottom: 10px; padding: 0; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #3d3d3d; }
.npv-form__req { color: var(--npv-orange); }

/* type of contact: chip radios */
.npv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.npv-chip { position: relative; }
.npv-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.npv-chip span {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: #fff; box-shadow: inset 0 0 0 1px rgba(130,51,25,.16);
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: #3d3d3d; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.npv-chip span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(130,51,25,.25); transition: background-color .25s ease; }
.npv-chip:hover span { box-shadow: inset 0 0 0 1px var(--npv-orange); }
.npv-chip input:checked + span { background: #7e2b1a; color: #fff; font-weight: 600; box-shadow: 0 10px 22px -12px rgba(126,43,26,.7); }
.npv-chip input:checked + span::before { background: #ffd27a; }
.npv-chip input:focus-visible + span { outline: 2px solid var(--npv-orange); outline-offset: 2px; }

/* floating-label fields */
.npv-field { position: relative; }
.npv-field input, .npv-field select, .npv-field textarea {
    width: 100%; box-sizing: border-box; border: 0; border-radius: 14px; background: #fff; color: #3d3d3d;
    font-family: 'Inter', sans-serif; font-size: 16px; padding: 24px 16px 9px; min-height: 58px; outline: none;
    box-shadow: inset 0 0 0 1px rgba(130,51,25,.14); transition: box-shadow .2s ease;
}
.npv-field textarea { min-height: 124px; resize: vertical; }
.npv-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4301a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.npv-field label {
    position: absolute; left: 16px; top: 18px; pointer-events: none; transform-origin: left top;
    font-family: 'Inter', sans-serif; font-size: 16px; color: #8a7a74; transition: transform .2s ease, color .2s ease;
}
.npv-field input:focus + label, .npv-field input:not(:placeholder-shown) + label,
.npv-field textarea:focus + label, .npv-field textarea:not(:placeholder-shown) + label,
.npv-field select + label { transform: translateY(-10px) scale(.78); color: var(--npv-brick); font-weight: 600; }
.npv-field input:hover, .npv-field select:hover, .npv-field textarea:hover { box-shadow: inset 0 0 0 1px rgba(232,84,28,.45); }
.npv-field input:focus, .npv-field select:focus, .npv-field textarea:focus { box-shadow: inset 0 0 0 2px var(--npv-orange), 0 0 0 4px rgba(232,84,28,.12); }
.npv-field.is-invalid input, .npv-field.is-invalid textarea { box-shadow: inset 0 0 0 2px #d92d20; }
.npv-form__err { display: none; margin: 6px 4px 0; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: #b42318; }
.is-invalid .npv-form__err { display: block; }

.npv-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.npv-form__submit {
    display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; padding: 15px 28px; border-radius: 999px;
    background: #7e2b1a; color: #fff; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
    box-shadow: 0 16px 30px -16px rgba(126,43,26,.8); transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .25s ease;
}
.npv-form__submit svg { width: 18px; height: 18px; transition: transform .25s ease; }
.npv-form__submit:hover { background: #6a2914; transform: translateY(-1px); }
.npv-form__submit:hover svg { transform: translateX(3px); }
.npv-form__submit:focus-visible { outline: 3px solid var(--npv-orange); outline-offset: 3px; }
.npv-form__status { margin: 0; font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5; color: #5b5b5b; }
.npv-form__status:empty { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .npv-ct__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .npv-form { grid-template-columns: 1fr; }
    .npv-ct__form-wrap { border-radius: 22px; padding: 24px 16px; }
    .npv-form__submit { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .npv-ct__way, .npv-field label, .npv-form__submit, .npv-form__submit svg, .npv-chip span { transition: none; }
}
/* placeholder shown until NPV Tech's phone, email and address are filled in */
.npv-ct__todo { display: inline-block; padding: 2px 10px; border-radius: 8px; border: 1px dashed rgba(180,48,26,.45); background: #fff6f1; font-size: 14px; font-weight: 500; color: var(--npv-brick); }
