/* =========================================================
   CoffeeNCoders — contact.css: the /contact/ page only (loaded after main.css).
   A dark hero (heading + ways to reach us) that ends in a copper horizon, then a warm cream section with the form card
   and "what happens next" + quick answers beside it. The form is sent by main.js (shared with the home page form).
   Type follows the home hero scale.
   ========================================================= */

/* ---------- Hero ---------- */
.cp-hero {
  position: relative; overflow: hidden; padding: clamp(130px, 17vh, 190px) 0 clamp(90px, 10vw, 130px);   /* same top as the About hero */ color: var(--cream);
  background:
    radial-gradient(45% 55% at 85% 20%, rgba(226, 117, 58, .22), transparent 70%),
    radial-gradient(35% 45% at 5% 90%, rgba(244, 168, 90, .1), transparent 70%),
    var(--espresso);
}
.cp-hero::after {   /* the flat glowing edge into the cream section */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, #ffd2a1 50%, var(--amber) 70%, transparent);
  box-shadow: 0 -10px 40px 6px rgba(226, 117, 58, .45);
}
.cp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: 40px clamp(40px, 6vw, 96px); }
.cp-hero__badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 6px 18px 6px 6px; border-radius: 999px; line-height: 1.25;
  font-size: 12.5px; color: var(--muted-dark); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark);
}
.cp-hero__av { position: relative; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--copper), var(--amber)); }
.cp-hero__av img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
/* a cream status pill with copper typing dots, like a chat app */
.cp-hero__typing { position: absolute; right: -9px; bottom: -4px; display: flex; align-items: center; gap: 2px; padding: 3px 4px; border-radius: 999px; background: var(--cream); border: 2px solid var(--espresso); }
.cp-hero__typing i { width: 3px; height: 3px; border-radius: 50%; background: var(--copper); animation: cp-type 1.2s ease-in-out infinite; }
.cp-hero__typing i:nth-child(2) { animation-delay: .15s; }
.cp-hero__typing i:nth-child(3) { animation-delay: .3s; }
.cp-hero__who { display: grid; }
.cp-hero__who b { font-size: 13.5px; font-weight: 600; color: var(--cream); }
.cp-hero__title { margin-top: 18px; font-family: var(--display); font-size: clamp(32px, 3.8vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }   /* the shared inner hero size (About) */
.cp-hero__title b { display: block; font-weight: inherit; color: var(--copper); }   /* the highlighted words always get their own line */
.cp-hero__lead { max-width: 660px; margin-top: 22px; font-size: 18px; line-height: 1.65; color: rgba(247, 242, 235, .8); }

/* ways to reach us */
.cp-hero__cards { display: grid; gap: 10px; }
.cp-reach {
  position: relative; display: grid; gap: 3px; padding: 18px 54px 18px 20px; border-radius: 20px;
  color: var(--cream); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
a.cp-reach:hover { border-color: rgba(226, 117, 58, .6); background: rgba(226, 117, 58, .08); }
.cp-reach__k { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.cp-reach__v { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.cp-reach__s { font-size: 14px; color: var(--muted-dark); }
.cp-reach__go { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--cream); background: rgba(255, 255, 255, .07); transition: background .3s, color .3s; }
.cp-reach__go svg { width: 14px; height: 14px; }
.cp-reach__go--wa svg { width: 17px; height: 17px; }
a.cp-reach:hover .cp-reach__go { color: #fff; background: var(--copper); }
/* the WhatsApp card looks like the others until hovered, then turns WhatsApp green */
a.cp-reach--wa:hover { border-color: rgba(31, 168, 85, .55); background: rgba(31, 168, 85, .08); }
a.cp-reach--wa:hover .cp-reach__go { background: var(--wa-grad); }
.cp-reach--mail { padding-right: 110px; }   /* room for the Copy button */
.cp-reach__mail { color: var(--cream); transition: color .25s; }
.cp-reach__mail:hover { color: var(--amber); }
.cp-copy {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .05); cursor: pointer; font: 600 12.5px var(--font); color: var(--cream);
  transition: border-color .25s, background .25s, color .25s;
}
.cp-copy:hover { border-color: var(--copper); background: rgba(226, 117, 58, .14); }
.cp-copy:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.cp-copy svg { width: 14px; height: 14px; }
.cp-copy svg[data-icon="Check"], .cp-copy.is-copied svg[data-icon="Copy"] { display: none; }
.cp-copy.is-copied { color: var(--green); border-color: rgba(95, 211, 154, .4); }
.cp-copy.is-copied svg[data-icon="Check"] { display: block; }

/* ---------- Form + side ---------- */
.cp-main {
  position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 130px);   /* no overflow clip: the form card rises into the hero */
  background:
    radial-gradient(55% 45% at 88% 0%, rgba(244, 168, 90, .28), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(226, 117, 58, .16), transparent 70%),
    #f1e6d8;
}
.cp-main::before {   /* dot grid that fades out downwards */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(29, 23, 18, .09) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 75%); mask: linear-gradient(180deg, #000, transparent 75%);
}
.cp-main > .container { position: relative; z-index: 1; }
.cp-main__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; gap: clamp(28px, 4vw, 56px); }

.cp-card {
  min-width: 0; margin-top: clamp(-150px, -9vw, -90px); padding: clamp(24px, 3vw, 44px); border-radius: 30px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgba(27, 20, 17, .45);
  scroll-margin-top: 110px;
}
/* after sending, the thank-you card drops out of the hero and lines up with the side column, its message centred in the full height */
.cp-main__grid:has(.cp-thanks:not([hidden])) { align-items: stretch; }
.cp-card:has(.cp-thanks:not([hidden])) { display: grid; align-content: center; margin-top: 0; }
.cp-form { display: grid; gap: 20px; }
.cp-form[hidden], .cp-thanks[hidden] { display: none; }
.cp-form__title { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.035em; }
.cp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-field { display: grid; gap: 7px; min-width: 0; }
.cp-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.cp-label span { margin-left: 4px; font-weight: 500; color: var(--muted); }
.cp-field input, .cp-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(29, 23, 18, .14); background: var(--paper);
  font: 16px/1.4 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.cp-field textarea { min-height: 150px; resize: vertical; }
.cp-field input::placeholder, .cp-field textarea::placeholder { color: var(--muted); opacity: .75; }
.cp-field input:focus, .cp-field textarea:focus { outline: none; background: #fff; border-color: var(--copper); box-shadow: 0 0 0 4px rgba(226, 117, 58, .16); }
.cp-field [aria-invalid="true"] { border-color: #c8432f; }
.cp-err { font-size: 13px; font-weight: 500; color: #c8432f; }
.cp-err:empty { display: none; }

.cp-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.cp-choice legend { margin-bottom: 9px; padding: 0; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { position: relative; cursor: pointer; }
.cp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cp-chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(29, 23, 18, .14); font-size: 14px; font-weight: 500; transition: background .25s, border-color .25s, color .25s; }
.cp-chip:hover span { border-color: var(--copper); }
.cp-chip input:checked + span { color: #fff; background: var(--copper); border-color: var(--copper); }
.cp-chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* the plan picked in Pricing (?plan=): a dark ticket at the top of the form, removable */
.cp-plan {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 18px;
  color: var(--cream); background: radial-gradient(120% 140% at 0% 0%, rgba(226, 117, 58, .32), transparent 55%), var(--espresso);
  animation: cp-plan-in .6s var(--ease) both;
}
.cp-plan[hidden] { display: none; }
.cp-plan__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--copper); box-shadow: 0 8px 20px -8px rgba(226, 117, 58, .8); }
.cp-plan__ico svg { width: 18px; height: 18px; }
.cp-plan__text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.cp-plan__k { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.cp-plan__name { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.cp-plan__name span { margin-left: 6px; font-family: var(--font); font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: rgba(248, 239, 228, .7); white-space: nowrap; }
.cp-plan__change { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--cream); border: 1px solid rgba(248, 239, 228, .22); transition: border-color .2s, color .2s; }
.cp-plan__change:hover { color: var(--amber); border-color: var(--amber); }
.cp-plan__x { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; color: rgba(248, 239, 228, .7); background: rgba(248, 239, 228, .08); transition: color .2s, background .2s; }
.cp-plan__x:hover { color: #fff; background: rgba(200, 67, 47, .55); }
.cp-plan__x svg { width: 15px; height: 15px; transform: rotate(45deg); }
@keyframes cp-plan-in { from { opacity: 0; transform: translateY(8px); } }

/* attachment: a dashed drop box (the file input covers it, so dropping a file works too) */
.cp-file { position: relative; display: grid; gap: 7px; }
.cp-file input { position: absolute; inset: 0 0 auto; height: 68px; width: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.cp-drop { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 52px 12px 14px; border-radius: 16px; border: 1.5px dashed rgba(29, 23, 18, .2); background: var(--paper); transition: border-color .25s, background .25s; }
.cp-file:hover .cp-drop, .cp-file.is-over .cp-drop { border-color: var(--copper); background: #fff; }
.cp-file input:focus-visible + .cp-drop { outline: 2px solid var(--amber); outline-offset: 2px; }
.cp-file.has-file .cp-drop { border-style: solid; border-color: rgba(226, 117, 58, .5); background: #fff; }
.cp-drop__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--copper); background: rgba(226, 117, 58, .1); }
.cp-drop__ico svg { width: 18px; height: 18px; }
.cp-drop__text { display: grid; gap: 2px; min-width: 0; }
.cp-drop__text b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; font-weight: 600; }
.cp-drop__text small { font-size: 12.5px; color: var(--muted); }
.cp-drop__x { position: absolute; top: 19px; right: 14px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer; color: var(--muted); background: rgba(29, 23, 18, .06); }
.cp-drop__x:hover { color: #c8432f; background: rgba(200, 67, 47, .1); }
.cp-drop__x svg { width: 15px; height: 15px; transform: rotate(45deg); }
.cp-drop__x[hidden] { display: none; }

.cp-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.cp-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.cp-note { flex: 1 1 220px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.cp-thanks { display: grid; justify-items: center; gap: 10px; padding: clamp(36px, 6vw, 80px) 10px; text-align: center; outline: none; }
.cp-thanks__tick { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 8px; border-radius: 50%; color: #fff; background: var(--copper); box-shadow: 0 16px 36px -12px rgba(226, 117, 58, .8); animation: cp-pop .6s var(--ease) both; }
.cp-thanks__tick svg { width: 32px; height: 32px; }
.cp-thanks__title { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.035em; }
.cp-thanks__text { max-width: 400px; margin-bottom: 14px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* side: what happens next + quick answers */
.cp-side { display: grid; gap: 14px; min-width: 0; }
.cp-next, .cp-faq { padding: clamp(22px, 2.4vw, 30px); border-radius: 24px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.cp-next { color: var(--cream); background: linear-gradient(180deg, #2c1f17, var(--espresso) 70%); border-color: transparent; box-shadow: 0 40px 70px -45px rgba(27, 20, 17, .7); }
.cp-side__title { margin-bottom: 18px; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.cp-steps { position: relative; display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.cp-steps::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 1px; background: var(--line-dark); }
.cp-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.cp-steps__no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--copper); background: var(--espresso); border: 1px solid rgba(226, 117, 58, .5); }
.cp-steps__title { padding-top: 7px; font-weight: 600; font-size: 16px; }
.cp-steps__text { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--muted-dark); }

.cp-faq__item { border-top: 1px solid var(--line); }
.cp-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.cp-faq__item summary::-webkit-details-marker { display: none; }
.cp-faq__item summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.cp-faq__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(29, 23, 18, .06); transition: transform .35s var(--ease), background .3s, color .3s; }
.cp-faq__icon svg { width: 14px; height: 14px; }
.cp-faq__item[open] .cp-faq__icon { transform: rotate(45deg); color: #fff; background: var(--copper); }
.cp-faq__item p { padding: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cp-faq__item[open] p { animation: cp-in .35s var(--ease) both; }
.cp-faq__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--copper); }

@keyframes cp-type { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-2px); opacity: 1; } }
@keyframes cp-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes cp-in { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 960px) {
  .cp-hero__grid, .cp-main__grid { grid-template-columns: 1fr; }
  .cp-hero__cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .cp-card { margin-top: 0; }
}
@media (max-width: 640px) {
  .cp-hero { padding-top: 110px; }   /* the same phone top as the other inner heroes */
  .cp-reach--mail { padding-right: 96px; }
  .cp-reach__mail { font-size: 16px; }   /* the address fits on one line next to the Copy button */
  .cp-row { grid-template-columns: 1fr; }
  .cp-card { padding: 22px 18px; border-radius: 22px; }
  .cp-btn { width: 100%; }
  .cp-plan { gap: 12px; padding: 12px; }
  .cp-plan__ico { width: 34px; height: 34px; border-radius: 10px; }
  .cp-plan__name { font-size: 16px; }
  .cp-plan__name span { display: block; margin: 2px 0 0; font-size: 13.5px; }
  .cp-plan__change { padding: 6px 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-reach, .cp-reach__go, .cp-chip span, .cp-field input, .cp-field textarea, .cp-faq__icon { transition: none; }
  .cp-hero__typing i, .cp-thanks__tick, .cp-faq__item[open] p, .cp-plan { animation: none; }
}
