/* 실시간 견적 문의 플랫폼 통합 CSS */


/* 기본 변수 정의 - 메인 스타일과 일치 */

:root {
    --primary-color: var(--primary-color);
    --secondary-color: #f8f9fa;
    --accent-color: #4cc9f0;
    --light-bg: #f8f9fa;
    --dark-color: #333;
    --gray-color: #6c757d;
    --success-color: #4ade80;
    --warning-color: #fb8500;
    --danger-color: #ef4444;
    --border-color: #eee;
    --border-radius: 12px;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


/* 공통 스타일 적용 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 앱 컨테이너 스타일 */

.vendor-dashboard-page,
.vendor-inquiries-page,
.inquiry-result-page,
.realtime-inquiry-page,
.my-inquiries-page {
    position: relative;
    padding: 0 15px 60px;
    max-width: 780px;
    margin: 0 auto;
    background-color: #fff;
}

@media screen and (max-width: 480px) {
    .vendor-dashboard-page,
    .vendor-inquiries-page,
    .inquiry-result-page,
    .realtime-inquiry-page,
    .my-inquiries-page {
        padding: 0 15px 60px;
    }
}


/* ===== 공통 스타일 ===== */


/* 앱 헤더 */

.app-header {
    padding: 20px;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.app-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.welcome-message {
    margin-top: 5px;
    font-size: 14px;
    color: var(--gray-color);
}


/* 버튼 스타일 */

.btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn i {
    margin-right: 6px;
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--dark-color) !important;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-danger {
    background: var(--danger-color);
    color: white !important;
}

.btn-danger:hover {
    background: #c82333;
}


/* 필터 탭 */

.filter-tabs {
    display: flex;
    padding: 15px 20px 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    background-color: white;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.filter-tab {
    padding: 8px 16px;
    margin-right: 10px;
    background-color: var(--light-bg);
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--gray-color);
    border: none;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: white;
}


/* 상태 필터 */

.status-filter {
    display: flex;
    margin: 0 20px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background-color: white;
    padding: 15px 0 5px;
    flex-wrap: nowrap;
}

.status-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 20px;
    background: var(--light-bg);
    color: var(--gray-color);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}


/* 섹션 타이틀 */

.section-title {
    padding: 20px 20px 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}


/* 모달 */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    background-color: white;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-open 0.3s ease;
}

@keyframes modal-open {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--gray-color);
}

.form-group {
    margin-bottom: 20px;
    padding: 0 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    outline: none;
}

.form-actions {
    padding: 15px 20px 25px;
    display: flex;
    justify-content: space-between;
}

.btn-cancel,
.btn-submit {
    padding: 12px 0;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 48%;
    font-size: 15px;
    border: none;
    transition: all 0.2s;
}

