/* ============================================================
   contact.css — Contact page in the auth split-card design.
   Restyles the existing (JS-driven) contact form markup so all
   ids/classes/scripts keep working. Scoped under .cl-app.
   ============================================================ */

.cl-app .auth--contact .auth-shell { max-width: 1100px; }
.cl-app .auth--contact .auth-card { max-width: 620px; }
.cl-app .auth--contact .auth-main { padding-block: clamp(24px,3vw,40px); }

/* left info panel (on the dark brand panel) */
.cl-app .contact-info { position: relative; z-index: 2; }
.cl-app .contact-info h2 { font-size: clamp(26px,2.6vw,38px); letter-spacing: -.02em; line-height: 1.05; }
.cl-app .contact-info p { margin-top: 12px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; }
.cl-app .contact-info .contact-mail { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 700; }
.cl-app .contact-info .contact-mail a { color: var(--orange); }
.cl-app .contact-map { margin-top: 22px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: var(--sh-md); }
.cl-app .contact-map iframe { display: block; width: 100%; border: 0; }

/* form fields */
.cl-app .cl-contact-form { display: grid; gap: 13px; }
.cl-app .cl-contact-form select,
.cl-app .cl-contact-form input[type="text"],
.cl-app .cl-contact-form input[type="email"],
.cl-app .cl-contact-form textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.cl-app .cl-contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23516772' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; }
.cl-app .cl-contact-form input::placeholder,
.cl-app .cl-contact-form textarea::placeholder { color: var(--ink-faint); }
.cl-app .cl-contact-form select:focus,
.cl-app .cl-contact-form input:focus,
.cl-app .cl-contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1,67,96,.08); }
.cl-app .cl-contact-form textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.cl-app .cl-contact-form .textarea-wrapper { position: relative; }
.cl-app .cl-contact-form #charCount { position: absolute; right: 12px; bottom: 10px; font-size: 12px; font-weight: 700; }

/* file upload tiles */
.cl-app .cl-contact-form .file_upload { width: 100%; }
.cl-app .cl-contact-form .file_upload label { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer;
  border: 1.6px dashed var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s, background .2s; }
.cl-app .cl-contact-form .file_upload label:hover { border-color: var(--orange); background: #fff; }
.cl-app .cl-contact-form .form-pad--file-picto { display: none; }
.cl-app .cl-contact-form .form-pad--file-wrapper { display: flex; flex-direction: column; min-width: 0; }
.cl-app .cl-contact-form .form-pad--file-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.cl-app .cl-contact-form .form-pad--file-limit { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.cl-app .cl-contact-form .form-pad--file-filename { font-size: 12.5px; color: #1f8a5b; font-weight: 700; }
.cl-app .cl-contact-form .form-pad--file-button { margin-left: auto; padding: 9px 16px; border-radius: var(--r-pill);
  background: #fff; color: var(--blue); font-weight: 700; font-size: 13.5px; box-shadow: var(--sh-sm); white-space: nowrap; }
.cl-app .cl-contact-form input[type="file"] { font-size: 12px; color: var(--ink-faint); max-width: 100%; }

/* terms checkbox */
.cl-app .cl-contact-form .terms-conditions { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.cl-app .cl-contact-form .terms-conditions input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.cl-app .cl-contact-form .terms-conditions a { color: var(--blue); font-weight: 700; }

/* submit button (reuses .link-button markup) */
.cl-app .cl-contact-form .link-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: var(--r-pill); font-weight: 700; font-family: var(--sans); cursor: pointer;
  background: var(--orange); color: var(--blue-900); box-shadow: var(--sh-cta); padding: 15px 26px; font-size: 16px;
  width: 100%; margin-top: 6px; transition: transform .18s, box-shadow .25s, background .2s; }
.cl-app .cl-contact-form .link-button:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: var(--sh-cta-hover); }

/* alerts */
.cl-app .cl-contact-form .alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.cl-app .cl-contact-form .alert-success { background: #f1faf4; color: #1f7a4d; border-color: #bfe3cf; }
.cl-app .cl-contact-form .alert-danger { background: #fff4ec; color: #c2410c; border-color: #f3d6c4; }
.cl-app .cl-contact-form .alert .close { margin-left: auto; border: none; background: none; color: inherit; font-size: 18px; cursor: pointer; line-height: 1; }
.cl-app .cl-contact-form .alert p { margin: 0; }

/* g-recaptcha centering */
.cl-app .cl-contact-form .g-recaptcha { margin: 4px 0; }

@media (max-width: 860px) {
  .cl-app .auth--contact .contact-map { display: none; }
}
