/* 차량 구독 서비스 계산기 스타일 */
.location-field{width: 60%;}
.label-title, .delivery-area-hourly.form-group label{margin-top: 8px;}
.delivery-wrapper, delivery-area-wrapper{ width: 60%;}
.delivery-area-daily{display: flex; justify-content: space-between;}
.delivery-method-options, #delivery-type-area-daily{
    display: flex;
    justify-content:flex-start;
    gap: var(--space-m);
}
select{
    border-radius: 6px;
}
#delivery-type-area-hourly{
    display: flex;
    justify-content: flex-start;
    gap: var(--space-m);
}
.car-subscription-calculator {
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.car-subscription-option, .car-calc-sum {
    padding: var(--space-l) calc(var(--space-l) * 0.8);
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}
.calculator-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.car-calc-title-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}
.modal-content-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m);
}
.car-calc-title {
    font-size: var(--h4);
    font-weight: 700;
    color: #333;
	margin-right: 6px;
}
.car-tag > a{
    padding: 6px 12px;
    border-radius: 40px;
    font-size: var(--text-s);
    font-weight: 500;
    color: #fff;
}
.car-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-calc-label {
    color: #666;
    font-size: var(--text-m);
    font-weight: 500;
}

.car-calc-value {
    text-align: right;
    font-weight: 500;
}

.car-calc-options {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.car-calc-option {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}

.car-calc-option.active {
    background-color: #1a237e;
    color: #fff;
    border-color: #1a237e;
}

.car-calc-radio {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-start;
}

.car-calc-radio label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.car-calc-radio input[type="radio"] {
    display: none;
}

.car-calc-radio-circle {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.car-calc-radio input[type="radio"]:checked + .car-calc-radio-circle {
    border-color: #182A88;
}

.car-calc-radio input[type="radio"]:checked + .car-calc-radio-circle:after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #182A88;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.car-calc-sum {
    background-color: #f5f7fa;
    border-radius: 0 0 12px 12px;
}

.car-calc-sum-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.car-calc-price {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    text-align: right;
    flex: 1;
    line-height: normal;
}

.car-calc-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.car-calc-favorite {
    width: 60px;
    height: 48px;
    border: 1px solid #e0e0e0;
    background-color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.car-calc-favorite:hover {
    background-color: #f9f9f9;
}

.car-calc-favorite.active .heart-icon {
    color: #ff4b4b;
}

.heart-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>') no-repeat center center;
    transition: all 0.2s ease;
}

.car-calc-favorite.active .heart-icon {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>') no-repeat center center;
}

.car-calc-request {
    text-align: center;
    flex: 1;
    padding: 20px 0;
    background-color: white;
    color: var(--secondary);
    border: 1px solid #182A88;
    border-radius: 12px;
    font-size: var(--h5);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.car-calc-request:hover {
    background-color: rgba(24, 42, 136, 0.06);
}
.car-calc-call {
    background-color: #182a88;
    color: white;
}
.car-calc-call:hover {
    background-color: #0f1a5c;
}

.calc-button-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.car-calc-call:hover {
    background-color: #0f1a5c;
}

/* 견적 문의 모달 스타일 */
.car-calc-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.car-calc-modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 85vh;
    overflow-y: auto;
    z-index: 100000;
}

.car-calc-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100001;
}

.car-calc-modal h3.quote-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.quote-summary {
    margin-bottom: 24px;
}

.quote-summary h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    border-left: 4px solid #182A88;
    padding-left: 10px;
}

.quote-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    table-layout: fixed;
}


