/* Keep consultation steps and form fields clear at every width. */
.contact .gc-contact-steps {
    gap: 32px;
}

.contact .gc-contact-steps .step-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 18px;
    align-content: start;
    position: relative;
    float: none;
    padding: 0 !important;
}

.contact .gc-contact-steps .step-item::before {
    content: "";
    display: block;
    position: absolute;
    right: -16px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    height: auto;
    margin: 0;
    background: var(--gc-line-soft);
}

.contact .gc-contact-steps .step-item:last-child::before {
    display: none;
}

.contact .gc-contact-steps .step-number {
    position: static;
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 42px;
    line-height: 1.1;
}

.contact .gc-contact-steps h4,
.contact .gc-contact-steps p {
    grid-column: 2;
    min-width: 0;
    margin: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.contact .gc-contact-steps h4 {
    margin-bottom: 16px;
    font-size: 20px;
}

.contact .gc-contact-steps p {
    font-size: 16px;
    line-height: 1.8;
}

#contact-form .gc-form-label {
    display: block;
    margin: 0 0 8px;
    color: var(--gc-navy);
    font-size: 14.5px;
    font-weight: 700;
    text-align: left;
}

#contact-form .form-control:focus-visible {
    outline: 2px solid var(--gc-bronze);
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    .contact .gc-contact-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact .gc-contact-steps .step-item:nth-child(2)::before {
        display: none;
    }
}

@media (max-width: 639px) {
    .contact .gc-contact-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .contact .gc-contact-steps .step-item::before {
        display: none;
    }

    .contact .gc-contact-steps h4 {
        margin-bottom: 10px;
        font-size: 19px;
    }

    #contact-form .row > .col-md-6 + .col-md-6 {
        margin-top: 22px;
    }
}

/* ==========================================================================
   KakaoTalk-Style Legal Messenger UI (Codex CLI Integration on /contact)
   ========================================================================== */
.gc-ai-consult-box {
    scroll-margin-top: 96px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #CFD8E3;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(16, 30, 46, 0.09);
    overflow: hidden;
    margin-bottom: 36px;
}

/* Top Messenger Bar */
.gc-ai-consult-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    background: var(--gc-navy, #122132);
    color: #ffffff;
}

.gc-ai-consult-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gc-ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #C7B28E 0%, #9E8762 100%);
    color: #0A1420;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.03em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.gc-ai-profile-text {
    min-width: 0;
}

.gc-ai-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-ai-title-line h3 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.3;
}

.gc-ai-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
    flex-shrink: 0;
}

.gc-ai-consult-sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.4;
}