.btn-cancel {
    background-color: var(--light-bg);
    color: var(--dark-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
}

.btn-submit:active {
    opacity: 0.9;
}


/* ===== 업체 대시보드 스타일 ===== */


/* 통계 영역 */

.dashboard-stats {
    background-color: white;
    padding: 10px 20px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px 15px 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card:nth-child(1) {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.stat-card:nth-child(2) {
    background-color: #e0f7fa;
    color: #006064;
}

.stat-card:nth-child(3) {
    background-color: #fff3e0;
    color: #e65100;
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}


/* 빠른 링크 */

.quick-links {
    display: flex;
    gap: 10px;
    padding: 5px 20px 20px;
    background-color: white;
}

.quick-links a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.quick-links a i {
    margin-right: 8px;
}


/* ===== 문의 목록 스타일 ===== */

.inquiries-list {
    padding: 10px 20px;
    background-color: #f5f7fb;
}

.inquiry-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.inquiry-item:active {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.03);
}

.hot-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--danger-color);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.inquiry-header {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 12px;
    gap: 8px;
}

.building-type,
.location,
.budget {
    display: inline-block;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.building-type {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.location {
    background-color: #e0f7fa;
    color: #006064;
}

.budget {
    background-color: #fff3e0;
    color: #e65100;
}

.inquiry-content {
    font-size: 15px;
    margin-bottom: 16px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.inquiry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray-color);
}

.inquiry-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.participant-count,
.time-remaining {
    display: flex;
    align-items: center;
}

.participant-count i,
.time-remaining i {
    margin-right: 6px;
    font-size: 14px;
}

.time-remaining.urgent {
    color: var(--danger-color);
}

.btn-participate {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-participate:hover,
.btn-participate:active {
    opacity: 0.9;
}

.participated-badge {
    background-color: var(--success-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}


/* 빈 상태 */

.empty-state {
    padding: 60px 20px;
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    margin: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.empty-state img {
    width: 120px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.empty-state p {
    font-size: 15px;
    color: var(--gray-color);
    margin-bottom: 20px;
}


/* ===== 내 문의 목록 스타일 ===== */

.page-header {
    text-align: center;
    padding: 25px 20px;
    background-color: white;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.status-badge.active {
    background-color: var(--primary-color);
}

.status-badge.expired {
    background-color: var(--gray-color);
}

.status-badge.completed {
    background-color: var(--success-color);
}

.status-badge.canceled {
    background-color: var(--danger-color);
}

.date {
    color: var(--gray-color);
    font-size: 14px;
}

.inquiry-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    font-size: 15px;
}

.info-item {
    display: flex;
}

.info-item .label {
    font-weight: 500;
    margin-right: 10px;
    color: var(--gray-color);
}

.inquiry-description {
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.actions {
    display: flex;
    gap: 10px;
}


/* ===== 문의 결과 페이지 스타일 ===== */

.result-header {
    text-align: center;
    padding: 55px 0px 20px;
    background-color: white;
}

.result-header h1 {
    display: none;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.result-header p {
    color: #333;
    font-size: 28px;
    text-align: start;
    font-weight: 900;
    line-height: 1.4;
}

.status-banner {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: inline-block;
    margin-bottom: 15px;
}

.status-banner.canceled {
    background-color: var(--danger-color);
}

.status-banner.completed {
    background-color: var(--success-color);
}

.status-banner.expired {
    background-color: var(--gray-color);
}

.inquiry-details {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.details-item {
    display: flex;
    flex-direction: column;
}

.details-item .label {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.details-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.inquiry-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.content-text {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.inquiry-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-item {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 0 20px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.stat-item {
    font-size: 16px;
    font-weight: 600;
    color: #949494;
}

.stat-item span {
    display: inline-block;
}

.stat-value {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 18px;
}

.stat-item .stat-point {
    color: #000;
    font-weight: 800;
}

.time-info {
    padding: 15px 0 0;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
}

.remaining-label {
    display: block;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.remaining-time {
    color: var(--danger-color);
}

.selected-vendor {
    background: white;
    margin: 25px 0;
    /* box-shadow: var(--card-shadow); */
}

.selected-vendor h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.vendor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 12px;
}

.vendor-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.vendor-info p {
    color: var(--gray-color);
    font-size: 14px;
    margin: 0;
}

.review-section .btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.review-status {}

.review-status p {
    margin-bottom: 10px;
}

.review-content {
    margin-top: 10px;
}

.review-status-text {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 14px;
}

.rating {
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
}

.rating .fa-star {
    color: #ffc107;
}

.rating .fa-star.active {
    color: #ffc107;
}

.participants-list {
    margin: 20px 0px;
}

.participants-list h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}


/* 견적 상세 보기 스타일 */

.participant-item-wrapper {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    border: 1px solid #ebebeb;
}

.participant-item-wrapper .participant-item {
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.quote-actions {
    background: #f8f9fa;
    padding: 10px 20px;
    border-top: 1px solid #e9ecef;
}

.btn-view-quote {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-view-quote:hover {
    background: #3367d6;
}

.btn-view-quote.active {
    background: #dc3545;
}

.btn-view-quote.active i {
    transform: rotate(180deg);
}

.quote-details-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

.quote-content-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.quote-content-box h4 {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quote-content-box h4 i {
    color: var(--primary-color);
}

.quote-text {
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.quote-text .no-content {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

.quote-attachment-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.quote-attachment-box h4 {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quote-attachment-box h4 i {
    color: var(--primary-color);
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.file-icon {
    margin-right: 10px;
    font-size: 20px;
    color: var(--primary-color);
}

.file-info {
    flex: 1;
}

.file-name {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.file-size {
    font-size: 12px;
    color: #6c757d;
}

.btn-download {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: #3367d6;
    color: white;
}

.quote-meta {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.quote-date {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 1px solid #ddd;
}

.participant-image {
    width: 75px;
    height: 75px;
    margin-right: 15px;
    flex-shrink: 0;
}

.participant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.participant-info {
    flex: 1;
}

.participant-info .location {
    color: var(--gray-color);
    font-size: 13px;
    margin-bottom: 1px;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.participant-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 3px;
}

.btn-select {
    background: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
}

.empty-list {
    padding: 30px;
    text-align: center;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    color: var(--gray-color);
    border: 1px solid var(--border-color);
}

.view-stats {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 20px 20px;
}

.view-stats i {
    margin-right: 10px;
    font-size: 18px;
}

.inquiry-toggle-container {
    overflow: hidden;
}

#inquiryDetailsContainer {
    display: none;
}

.toggle-header {
    display: flex;
    align-items: center;
    padding: 15px 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 5px;
}

.toggle-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.toggle-text {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}


/* 기존 아이콘 관련 CSS 삭제 또는 대체 */

.toggle-icon {
    display: none;
}

@media (max-width: 480px) {
    .quote-details-section {
        padding: 15px;
    }
    .quote-content-box,
    .quote-attachment-box {
        padding: 12px;
    }
    .attachment-item {
        padding: 8px;
    }
    .file-name {
        font-size: 13px;
    }
}


/* ===== 실시간 견적 문의 페이지 ===== */

.inquiry-header {
    text-align: center;
    background-color: white;
}

.inquiry-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.inquiry-header p {
    color: var(--gray-color);
    font-size: 16px;
}


/* 단계별 폼 컨테이너 */

.form-step {
    background: white;
    margin: 20px;
}

.form-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}


/* 카테고리/건물 유형/예산 그리드 스타일 */

.category-grid,
.building-type-grid,
.budget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 400px) {
    .category-grid,
    .building-type-grid,
    .budget-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 선택 박스 디자인 */

.category-box,
.building-type-box,
.budget-box {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.category-item input,
.building-type-item input,
.budget-item input {
    display: none;
}

.category-item input:checked+.category-box,
.building-type-item input:checked+.building-type-box,
.budget-item input:checked+.budget-box {
    border-color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}


/* 네비게이션 버튼 */

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0 20px;
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 100;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    width: 48%;
    text-align: center;
}

.btn-prev {
    background: var(--light-bg);
    color: var(--dark-color);
}

.btn-next,
.btn-submit {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    opacity: 0.9;
}

.btn-prev:hover {
    background: #e9ecef;
}


/* 로딩 상태 */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* 지역 선택 영역 */

.location-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 400px) {
    .location-selection {
        grid-template-columns: 1fr 1fr;
    }
}

.location-selection .form-group {
    margin-bottom: 15px;
    padding: 0;
}

.location-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.location-selection select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}

.location-selection select:focus {
    border-color: var(--primary-color);
    outline: none;
}


/* 마지막 단계 - 문의 내용 및 이미지 */

.inquiry-details textarea {
    width: 100%;
    min-height: 150px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    margin-bottom: 20px;
    resize: vertical;
    outline: none;
}

.image-upload-section {
    margin-top: 20px;
}

.btn-add-image {
    background: var(--light-bg);
    border: 2px dashed var(--border-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-add-image:hover {
    background: #e9ecef;
}

.btn-add-image i {
    margin-right: 10px;
    font-size: 18px;
    color: var(--primary-color);
}


/* 이미지 미리보기 */

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/* 리뷰 작성 모달 */

.rating-select {
    display: flex;
    gap: 5px;
    margin-bottom: 0px;
}

.rating-select .star {
    font-size: 24px;
    cursor: pointer;
}

.rating-select .star i {
    color: #ffc107;
    transition: all 0.2s;
}

.rating-select .star:hover i,
.rating-select .star.active i {
    color: #ffc107;
}


/* 플로팅 액션 버튼 */

.floating-action-btn {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 90;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.floating-action-btn:active {
    transform: scale(0.95);
    background-color: var(--secondary-color);
}


/* 토스트 알림 */

.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(52, 58, 64, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* 스켈레톤 로딩 효과 */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-item {
    margin-bottom: 16px;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.skeleton-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.skeleton-tag {
    height: 24px;
    width: 80px;
    border-radius: 8px;
}

.skeleton-content {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-content:last-child {
    width: 70%;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.skeleton-stats {
    height: 16px;
    width: 120px;
}

.skeleton-button {
    height: 36px;
    width: 100px;
    border-radius: 10px;
}


/* Pull to refresh */

.pull-indicator {
    text-align: center;
    padding: 10px;
    color: var(--gray-color);
    display: none;
}

.pull-indicator.visible {
    display: block;
}


/* 추가 모바일 대응 */

@media (max-width: 480px) {
    .participant-item {
        padding: 15px;
    }
    .participant-image {
        margin-right: 10px;
    }
    .btn-select {
        position: absolute;
        margin-left: 0;
        margin-top: 0;
        right: 15px;
        font-size: 13px;
        padding: 6px 11px;
        border-radius: 6px;
    }
    .inquiry-info {
        grid-template-columns: 1fr;
    }
    .stats {
        margin-bottom: 15px;
        width: 100%;
    }
    .actions {
        width: 100%;
    }
    .actions .btn {
        flex: 1;
    }
    .vendor-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .review-section {
        margin-top: 15px;
        width: 100%;
    }
    .review-section .btn {
        width: 100%;
    }
    .inquiry-content h3 {
        font-size: 16px;
    }
    .details-item .value {
        font-size: 14px;
    }
}


/* 태블릿 및 데스크톱 대응 */

@media (min-width: 768px) {
    .inquiry-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    }
}


/* 프로필 이미지 효과 */

.participant-image {
    position: relative;
    overflow: hidden;
}

.participant-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    z-index: 1;
}


/* 새로운 문의 표시 애니메이션 */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

.inquiry-item.new {
    animation: pulse 2s infinite;
}


/* 취소 버튼 효과 */

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}


/* 상태 배지 효과 */

.status-badge {
    position: relative;
    overflow: hidden;
}

.status-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}


/* 접속 상태 표시 */

.online-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4caf50;
    margin-right: 5px;
    position: relative;
}

.online-status::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.5);
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}


/* 견적 참여 완료 효과 */

.participated-badge {
    position: relative;
    padding-left: 25px;
}

.participated-badge::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}


/* 모달 트랜지션 개선 */

.modal {
    transition: background-color 0.3s;
}

.modal-content {
    transition: transform 0.3s, opacity 0.3s;
}


/* 실시간 채팅 표시 */

.chat-notification {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s, opacity 0.3s;
}

.chat-notification.show {
    opacity: 1;
    transform: scale(1);
}
