/* 의뢰 화면(/contact/) — styles.css 다음에 읽는다 */
.contact-page [hidden] { display: none !important; }
.contact-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 1.5rem; max-width: 48rem; }
.contact-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; }
.contact-head h1 + p { margin-top: .9rem; }
.contact-head p { color: var(--muted); }
.contact-head a { color: var(--brand); font-weight: 700; }

.contact-body { max-width: 48rem; padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.cf, .cf-done { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: clamp(1.25rem, 4vw, 2rem); }
.cf { display: grid; gap: 1.5rem; }
.cf-field > label, .cf-label { display: block; margin-bottom: .45rem; font-size: .95rem; font-weight: 700; }
.cf-req { display: inline-block; width: .38rem; height: .38rem; margin-left: .3rem; border-radius: 50%; background: #c62828; vertical-align: middle; transform: translateY(-1px); }

.cf input:not([type=checkbox]):not([type=file]), .cf select, .cf textarea {
  width: 100%; min-height: 2.9rem; padding: .6rem .8rem;
  border: 1px solid #c9d1df; border-radius: 4px; background: #fff;
  color: var(--ink); font: inherit; font-size: 1rem;
}
.cf textarea { resize: vertical; line-height: 1.6; }
.cf input::placeholder, .cf textarea::placeholder { color: #8a93a6; }
.cf input:focus-visible, .cf select:focus-visible, .cf textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--brand); }
.cf [aria-invalid=true] { border-color: #c62828 !important; }
.cf .cf-date { max-width: 14rem; }

.cf-phone { display: flex; align-items: center; gap: .5rem; }
.cf-phone input { flex: 1; min-width: 0; text-align: center; }
.cf-phone span { color: var(--muted); }
@media (min-width: 601px) { .cf-phone input { flex: 0 0 6rem; } }

.cf-error { margin-top: .4rem; font-size: .92rem; color: #c62828; }
.cf-hint { margin-bottom: .55rem; font-size: .92rem; color: var(--muted); }
.cf-hint a, .contact-alt a, .cf-alert a { color: var(--brand); font-weight: 700; }

.cf-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cf-drop {
  display: flex; align-items: center; justify-content: center; min-height: 3.6rem; padding: .8rem 1rem;
  border: 1.5px dashed #b4bdd0; border-radius: 6px; background: var(--soft);
  color: var(--brand); font-weight: 700; cursor: pointer; text-align: center;
}
.cf-drop:hover, .cf-drop.is-over { border-color: var(--brand); }
.cf-file-input:focus-visible + .cf-drop { outline: 3px solid var(--accent); outline-offset: 2px; }
.cf-file-input[aria-invalid=true] + .cf-drop { border-color: #c62828; }
.cf-file-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.cf-file-list:empty { display: none; }
.cf-file-list li { display: flex; align-items: center; gap: .6rem; padding: .35rem .4rem .35rem .8rem; border: 1px solid var(--line); border-radius: 4px; font-size: .95rem; }
.cf-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-file-size { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.cf-file-remove { flex: none; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-size: 1.1rem; cursor: pointer; }
.cf-file-remove:hover { background: var(--soft); color: var(--ink); }
.cf-file-total { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
.cf-file-total:empty { display: none; }

.cf-consent { font-size: .95rem; }
.cf-more summary { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .95rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
.cf-more summary::-webkit-details-marker { display: none; }
.cf-policy { max-height: 14rem; overflow-y: auto; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); font-size: .9rem; line-height: 1.6; }
.cf-policy dl { margin: 0; display: grid; gap: .55rem; }
.cf-policy dt { font-weight: 700; }
.cf-policy dd { margin: .1rem 0 0; color: var(--muted); }
.cf-check { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; margin-top: .3rem; cursor: pointer; font-size: 1rem; }
.cf-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }

.cf-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-alert { padding: .8rem 1rem; border-radius: 4px; background: #fdecec; color: #a31515; font-size: .95rem; }
.cf-submit { display: flex; justify-content: center; }
.cf-submit .btn { min-width: 12.5rem; font: inherit; font-weight: 700; cursor: pointer; }
.cf-submit .btn:disabled { opacity: .6; cursor: wait; }

.cf-done { text-align: center; padding: clamp(2rem, 6vw, 3rem) 1.5rem; }
.cf-done:focus { outline: none; }
.cf-done-icon { width: 3rem; height: 3rem; margin: 0 auto .8rem; color: var(--brand); }
.cf-done h2 { font-size: 1.4rem; font-weight: 800; }
.cf-done-no { margin: .6rem 0 .6rem; }
.cf-done-no b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cf-done p { color: var(--muted); }
.cf-done .cf-done-no { color: var(--ink); }
.cf-next { margin-top: 1.25rem; font-size: .95rem; }
.cf-next-head { font-weight: 700; color: var(--ink) !important; }

.contact-alt { margin-top: 1.25rem; text-align: center; font-size: .95rem; color: var(--muted); }

@media (max-width: 600px) {
  .cf-submit .btn { width: 100%; }
}
