/* ============================================================
   CONTACT — tab (desktop) · fab (mobile) · full-screen panel
   ============================================================ */

/* =========================================
   CONTACT — tab (desktop) + FAB (mobile) + full-screen panel
   ========================================= */
.contact-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    border: none;
    padding: 22px 13px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.28);
    transition: padding-right 0.25s ease, transform 0.25s ease;
}
.contact-tab:hover {
    padding-right: 18px;
}
.contact-tab i {
    font-size: 14px;
    writing-mode: horizontal-tb;
}

.contact-fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
    z-index: 900;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-fab:hover { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35); }
.contact-fab:active { transform: scale(0.94); }

/* Full-screen panel — fits one viewport, no scroll */
.contact-panel {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1400;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.5s;
    visibility: hidden;
    overflow: hidden;
}
.contact-panel.active {
    transform: translateX(0);
    visibility: visible;
}

.contact-wrap {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 36px 36px 16px;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    overflow: hidden;
}

.contact-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.2s ease;
}
.contact-close:hover { background: var(--hover); transform: rotate(90deg); }

/* Head — centered */
.contact-head {
    flex-shrink: 0;
    text-align: center;
}
.contact-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 0.26em;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.tagline-line {
    display: inline-block;
    width: 26px;
    height: 1px;
    background: var(--text-dim);
}
.contact-hgroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.contact-title {
    font-size: clamp(38px, 4.4vw, 64px);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.02em;
}
.contact-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
    white-space: nowrap;
}

/* Grid — map (max 600px) + contact info (fixed 400px), centered */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 600px) 400px;
    gap: 16px;
    justify-content: center;
}

.contact-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 22px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.col-label {
    font-size: 9.5px;
    letter-spacing: 0.26em;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.col-title {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.col-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-tail {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
}

/* Map card — grid stretches to match info card height */
.col-map-card { padding: 18px; }
.col-map-card .col-label { padding: 2px 2px 0; }

.col-map {
    position: relative;
    flex: 1;
    min-height: 160px;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
}
.col-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
[data-theme="light"] .col-map iframe { filter: grayscale(0.2); }
:root:not([data-theme="light"]) .col-map iframe {
    filter: invert(0.92) hue-rotate(180deg) brightness(0.94) contrast(0.95);
}

/* Chat icons inside info card — simple circles with tooltip */
.info-chats {
    display: flex;
    gap: 8px;
    margin: 10px 0 12px;
}
.info-chat {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.info-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}
.info-chat svg { width: 16px; height: 16px; }
.info-chat::before {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a1a1a;
    color: #fff;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.info-chat::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.info-chat:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.info-chat:hover::after { opacity: 1; }

.info-chat-naver { background: #03c75a; color: #fff; }
.info-chat-kakao { background: #fee500; color: #391b1b; }
.info-chat-kakao svg { display: block; }

/* Info list — tight */
.col-info {
    display: grid;
    row-gap: 5px;
}
.col-info .info-row {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    font-size: 12px;
    line-height: 1.4;
    align-items: baseline;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
}
.col-info .info-row:last-child { border-bottom: none; padding-bottom: 0; }
.col-info dt {
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
}
.col-info dd {
    color: var(--text);
    margin: 0;
}
.col-info a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s ease;
}
.col-info a:hover { border-bottom-color: var(--text); }

/* Footer */
.contact-foot {
    flex-shrink: 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
}


/* ═════════════════════════════
   CONTACT FORM (C3) — info card 내 폼
   ═════════════════════════════ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 720px) {
    .contact-form-row { grid-template-columns: 1fr; }
}

.contact-form label,
.contact-form-full {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text);
    min-width: 0;
}
.contact-form label > span,
.contact-form-full > span {
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 13px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.55;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px var(--hover);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }

/* Honeypot — 시각적 숨김(이미 inline style이지만 안전망) */
.contact-form .contact-hp { display: none !important; }

.contact-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.contact-form-actions .btn-primary {
    padding: 11px 26px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.contact-form-msg {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}
.contact-form-msg.is-error   { color: #d0463b; }
.contact-form-msg.is-success { color: #2c9b6a; }

/* col-tail 위쪽 여백 */
.col-info-card .col-tail {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* info-chats(카카오/네이버) 정렬 */
.info-chats {
    display: flex;
    gap: 10px;
    margin: 14px 0 18px;
}
.info-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all .15s ease;
}
.info-chat:hover { border-color: var(--text); background: var(--hover); }
.info-chat-naver  { font-weight: 700; font-size: 13px; }
.info-chat-kakao  { color: #3c1e1e; background: #fae100; border-color: #fae100; }
.info-chat-kakao:hover { background: #f0d800; border-color: #f0d800; }

/* info-socials (SNS follow buttons) */
.info-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}
.info-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all .15s ease;
}
.info-social:hover {
    border-color: var(--text);
    background: var(--hover);
    transform: translateY(-1px);
}
.info-social-instagram:hover { color: #E1306C; }
.info-social-facebook:hover  { color: #1877F2; }
.info-social-youtube:hover   { color: #FF0000; }
.info-social-tiktok:hover    { color: #000; }
.info-social-twitter:hover   { color: #000; }
.info-social-threads:hover   { color: #000; }

/* ============================================================
   Contact form modal — header Contact 버튼에서 열리는 팝업
   Reference: ref/photographer (3).html
   ============================================================ */
.contact-form-modal {
    position: fixed;
    inset: 0;
    z-index: 1450;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}
.contact-form-modal.active {
    opacity: 1;
    visibility: visible;
}

.cfm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.cfm-panel {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px 32px 32px;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.contact-form-modal.active .cfm-panel {
    transform: scale(1) translateY(0);
}

.cfm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.2s ease;
}
.cfm-close:hover { background: var(--hover); transform: rotate(90deg); }

.cfm-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.cfm-eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.cfm-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.cfm-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.cfm-form { display: flex; flex-direction: column; gap: 14px; }
.cfm-field { display: flex; flex-direction: column; gap: 6px; }
.cfm-field label {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
}
.cfm-field label .required { color: #d94d4d; margin-left: 2px; }

.cfm-field input,
.cfm-field textarea {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.5;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
}
.cfm-field input::placeholder,
.cfm-field textarea::placeholder { color: var(--text-dim); opacity: 0.7; }
.cfm-field input:focus,
.cfm-field textarea:focus {
    outline: none;
    border-color: var(--text);
    background: var(--bg);
}
.cfm-field input:invalid:not(:placeholder-shown),
.cfm-field textarea:invalid:not(:placeholder-shown) { border-color: #d94d4d; }
.cfm-field textarea { resize: vertical; min-height: 110px; }

.cfm-actions { display: flex; gap: 10px; margin-top: 8px; }
.cfm-btn {
    flex: 1;
    padding: 13px 18px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cfm-btn-ghost { background: transparent; color: var(--text); }
.cfm-btn-ghost:hover { background: var(--hover); }
.cfm-btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.cfm-btn-primary:hover { opacity: 0.88; }
.cfm-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
    .contact-form-modal { padding: 0; align-items: flex-end; }
    .cfm-panel {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        padding: 28px 22px 24px;
        transform: translateY(100%);
    }
    .contact-form-modal.active .cfm-panel { transform: translateY(0); }
    .cfm-title { font-size: 24px; }
}