.gc-ai-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-chat-top-btn,
.gc-chat-reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.gc-chat-top-btn:hover:not(:disabled),
.gc-chat-reset-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.gc-chat-top-btn:disabled,
.gc-chat-reset-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Chat Stream Area */
.gc-chat-messages {
    background: #DFE6EF;
    padding: 24px 22px;
    height: 580px;
    min-height: 340px;
    max-height: 980px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.gc-chat-resize-handle {
    height: 14px;
    background: #EAEEF4;
    border-top: 1px solid #D2DBE7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ns-resize;
    user-select: none;
    touch-action: none;
    transition: background 0.15s ease;
}

.gc-chat-resize-handle:hover {
    background: #DEE5EE;
}

.gc-chat-resize-grip {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #9AA8BA;
}

@keyframes gcChatPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gc-chat-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 88%;
    animation: gcChatPop 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gc-chat-row--bot {
    align-self: flex-start;
}

.gc-chat-row--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.gc-chat-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--gc-navy, #122132);
    color: var(--gc-bronze-on-dark, #D5C4A3);
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.gc-chat-msg-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gc-chat-row--user .gc-chat-msg-body {
    align-items: flex-end;
}

.gc-chat-sender {
    font-size: 12px;
    font-weight: 700;
    color: #3B4A5B;
    margin: 0 0 5px 2px;
}

.gc-chat-bubble-line {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.gc-chat-row--user .gc-chat-bubble-line {
    flex-direction: row-reverse;
}

.gc-chat-bubble {
    padding: 12px 15px;
    font-size: 14.5px;
    line-height: 1.64;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 6px rgba(15, 28, 43, 0.07);
}

.gc-chat-row--bot .gc-chat-bubble {
    background: #ffffff;
    color: #142232;
    border-radius: 4px 16px 16px 16px;
}

.gc-chat-row--user .gc-chat-bubble {
    background: var(--gc-navy, #122132);
    color: #ffffff;
    border-radius: 16px 4px 16px 16px;
}

.gc-chat-time {
    font-size: 11px;
    color: #5C6B7C;
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 2px;
}

/* Quick Reply Chips inside Greeting */
.gc-chat-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.gc-chat-chip {
    background: #ffffff;
    border: 1px solid #BDC9D8;
    border-radius: 999px;
    color: var(--gc-navy, #122132);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 13px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(16, 30, 46, 0.05);
    transition: all 0.16s ease;
}

.gc-chat-chip:hover:not(:disabled) {
    background: var(--gc-navy, #122132);
    border-color: var(--gc-navy, #122132);
    color: #ffffff;
    transform: translateY(-1px);
}

.gc-chat-chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* In-Chat Typing Indicator Bubble */
.gc-chat-row.is-typing .gc-chat-bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: #ffffff;
    color: #3B4A5B;
    font-size: 13.5px;
    font-weight: 600;
}

.gc-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gc-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gc-navy, #122132);
    animation: gcTypingBounce 1.2s infinite ease-in-out;
}

.gc-typing-dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.gc-typing-dots span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes gcTypingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* In-Chat Summarizing Progress Card */
.gc-chat-row.is-summarizing {
    max-width: 92%;
}

.gc-chat-row.is-summarizing .gc-chat-bubble {
    background: #FFFDF9;
    border: 1px solid var(--gc-bronze, #B4A07E);
    border-radius: 12px;
    padding: 14px 18px;
}

.gc-sum-progress-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gc-navy, #122132);
    margin-bottom: 8px;
}

.gc-sum-progress-sub {
    font-size: 13px;
    color: #546274;
    margin-bottom: 10px;
}

.gc-sum-progress-bar {
    width: 100%;
    height: 6px;
    background: #E8E2D5;
    border-radius: 999px;
    overflow: hidden;
}

.gc-sum-progress-fill {
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, var(--gc-navy, #122132), var(--gc-bronze, #B4A07E));
    border-radius: 999px;
    animation: gcProgressSlide 1.3s infinite ease-in-out;
}

@keyframes gcProgressSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(240%);
    }
}

/* Summary Result Card inside Chat */
.gc-chat-row.is-summary {
    max-width: 92%;
}

.gc-chat-row.is-summary .gc-chat-bubble {
    background: #FFFDF9;
    border: 1.5px solid var(--gc-bronze, #B4A07E);
    border-radius: 4px 16px 16px 16px;
}

.gc-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #EFE9DC;
    color: #5B4B32;
    font-size: 12px;
    font-weight: 700;
}

.gc-chat-bubble-actions {
    margin-top: 8px;
}

.gc-chat-inline-apply {
    background: var(--gc-navy, #122132);
    border: 1px solid var(--gc-navy, #122132);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.gc-chat-inline-apply:hover {
    background: var(--gc-navy-soft, #1B3048);
}

/* Error Notice Bubble inside Chat */
.gc-chat-row.is-error-bubble .gc-chat-bubble {
    background: #FFF5F5;
    border: 1px solid #F0B4B4;
    color: #922724;
    font-size: 13.5px;
}

/* Messenger Composer Footer */
.gc-chat-composer {
    background: #ffffff;
    padding: 14px 18px 16px;
    border-top: 1px solid #E2E8F0;
}

.gc-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.gc-chat-input {
    width: 100%;
    padding: 11px 15px;
    background: #F4F6F9;
    border: 1px solid #D5DEE9;
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--gc-ink, #101E2E);
    resize: none;
    min-height: 46px;
    max-height: 120px;
}

.gc-chat-input:focus {
    background: #ffffff;
    border-color: var(--gc-navy, #122132);
    outline: none;
}

.gc-chat-send-btn {
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--gc-navy, #122132);
    border: 1px solid var(--gc-navy, #122132);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.gc-chat-send-btn:hover:not(:disabled) {
    background: var(--gc-navy-soft, #1B3048);
}

.gc-chat-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Summarize Action Bar Button */
.gc-chat-summarize-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C7B28E 0%, #B49E78 100%);
    border: 1px solid #AD9670;
    color: #0A1420;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-chat-summarize-btn:hover:not(:disabled) {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.gc-chat-summarize-btn:disabled {
    background: #EDF1F6;
    border-color: #D8E0EB;
    color: #8492A3;
    cursor: not-allowed;
    transform: none;
}

.gc-chat-summarize-btn.is-running {
    background: var(--gc-navy, #122132) !important;
    border-color: var(--gc-navy, #122132) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Form Target Area & Overlay */
.gc-contact-form-head {
    scroll-margin-top: 96px;
    text-align: left;
    margin: 40px 0 22px;
    padding: 0 2px 16px;
    border-bottom: 1px solid var(--gc-line-soft, #E2E7EE);
}

.gc-contact-form-head h3 {
    margin: 0 0 8px;
    font-family: var(--gc-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--gc-navy, #122132);
    line-height: 1.4;
}

.gc-contact-form-head p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.68;
    color: var(--gc-muted, #4E5B6B);
}

.gc-content-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gc-content-label-row .gc-form-label {
    margin-bottom: 0 !important;
}

.gc-content-label-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-content-expand-btn {
    background: #ffffff;
    border: 1px solid #C8D2DF;
    border-radius: 7px;
    color: var(--gc-navy, #122132);
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 11px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.gc-content-expand-btn:hover {
    background: var(--gc-navy, #122132);
    border-color: var(--gc-navy, #122132);
    color: #ffffff;
}

.gc-chat-apply-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F4EFE6;
    border: 1px solid var(--gc-bronze, #B4A07E);
    border-radius: 8px;
    color: var(--gc-ink, #101E2E);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
}

.gc-chat-apply-banner[hidden],
.gc-chat-undo-btn[hidden] {
    display: none !important;
}

.gc-chat-undo-btn {
    background: #ffffff;
    border: 1px solid #C8D2DF;
    border-radius: 5px;
    color: var(--gc-ink, #101E2E);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    cursor: pointer;
}

.gc-content-field-wrap {
    position: relative;
}

.gc-content-summarizing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
    border: 1.5px solid var(--gc-bronze, #B4A07E);
}

.gc-content-summarizing-overlay[hidden] {
    display: none !important;
}

.gc-summarizing-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: var(--gc-navy, #122132);
}

.gc-summarizing-box strong {
    font-size: 15px;
    font-weight: 700;
}

.gc-summarizing-box span {
    font-size: 13px;
    color: #556373;
}

.gc-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid #D5DEE9;
    border-top-color: var(--gc-navy, #122132);
    border-radius: 50%;
    display: inline-block;
    animation: gcSpin 0.75s linear infinite;
}

@keyframes gcSpin {
    to {
        transform: rotate(360deg);
    }
}

#contact-form #content {
    height: 300px;
    min-height: 200px;
    max-height: 980px;
    resize: none;
    line-height: 1.68;
    margin-bottom: 0;
}

.gc-content-resize-handle {
    border: 1px solid var(--gc-line, #D8DFE9);
    border-top: 1px solid #D2DBE7;
    border-radius: 0 0 8px 8px;
}

@keyframes gcFieldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(180, 160, 126, 0.7);
        border-color: var(--gc-bronze, #B4A07E);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(180, 160, 126, 0);
        border-color: var(--gc-line, #D8DFE9);
    }
}

.gc-field-highlight {
    animation: gcFieldPulse 1.4s ease-out 1;
}

@media (max-width: 639px) {
    .gc-ai-consult-topbar {
        padding: 14px 16px;
    }

    .gc-ai-consult-sub {
        display: none;
    }

    .gc-chat-messages {
        padding: 16px 12px;
        height: 460px;
        min-height: 300px;
    }

    .gc-chat-row {
        max-width: 95%;
    }

    .gc-chat-composer {
        padding: 12px;
    }

    .gc-chat-summarize-btn {
        font-size: 13.5px;
        padding: 11px 12px;
    }
}

/* ==========================================================================
   Optional Lawyer Designation Picker (/contact)
   ========================================================================== */

.gc-lawyer-picker-section {
    text-align: left;
    background: #FFFFFF;
    border: 1px solid var(--gc-line, #D8DFE9);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(16, 30, 46, 0.04);
}

.gc-lawyer-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gc-line-soft, #E6ECF3);
}

.gc-lawyer-picker-title-wrap {
    flex: 1 1 320px;
}

.gc-lawyer-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.gc-lawyer-label-row .gc-form-label {
    display: inline-block;
    margin-bottom: 0 !important;
}

.gc-lawyer-opt-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #EEF2F7;
    border: 1px solid #D5DEE9;
    color: #4E5B6B;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

#contact-form .gc-lawyer-picker-sub {
    margin: 0;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--gc-muted, #556373);
}

.gc-lawyer-status-bar {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-lawyer-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #F4F6F9;
    border: 1px solid #D5DEE9;
    color: #3E4D5E;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}

.gc-lawyer-status-pill.is-active {
    background: #122132;
    border-color: #122132;
    color: #E7D6B7;
}

.gc-lawyer-clear-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #C8D2DF;
    color: var(--gc-navy, #122132);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.gc-lawyer-clear-btn:hover {
    background: #F4EFE6;
    border-color: var(--gc-bronze, #B4A07E);
}

.gc-lawyer-clear-btn[hidden] {
    display: none !important;
}

.gc-lawyer-none-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1.5px solid #D8E0EB;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
}

.gc-lawyer-none-option:hover {
    background: #F2F5F9;
    border-color: #B8C4D4;
}

.gc-lawyer-none-option.is-selected {
    background: #F5F1E9;
    border-color: var(--gc-bronze, #B4A07E);
    box-shadow: 0 2px 10px rgba(18, 33, 50, 0.05);
}

.gc-lawyer-radio-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #9AA8B8;
    background: #FFFFFF;
    position: relative;
    flex-shrink: 0;
    transition: all 0.16s ease;
}

.gc-lawyer-none-option.is-selected .gc-lawyer-radio-mark {
    border-color: var(--gc-navy, #122132);
    background: var(--gc-navy, #122132);
}

.gc-lawyer-none-option.is-selected .gc-lawyer-radio-mark::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E5D4B5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gc-lawyer-none-text {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
    flex-wrap: wrap;
    flex: 1;
}

.gc-lawyer-none-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--gc-navy, #122132);
}

.gc-lawyer-none-text span {
    font-size: 12.5px;
    color: #5A6878;
}

/* 8-Lawyer Grid */
.gc-lawyer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gc-lawyer-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    min-height: 88px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1.5px solid #DCE3ED;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.gc-lawyer-card:hover {
    border-color: #9FB0C3;
    background: #FAFBFC;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 30, 46, 0.06);
}

.gc-lawyer-card.is-selected {
    background: linear-gradient(135deg, #122132 0%, #1B3046 100%);
    border-color: var(--gc-bronze, #B4A07E);
    box-shadow: 0 8px 20px rgba(18, 33, 50, 0.16);
}

.gc-lawyer-card-photo {
    width: 52px;
    height: 64px;
    border-radius: 7px;
    overflow: hidden;
    background: #E9EEF5;
    border: 1px solid rgba(18, 33, 50, 0.1);
    flex-shrink: 0;
}

.gc-lawyer-card.is-selected .gc-lawyer-card-photo {
    border-color: rgba(216, 194, 157, 0.55);
}

.gc-lawyer-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    display: block;
}

.gc-lawyer-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.gc-lawyer-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.gc-lawyer-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gc-ink, #101E2E);
    letter-spacing: -0.02em;
}

.gc-lawyer-card.is-selected .gc-lawyer-card-name {
    color: #FFFFFF;
}

.gc-lawyer-card-role {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: #EDF2F7;
    color: #3E4E60;
}

.gc-lawyer-card-role.is-lead {
    background: #F3ECE0;
    color: #7A633E;
}

.gc-lawyer-card.is-selected .gc-lawyer-card-role {
    background: rgba(216, 194, 157, 0.18);
    color: #EAD8B8;
}

.gc-lawyer-card-summary {
    display: none;
    font-size: 11.5px;
    color: #556373;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-lawyer-card.is-selected .gc-lawyer-card-summary {
    color: rgba(235, 241, 248, 0.88);
}

.gc-lawyer-card-areas {
    display: none;
    font-size: 11px;
    color: #768495;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-lawyer-card.is-selected .gc-lawyer-card-areas {
    color: rgba(216, 194, 157, 0.85);
}

.gc-lawyer-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gc-bronze, #B4A07E);
    color: #0E1B2A;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.16s ease;
}

.gc-lawyer-card.is-selected .gc-lawyer-card-check {
    opacity: 1;
    transform: scale(1);
}

.gc-lawyer-picker-section button:focus-visible,
.gc-lawyer-picker-section a:focus-visible {
    outline: 2px solid var(--gc-bronze, #B4A07E);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .gc-lawyer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 639px) {
    .gc-lawyer-picker-section {
        padding: 16px 14px;
    }

    .gc-lawyer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gc-lawyer-card {
        padding: 8px 9px;
        gap: 8px;
    }

    .gc-lawyer-card-photo {
        width: 44px;
        height: 54px;
    }

    .gc-lawyer-card-name {
        font-size: 14px;
    }

    .gc-lawyer-card-areas {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    .gc-lawyer-picker-section *,
    .gc-lawyer-picker-section *::before,
    .gc-lawyer-picker-section *::after {
        transition: none !important;
    }
}
/* Let visitors know how AI consultation messages are used before they send. */
.gc-chat-recording-notice{margin:0;padding:12px 22px;border-bottom:1px solid #e3e8ed;background:#f5f7f9;color:#55697d;font-size:12px;font-weight:400;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
@media(max-width:639px){.gc-chat-recording-notice{padding:11px 16px}}

/* One clear application action; the lookup remains available while scrolling. */
.gc-contact-submit-actions{display:flex;justify-content:center;margin-top:28px;padding-top:24px;border-top:1px solid #dce3e9}
#contact-form .gc-contact-submit{display:inline-flex;align-items:center;justify-content:center;width:280px;max-width:100%;min-height:52px;margin:0;padding:14px 28px!important;border:1px solid #14283d!important;border-radius:7px!important;background:#14283d!important;color:#fff!important;font-family:inherit;font-size:15px!important;font-weight:600!important;line-height:1.5;letter-spacing:-.025em;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
#contact-form .gc-contact-submit:hover{background:#263f58!important;border-color:#263f58!important;box-shadow:0 4px 12px rgba(18,33,50,.1)}
.gc-inquiry-floating{position:fixed;right:24px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:994;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:13px 20px;border:1px solid #a3967f;border-radius:28px;background:#14283d;color:#fff;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:-.025em;white-space:nowrap;box-shadow:0 5px 20px rgba(18,33,50,.18);cursor:pointer;touch-action:manipulation;transition:background .18s,box-shadow .18s}
.gc-inquiry-floating svg{width:20px;height:20px;flex:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.gc-inquiry-floating:hover,.gc-inquiry-floating[aria-expanded="true"]{background:#263f58;box-shadow:0 7px 22px rgba(18,33,50,.22)}
.gc-inquiry-floating:focus-visible{outline:2px solid #b4a07e;outline-offset:4px}
.gc-inquiry-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border:1px solid #14283d;border-radius:8px;background:#14283d;color:#fff;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:-.02em;cursor:pointer;transition:background .18s,border-color .18s}
.gc-inquiry-primary:hover{background:#263f58;border-color:#263f58;color:#fff}
.gc-inquiry-text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 0;border:0;background:transparent;color:#3d5873;font-family:inherit;font-size:13px;font-weight:600;line-height:1.5;cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#bfcbd6}
.gc-inquiry-text-button:hover{color:#14283d;text-decoration-color:currentColor}
.gc-contact-submit-actions button:focus-visible,.gc-inquiry-received button:focus-visible,.gc-inquiry-lookup button:focus-visible,.gc-inquiry-lookup input:focus-visible{outline:2px solid #9b8054;outline-offset:3px}
.gc-contact-submit-actions button:disabled,.gc-inquiry-lookup button:disabled{cursor:wait;opacity:.65}
.gc-inquiry-received[hidden],.gc-inquiry-modal[hidden],.gc-inquiry-result[hidden],.gc-inquiry-message[hidden]{display:none!important}
.gc-inquiry-received{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:20px;padding:15px 20px;border:1px solid #dbe3e9;border-radius:8px;background:#f6f8fa;text-align:left}
.gc-inquiry-received p{margin:0;color:#667789;font-size:13px;line-height:1.8;word-break:keep-all}
.gc-inquiry-received button{flex:none}
/* The fixed backdrop owns the viewport; only the dialog scrolls. */
.gc-inquiry-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:calc(28px + env(safe-area-inset-top,0px)) calc(24px + env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) calc(24px + env(safe-area-inset-left,0px));background:rgba(12,25,39,.6);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);overscroll-behavior:contain}
.gc-inquiry-lookup{box-sizing:border-box;width:100%;max-width:620px;max-height:100%;min-width:0;margin:0;padding:32px;border:1px solid rgba(255,255,255,.4);border-radius:18px;background:#fff;box-shadow:0 24px 90px rgba(7,19,32,.22);text-align:left;color:#233b52;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;animation:gc-inquiry-appear .18s ease-out}
.gc-inquiry-lookup:focus{outline:none}
.gc-inquiry-eyebrow{margin:0 0 8px;color:#8494a2;font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.5}
.gc-inquiry-panel-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;background:#fff}
.gc-inquiry-panel-head h3{margin:0;color:#14283d;font-size:26px;font-weight:600;line-height:1.4;letter-spacing:-.045em}
.gc-inquiry-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin:-7px -9px 0 0;padding:10px;border:0;border-radius:50%;background:transparent;color:#83909c;cursor:pointer;transition:background .18s,color .18s}
.gc-inquiry-close:hover{background:#f0f3f6;color:#203a53}
.gc-inquiry-close svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.gc-inquiry-help{margin:16px 0 24px;color:#70808e;font-size:14px;line-height:1.85;word-break:keep-all;overflow-wrap:anywhere}
.gc-inquiry-lookup-fields{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:end;gap:14px}
.gc-inquiry-lookup-fields>div{min-width:0}
.gc-inquiry-lookup-fields label{display:block;margin:0 0 8px;color:#344a60;font-size:13px;font-weight:600;line-height:1.5}
.gc-inquiry-lookup-fields input{box-sizing:border-box;display:block;width:100%;min-width:0;height:50px;margin:0;padding:12px 14px;border:1px solid #d7dfe6;border-radius:8px;background:#fafbfc;color:#20364c;font-family:inherit;font-size:16px;line-height:1.5;box-shadow:none;transition:border-color .18s,background .18s}
.gc-inquiry-lookup-fields input::placeholder{color:#97a3ae;font-size:13px}
.gc-inquiry-lookup-fields input:focus{border-color:#8d9fb1;background:#fff;box-shadow:0 0 0 3px rgba(35,60,86,.05)}
#gc-inquiry-lookup-submit{width:100%;margin-top:18px}
.gc-inquiry-message{margin:19px 0 0;color:#536b82;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.gc-inquiry-message.is-error{padding:11px 14px;border-radius:7px;background:#fff5f1;color:#985441}
.gc-inquiry-result{margin-top:25px;padding-top:22px;border-top:1px solid #e5eaf0;min-width:0}
.gc-inquiry-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.gc-inquiry-result-head h4{margin:0;color:#233c55;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.03em}
.gc-inquiry-result-head button{min-height:36px;font-size:12px}
.gc-inquiry-result-list{display:grid;gap:12px}
.gc-inquiry-status-card{min-width:0;padding:20px;border:1px solid #e1e7ed;border-radius:11px;background:#fafbfc}
.gc-inquiry-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gc-inquiry-card-date{min-width:0}
.gc-inquiry-card-date>span{display:block;margin-bottom:4px;color:#8795a1;font-size:11px;line-height:1.5}
.gc-inquiry-card-date h5{margin:0;color:#294158;font-family:inherit;font-size:14px;font-weight:500;line-height:1.7;letter-spacing:-.015em}
.gc-inquiry-status-badge{flex:none;padding:5px 9px;border:1px solid #d8e2eb;border-radius:5px;background:#edf3f7;color:#34516b;font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap}
.gc-inquiry-card-lawyer{margin:9px 0 0;color:#71818f;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.gc-inquiry-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;list-style:none!important;margin:17px 0 0;padding:0}
.gc-inquiry-progress li{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;margin:0;padding:10px 6px;border:1px solid #e3e8ed;border-radius:6px;background:#fff;color:#98a4af;font-size:12px;line-height:1.5}
.gc-inquiry-progress li>span{font-size:10px;font-weight:500;font-variant-numeric:tabular-nums}
.gc-inquiry-progress li>strong{font-weight:500;word-break:keep-all}
.gc-inquiry-progress li.is-complete{background:#edf2f6;border-color:#e0e7ed;color:#6b8195}
.gc-inquiry-progress li.is-current{background:#203b54;border-color:#203b54;color:#fff}
.gc-inquiry-status-detail{margin:12px 0 0;color:#8795a2;font-size:11px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}
.gc-inquiry-privacy-note{margin:23px 0 0;padding-top:17px;border-top:1px solid #edf0f3;color:#8b97a2;font-size:11px;line-height:1.7;word-break:keep-all}
@keyframes gc-inquiry-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:639px){
    .gc-inquiry-floating{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));min-height:48px;padding:11px 16px;font-size:13px}
    .gc-inquiry-modal{padding:calc(16px + env(safe-area-inset-top,0px)) calc(14px + env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) calc(14px + env(safe-area-inset-left,0px))}
    .gc-inquiry-lookup{padding:25px 22px;border-radius:14px}
    .gc-inquiry-panel-head h3{font-size:23px}
    .gc-inquiry-help{font-size:13px}
    .gc-inquiry-status-card{padding:16px 14px}
    .gc-inquiry-received{align-items:flex-start;flex-direction:column;gap:1px;padding:14px 16px}
}
@media(max-width:479px){
    #contact-form .gc-contact-submit{width:100%}
    .gc-inquiry-lookup-fields{grid-template-columns:minmax(0,1fr);gap:16px}
    .gc-inquiry-progress li{flex-direction:column;gap:3px;padding:9px 4px;font-size:11px}
    .gc-inquiry-card-date h5{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.gc-inquiry-primary,.gc-inquiry-floating,.gc-inquiry-close,.gc-inquiry-lookup-fields input,#contact-form .gc-contact-submit{transition:none}.gc-inquiry-lookup{animation:none}}