.quote-info-table th, 
.quote-info-table td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.quote-info-table th {
    background-color: #f8f9fa;
    width: 30%;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.quote-info-table td {
    font-size: 14px;
    color: #333;
}

.option-info {
    line-height: 1.5;
}

.form-title {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    border-left: 4px solid #182A88;
    padding-left: 10px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.form-row .required {
    color: #e53935;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-row input[type="text"]:focus,
.form-row input[type="tel"]:focus,
.form-row input[type="email"]:focus,
.form-row textarea:focus {
    border-color: #182A88;
    outline: none;
}

.quote-submit {
    width: 100%;
    padding: 14px;
    background-color: #182A88;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.quote-submit:hover {
    background-color: #0f1a5c;
}

#monthly-fee, #deposit-fee, #delivery-fee-long {
    font-weight: 700;
    font-size: var(--text-l);
    margin-right: 2px;
    color: #182A88;
}

/*단기렌트용 css */

.daily-car-calculator {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 탭 관련 스타일 */
.calculator-tabs {
    display: flex;
    gap: 0;
    background: rgba(241, 242, 248, 1);
}

.tab-button {
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: var(--h5);
    color: #888888;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.tab-button.active {
    background: #fff;
    color: #182A88;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.car-tag .sale-tag {
    background: #ff4444;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    display: inline-block;
}

.rent-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: var(--space-l) calc(var(--space-l)*0.8);
}

.rent-fee {
    background: rgba(24, 42, 136, 0.03);
    padding: var(--space-l) calc(var(--space-l)*0.8);
}
.form-group{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}
.daily-options{
    flex-direction: column;
    align-items: flex-start;
}
.delivery-area-long, .delivery-area-hourly{
    align-items: flex-start;
}
.daily-options label{
    margin-bottom: 12px;}
    
#delivery-type-area-long, #delivery-type-area-long{display: flex;}

#delivery-type-area-long label, #delivery-type-area-long label {margin-right: 20px;}


.form-group label {
    display: block;
    font-size: var(--h6);
    font-weight: 600;
    color: #666;
    margin-bottom: 0;
}
.daily-options label{
    margin-bottom: 12px;
}
.form-group input[type="date"]{
    width: 50%;
    border-radius: 6px;
    font-size: 14px;
    color: #aaa;
    border: 1px solid #e0e0e0;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.date-inputs input[type="date"] {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.date-inputs span {
    color: #666;
}

.insurance-options {
    display: flex;
    gap: 24px;
}

.insurance-options label {
    display: block;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.insurance-options input[type="radio"] {
    margin: 0;
}

select#rental-hours {
    width: 50%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

.total-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-amount strong {
    font-size: 15px;
    color: #333;
}

.total-amount span {
    font-size: var(--h3);
    font-weight: 600;
    color: #111;
}

.total-amount span::after {
    content: '원';
    font-size: 15px;
    margin-left: 2px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.action-buttons button {
    flex: 1;
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-size: var(--h5);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.inquiry-btn {
    background: #fff;
    border: 1px solid #1a237e !important;
    color: #1a237e;
}

.call-btn {
    background: #1a237e;
    color: #fff;
}

.calc-button-icon {
    width: 18px;
    height: 18px;
}

/* 추가 옵션 정보 스타일 */
.car-other-options {
    font-size: var(--h5);
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.car-other-options ul {
    list-style: none;
    padding-left: 0;
    margin: 5px 0;
}

.car-other-options li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.car-other-options li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #182A88;
}

/* 단기렌트 모달 스타일 추가 */
#daily-quote-modal {
    z-index: 99999;
}

#daily-quote-modal .car-calc-modal-content {
    z-index: 100000;
}

/* 추가: 갤러리 슬라이더와 관련 요소들을 모달보다 낮은 z-index로 설정 */
.car-gallery-slider {
    position: relative;
    z-index: 1;
}

.gallery-nav {
    position: absolute;
    z-index: 3;
}

.gallery-main-image {
    position: relative;
    z-index: 1;
}

.slick-slider {
    position: relative;
    z-index: 1;
}

/* 모달이 열릴 때 body 스크롤 방지 */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .car-calc-modal h3.quote-title{
        text-align: left;
    }
    .rent-fee, .rent-form{
        padding: var(--space-m) calc(var(--space-m)*0.8);
    }
    .car-calc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .car-calc-label {
        width: 100%;
    }
    
    .car-calc-value,
    .car-calc-options,
    .car-calc-radio {
        width: 100%;
        justify-content: flex-start;
    }
    
    
    .car-subscription-option .car-calc-row .car-calc-label, .car-subscription-option .car-calc-row .car-calc-options{
        width: 50%;
    }
    
    .car-subscription-option .car-calc-row .car-calc-options .contract-month-select{
        width: 100%;
    }
    
    .car-calc-price {
        font-size: var(--h5);
    }
    
    .modal-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .calculator-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 12px 0;
        flex: none;
        width: 50%;
    }
    
    .date-inputs {
        flex-direction: column;
    }
    
    .date-inputs input[type="date"] {
        width: 100%;
    }
    
    .form-group.insurance-options {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .daily-car-calculator {
        width: 100vw;
    }
    .date-inputs{
        flex-direction: row;
        
    }
}

/* 모바일 계산기 토글 버튼 */
.calculator-toggle-btn {
    display: none; /* 기본적으로 숨김, 모바일에서만 표시 */
    position: static;
    background-color: #182A88;
    color: white;
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 0 15px;
    font-size: 14px;
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s ease;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    width: 60px;
    height: 28px;
    margin: 0 auto;
}

.calculator-toggle-btn::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(135deg); /* 위쪽 화살표 */
    margin: 0 auto;
}

.calculator-toggle-btn.active::before {
    transform: rotate(-45deg); /* 아래쪽 화살표 */
}

/* 계산기 컨테이너 모바일 설정 */
.calculator-container {
    position: relative;
}

/* 모바일 계산기 숨김/표시 애니메이션 */
@keyframes slideUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

@keyframes slideDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

/* 미디어 쿼리 - 모바일 스타일 추가 */
@media (max-width: 768px) {
    .calculator-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        z-index: 997;
        transition: transform 0.3s ease;
    }
    .car-subscription-option .car-calc-row{
        flex-direction: row;
        align-items: center;
    }
    .calculator-container.hidden {
        transform: translateY(100%);
        bottom: 28px;
    }
    
    .calculator-toggle-btn {
        display: block;
    }
    
    .daily-car-calculator {
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .car-subscription-calculator {
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    /* 기존 모바일 스타일 유지 */
    .rent-fee, .rent-form{
        padding: 15px;
    }
}

.contract-month-select {
    width: 50%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
    cursor: pointer;
}

.contract-month-select:focus {
    outline: none;
    border-color: #1a237e;
}


/* 모바일 대응 */
@media (max-width: 767px) {
    .contract-month-select {
        font-size: 16px;
    }
}
.insurance-options-wrapper{
    align-items: center;}
/* 라디오 버튼 스타일링 */
.delivery-method-options,
.insurance-options {
    display: flex;
    gap: 10px;
    width: 60%;
}

.delivery-method-options label,
.insurance-options label {
    flex: 1;
    position: relative;
}

.delivery-method-options input[type="radio"],
.insurance-options input[type="radio"], .delivery-method-options input[type="radio"]{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-method-options label span,
.insurance-options label span {
    display: block;
    padding: 6px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-method-options input[type="radio"]:checked + span,
.insurance-options input[type="radio"]:checked + span {
    background-color: #1a237e;
    border-color: #1a237e;
    color: white;
}

.delivery-method-options label:hover span,
.insurance-options label:hover span {
    background-color: #e9ecef;
}

.delivery-method-options input[type="radio"]:checked + span:hover,
.insurance-options input[type="radio"]:checked + span:hover {
    background-color: #1a237e;
}