/* 카플러스 상담신청 폼 스타일 */
.carplus-consultation-form {
    max-width: 1500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* PC에서만 scale 적용 */
@media (min-width: 769px) {
    .carplus-consultation-form {
        transform: scale(0.9);
        position: relative;
        left: -20px;
    }
}

.carplus-form-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.carplus-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.carplus-form-group {
    position: relative;
}

.carplus-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.carplus-form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.carplus-form-input:focus {
    outline: none;
    border-color: #D51617;
    box-shadow: 0 0 0 3px rgba(213, 22, 23, 0.1);
}

.carplus-form-group-address {
    grid-column: 1 / -1;
}

.carplus-address-search-btn {
    background: #D51617;
    color: white;
    border: none;
    padding: 0 .75em;
    height: 2.507em;
    font-size: .97em;
    margin: 0px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.carplus-address-search-btn:hover {
    background: #b01315;
}

.carplus-address-search-btn i {
    margin-right: 5px;
}

.carplus-form-input.has-search-btn {

}

.carplus-privacy-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.carplus-privacy-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
}

.carplus-privacy-link {
    color: #D51617;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    margin-left: 5px;
}
#carplus_privacy_agree{
    margin:0px!important;
}
.carplus-checkbox-label{
    margin:0px!important;
}
.carplus-privacy-link:hover {
    text-decoration: underline;
}

.carplus-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    /* 모바일 터치 최적화 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(213, 22, 23, 0.2);
    user-select: none;
    -webkit-user-select: none;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.carplus-checkbox-container:hover {
    background: #f8f8f8;
}

.carplus-checkbox-container:active {
    background: #f0f0f0;
}
#carplusConsultationForm{
    margin-bottom: 0px!important;
}
.carplus-submit-btn {
    width: 100%;
    background: #D51617;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    /* 모바일 터치 최적화 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.carplus-submit-btn:hover {
    background: #b01315;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(213, 22, 23, 0.3);
}

.carplus-submit-btn:active {
    transform: translateY(0);
}

/* 개인정보처리방침 모달 */
.carplus-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.fa-check-square:before, .fa-square-check:before{
    display: none;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carplus-modal-content {
    background-color: #ffffff;
    margin: 50px auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.carplus-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carplus-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}
.carplus-privacy-section{
    display: flex;
    justify-content: space-between;
}

.carplus-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.carplus-modal-close:hover {
    color: #D51617;
}

.carplus-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.carplus-modal-body h3 {
    color: #D51617;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.carplus-modal-body p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .carplus-form-row {
        grid-template-columns: 1fr;
    }
    
    .carplus-form-container {
        padding: 20px;
    }
    
    .carplus-consultation-form {
        padding: 20px 10px;
    }
    
    .carplus-modal-content {
        margin: 20px auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .carplus-modal-body {
        padding: 20px;
    }
}

/* 로딩 상태 */
.carplus-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.carplus-submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* 실시간 상담리스트 V2 스타일 - 심플 디자인 */
.carplus-recent-consultations-v2 {
    background: #ffffff;
    border: 1px solid #ddd;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    overflow: hidden;
}

.carplus-recent-header-v2 {
    text-align: right;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.carplus-recent-header-v2 span {
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.carplus-recent-wrapper-v2 {
    overflow: hidden;
    position: relative;
}

.carplus-recent-list-v2 {
    display: flex;
    flex-direction: column;
}

.carplus-recent-item-v2 {
    display: grid;
    grid-template-columns: 150px 199px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 3px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: white;
    transition: all 0.5s ease;
}

.carplus-recent-item-v2:last-child {
    border-bottom: none;
}

.carplus-recent-item-v2.slide-out-v2 {
    animation: slideOutV2 0.5s ease forwards;
}

@keyframes slideOutV2 {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 40px;
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom-width: 0;
    }
}

.carplus-recent-item-v2.slide-in-v2 {
    animation: slideInV2 0.5s ease;
}

@keyframes slideInV2 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carplus-status-btn {
    background: #d51617;
    color: white;
    padding: 0px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 0px;
    text-align: center;
    display: inline-block;
}

.carplus-car-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.carplus-consult-text {
    font-size: 12px;
    color: #666;
}

.carplus-location-text {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* 반응형 */
@media (max-width: 768px) {
    .carplus-recent-consultations-v2 {
        overflow-x: auto;
    }
    
    .carplus-recent-item-v2 {
        grid-template-columns: 80px 130px 1fr auto;
        gap: 8px;
        padding: 3px 10px;
        min-width: 600px;
    }
    
    .carplus-status-btn {
        font-size: 11px;
        padding: 0px 8px;
    }
    
    .carplus-car-name {
        font-size: 12px;
    }
    
    .carplus-consult-text {
        font-size: 11px;
    }
    
    .carplus-location-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .carplus-recent-item-v2 {
        grid-template-columns: 70px 110px 1fr 80px;
        gap: 5px;
        padding: 3px 8px;
        min-width: 500px;
    }
    
    .carplus-status-btn {
        font-size: 10px;
        padding: 0px 6px;
    }
    
    .carplus-car-name {
        font-size: 11px;
    }
    
    .carplus-consult-text {
        font-size: 10px;
    }
    
    .carplus-location-text {
        font-size: 10px;
    }
}
