/* PNC Market 커스텀 스타일 (public/css/market.css) */

.hero-carousel__slide { opacity: 0; z-index: 0; pointer-events: none; }
.hero-carousel__slide.is-active { opacity: 1; z-index: 1; }
.hero-carousel__dot.is-active { width: 2rem; background: #fff; }
.hero-carousel__panel[hidden] { display: none !important; }

.cute-bg-blobs::before,
.cute-bg-blobs::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
}
.cute-bg-blobs::before {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #ffd6e8 0%, transparent 72%);
    opacity: 0.55;
    top: -60px;
    right: -40px;
}
.cute-bg-blobs::after {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, #e8deff 0%, transparent 72%);
    opacity: 0.5;
    bottom: 100px;
    left: -50px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #ff7eb3;
    color: #fff;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 8px 20px -4px rgb(255 126 179 / 0.4);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
button.btn-primary,
[type="submit"].btn-primary {
    background: #ff7eb3 !important;
    background-image: none !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: #f0629a; }
button.btn-primary:hover,
[type="submit"].btn-primary:hover {
    background: #f0629a !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: #fff;
    border: 2px solid rgb(255 126 179 / 0.35);
    color: #f0629a;
    font-weight: 700;
    border-radius: 9999px;
}

.card {
    background: #fff;
    border: 2px solid rgb(255 126 179 / 0.15);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 16px -4px rgb(74 61 82 / 0.08);
}
.solution-card.card {
    overflow: visible;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgb(255 126 179 / 0.25);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.panel-cute {
    background: #fff;
    border: 2px solid rgb(255 126 179 / 0.18);
    border-radius: 2rem;
    box-shadow: 0 8px 24px -8px rgb(74 61 82 / 0.1);
}

.heading-cute {
    font-size: 1.875rem;
    font-weight: 800;
    color: #4a3d52;
    letter-spacing: -0.02em;
}
.heading-cute span { color: #ff7eb3; }

.subheading-cute {
    color: #6d5f75;
    font-size: 1.125rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.tag-cute {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid rgb(255 126 179 / 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4a3d52;
}

.input-cute {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgb(255 126 179 / 0.2);
    border-radius: 1rem;
    background: #fff;
    color: #4a3d52;
}

.select-cute {
    width: 100%;
    min-width: 8.5rem;
    max-width: 100%;
    flex-shrink: 0;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid rgb(255 126 179 / 0.2);
    border-radius: 1rem;
    background-color: #fff;
    color: #4a3d52;
    font-size: 0.875rem;
    line-height: 1.25;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f0629a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.125rem;
}
@media (min-width: 768px) {
    .select-cute {
        width: 10rem;
    }
}
.select-cute:focus {
    outline: none;
    border-color: #ff7eb3;
    box-shadow: 0 0 0 4px rgb(255 126 179 / 0.15);
}

/* 솔루션 탐색 — AJAX 로딩 */
.solutions-main.is-busy {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* 문의 모달 — 접수 로딩 */
.inquiry-modal__panel {
    overflow: hidden;
}
.inquiry-modal__panel.is-loading > :not(.inquiry-modal__loading) {
    pointer-events: none;
    user-select: none;
}
.inquiry-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: inherit;
}
.inquiry-modal__panel.is-loading .inquiry-modal__loading {
    display: flex;
}
.inquiry-modal__loading-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a3d52;
}
.inquiry-modal__spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid rgb(255 126 179 / 0.25);
    border-top-color: #ff7eb3;
    border-radius: 50%;
    animation: inquiry-modal-spin 0.75s linear infinite;
}
@keyframes inquiry-modal-spin {
    to { transform: rotate(360deg); }
}
.inquiry-modal__panel.is-loading [data-inquiry-submit] {
    opacity: 0.7;
    cursor: wait;
}

/* 문의 모달 — 유형 선택 */
.inquiry-type-select {
    margin: 0;
    padding: 0;
    border: 0;
}
.inquiry-type-select__legend {
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #4a3d52;
}
.inquiry-type-select__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}
.inquiry-type-option {
    position: relative;
    display: block;
    cursor: pointer;
}
.inquiry-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.inquiry-type-option__label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.625rem;
    border: 2px solid rgb(255 126 179 / 0.2);
    border-radius: 0.875rem;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.inquiry-type-option input:checked + .inquiry-type-option__label {
    border-color: #ff7eb3;
    background: rgb(255 126 179 / 0.08);
    color: #4a3d52;
    box-shadow: 0 0 0 1px rgb(255 126 179 / 0.15);
}
.inquiry-type-option input:focus-visible + .inquiry-type-option__label {
    outline: 2px solid #ff7eb3;
    outline-offset: 2px;
}
@media (max-width: 480px) {
    .inquiry-type-select__options {
        grid-template-columns: 1fr;
    }
}

/* 마이페이지 — 문의 상세 모달 */
.inquiry-card {
    cursor: pointer;
}
.inquiry-detail-modal__panel {
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}
.inquiry-detail-modal__label {
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}
.inquiry-detail-modal__solution {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #4a3d52;
    text-decoration: none;
}
.inquiry-detail-modal__solution:hover {
    color: #ff7eb3;
}
.inquiry-detail-modal__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.inquiry-detail-modal__status {
    display: inline-flex;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.inquiry-detail-modal__status--pending {
    background: rgb(255 126 179 / 0.1);
    color: #ff7eb3;
}
.inquiry-detail-modal__status--answered {
    background: rgb(125 211 192 / 0.15);
    color: #5bc4ad;
}
.inquiry-detail-modal__message {
    padding: 1rem 1.125rem;
    border: 2px solid rgb(255 126 179 / 0.12);
    border-radius: 1rem;
    background: #fffafc;
    white-space: pre-wrap;
    line-height: 1.7;
    color: #4a3d52;
    min-height: 6rem;
}
@media (max-width: 640px) {
    .inquiry-detail-modal__meta {
        grid-template-columns: 1fr;
    }
}

/* 솔루션 탐색 — 활성 필터 뱃지 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
    padding: 0.375rem 0.5rem 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 2px solid rgb(255 126 179 / 0.28);
    background: #fff0f6;
    color: #4a3d52;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.filter-tag:hover {
    background: #ffe8f2;
    border-color: #ff7eb3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgb(255 126 179 / 0.45);
}
.filter-tag__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-tag__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: rgb(255 126 179 / 0.2);
    color: #f0629a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}
.filter-tag:hover .filter-tag__remove {
    background: #ff7eb3;
    color: #fff;
}
.filter-tag--zone { border-color: rgb(255 180 200 / 0.55); background: #fff5f8; }
.filter-tag--size { border-color: rgb(196 181 253 / 0.55); background: #f8f5ff; }
.filter-tag--size .filter-tag__remove { background: rgb(196 181 253 / 0.35); color: #7c6bb0; }
.filter-tag--size:hover .filter-tag__remove { background: #c4b5fd; color: #fff; }
.filter-tag--contract { border-color: rgb(125 211 192 / 0.45); background: #f3fcf9; }
.filter-tag--contract .filter-tag__remove { background: rgb(125 211 192 / 0.3); color: #4a9a88; }
.filter-tag--contract:hover .filter-tag__remove { background: #7dd3c0; color: #fff; }

/* 솔루션 탐색 — 필터 사이드바·칩 레이아웃: pnc-solutions.css */

/* 솔루션 탐색 — 필터 칩 (레거시 마크업용) */
.filter-group__title {
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
    font-weight: 800;
    color: #4a3d52;
}
.filter-group__list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.filter-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: 1rem;
    border: 2px solid rgb(255 126 179 / 0.16);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.filter-chip:hover {
    border-color: rgb(255 126 179 / 0.38);
    background: #fff9fc;
    transform: translateX(2px);
}
.filter-chip__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.filter-chip__box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.375rem;
    border: 2px solid rgb(255 126 179 / 0.35);
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.filter-chip__box::after {
    content: '';
    display: block;
    width: 0.3rem;
    height: 0.55rem;
    margin-top: -0.125rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}
.filter-chip__label {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #6d5f75;
    transition: color 0.2s ease;
}
.filter-chip:has(.filter-chip__input:checked) {
    border-color: #ff7eb3;
    background: #fff0f6;
    box-shadow: 0 4px 14px -4px rgb(255 126 179 / 0.45);
}
.filter-chip:has(.filter-chip__input:checked) .filter-chip__box {
    background: #ff7eb3;
    border-color: #ff7eb3;
    transform: scale(1.05);
}
.filter-chip:has(.filter-chip__input:checked) .filter-chip__box::after {
    transform: rotate(45deg) scale(1);
}
.filter-chip:has(.filter-chip__input:checked) .filter-chip__label {
    color: #4a3d52;
    font-weight: 700;
}
.filter-chip:has(.filter-chip__input:focus-visible) {
    outline: 2px solid #ff7eb3;
    outline-offset: 2px;
}
.filter-chip--zone-a:has(.filter-chip__input:checked) {
    border-color: #ffb4c8;
    background: #fff5f8;
}
.filter-chip--zone-a:has(.filter-chip__input:checked) .filter-chip__box {
    background: #ffb4c8;
    border-color: #ffb4c8;
}
.filter-chip--zone-b:has(.filter-chip__input:checked) {
    border-color: #d4b8ff;
    background: #f8f5ff;
}
.filter-chip--zone-b:has(.filter-chip__input:checked) .filter-chip__box {
    background: #d4b8ff;
    border-color: #d4b8ff;
}
.filter-chip--zone-c:has(.filter-chip__input:checked) {
    border-color: #ffd4a8;
    background: #fffaf3;
}
.filter-chip--zone-c:has(.filter-chip__input:checked) .filter-chip__box {
    background: #ffd4a8;
    border-color: #ffd4a8;
}
.filter-chip--zone-d:has(.filter-chip__input:checked) {
    border-color: #a8e6cf;
    background: #f3fcf8;
}
.filter-chip--zone-d:has(.filter-chip__input:checked) .filter-chip__box {
    background: #a8e6cf;
    border-color: #a8e6cf;
}

.zone-badge-a { background: #ffb4c8; color: #4a3d52; }
.zone-badge-b { background: #d4b8ff; color: #4a3d52; }
.zone-badge-c { background: #ffd4a8; color: #4a3d52; }
.zone-badge-d { background: #a8e6cf; color: #4a3d52; }

.zone-card {
    position: relative;
    display: block;
    height: 340px;
    overflow: hidden;
    border-radius: 2rem;
    border: 2px solid rgb(255 126 179 / 0.15);
    box-shadow: 0 8px 24px -8px rgb(74 61 82 / 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
@media (min-width: 768px) {
    .zone-card { height: 380px; }
}
.zone-card:hover {
    transform: translateY(-6px);
    border-color: rgb(255 126 179 / 0.28);
    box-shadow: 0 20px 40px -12px rgb(255 126 179 / 0.28);
}
.zone-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #fff;
    transition: transform 0.3s ease;
}
@media (min-width: 768px) {
    .zone-card__title { font-size: 1.5rem; }
}
.zone-card:hover .zone-card__title { transform: translateX(4px); }
.zone-card__title-slash {
    font-weight: 500;
    color: rgb(255 255 255 / 0.75);
}
.zone-card__desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgb(255 255 255 / 0.78);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zone-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(255 255 255 / 0.2);
}
