/* ==========================================================================
   Huntingdonshire Business Directory - CONTACT PAGE
   Page-specific naming:
     .contact-form  (section)  ->  .contact-form__*  (the form + its fields)
     .contact-email (section)  ->  .contact-email__* (the email box)
   Shared components used here: .btn, .eyebrow, .page-head, .email-copy
   ========================================================================== */

/* ---- Page head (green banner) ---- */
.page-head { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); color: #fff; text-align: center; padding-block: clamp(2.4rem, 6vw, 4.2rem); }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .5rem; }
.page-head p { color: rgba(255,255,255,.92); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 660px; margin: 0 auto; }
.page-head .eyebrow { color: var(--accent-2); }

/* ---- Form section ---- */
.contact-form { background: var(--grey); padding-bottom: clamp(2.4rem, 5vw, 3.5rem); }
.contact-form__card { width: 90%; max-width: 960px; margin-inline: auto; background: linear-gradient(160deg, var(--brand), var(--brand-dark)); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(2rem, 5vw, 3.2rem); }
.contact-form__intro { text-align: center; color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.6; margin: 0 auto 2.2rem; max-width: 600px; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form__field { display: block; margin-bottom: 1.2rem; }
.contact-form__label { display: block; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.02rem; margin-bottom: .5rem; }
.contact-form__label em { color: rgba(255,255,255,.55); font-weight: 500; font-style: normal; font-size: .9rem; }

.contact-form__card input,
.contact-form__card select,
.contact-form__card textarea { width: 100%; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink); background-color: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius-sm); padding: .9rem 1rem; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.contact-form__card input:hover,
.contact-form__card select:hover,
.contact-form__card textarea:hover { border-color: #C2CBC6; }
.contact-form__card input:focus,
.contact-form__card select:focus,
.contact-form__card textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,125,85,.4); }
.contact-form__card ::placeholder { color: #9AA4B6; opacity: 1; }
.contact-form__card textarea { resize: none; min-height: 170px; }

.contact-form__select { appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; padding-right: 3rem; background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20stroke='%231E2E48'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M1.5%201.5l6.5%206.5%206.5-6.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 16px 10px; }

.contact-form__submit { width: 100%; margin-top: .3rem; }
.contact-form__submit i { font-size: .92em; }

/* ---- Email box section ---- */
.contact-email { padding-top: clamp(2.4rem, 5vw, 3.5rem); }
.contact-email__box { width: 90%; max-width: 960px; margin-inline: auto; display: flex; align-items: center; gap: 1.4rem; background: var(--grey); border: 1px solid var(--grey-line); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); padding: 1.6rem 1.9rem; }
.contact-email__icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.45rem; }
.contact-email__title { color: var(--brand); font-size: 1.2rem; margin: 0 0 .3rem; }
.contact-email__note { color: var(--muted); font-size: .95rem; line-height: 1.55; margin: 0 0 .7rem; }
/* copy link: .email-copy gives the base styling + JS copy hook; block-level here (not inline) so it doesn't inherit the line-box that would push the box content up */
.contact-email__link { display: flex; width: fit-content; padding-block: 0; }

/* ---- Responsive ---- */
@media (max-width: 560px) {
    .contact-form__card,
    .contact-email__box { width: 100%; }
    .contact-form__grid { grid-template-columns: 1fr; gap: 0; }
    .contact-email__box { flex-direction: column; text-align: center; gap: 1rem; }
    .contact-email__link { margin-inline: auto; }
}
