/* 전체 컨테이너 스타일 */
.telecom-inquiry-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 섹션 공통 스타일 */
.section {
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 정책 섹션 */
.policy-section {
    display: block;
}

.policy-section.hidden {
    display: none;
}

/* 상품 섹션 */
.product-section {
    display: none;
}

.product-section.active {
    display: block;
}

/* 상품 컨테이너 */
.product-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.5em;
}

/* 상품 그리드 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 상품 카드 */
.product-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.product-info {
    margin-bottom: 15px;
}

.selected-product, .selected-price {
    display: block;
    margin: 5px 0;
    color: #666;
}

.select-product-btn {
    width: 100%;
    padding: 10px;
    background: #db133d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.select-product-btn:hover {
    background: #db133d;
}

/* 가격 요약 */
.price-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-summary h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-weight: bold;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .policy-row {
        gap: 8px;
    }
    
    .policy-option {
        padding: 12px 15px;
        min-width: 100px;
    }
    
    .telecom-logo {
        width: 30px;
        height: 30px;
    }
    
    .policy-option span {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .policy-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .policy-option {
        width: 100%;
        max-width: 300px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 15px;
    }
    
    .telecom-logo {
        width: 25px;
        height: 25px;
        margin-bottom: 0;
        margin-right: 0px;
    }
}

/* 정책 선택 섹션 스타일 */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.policy-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.5em;
}

/* 정책 선택 버튼 스타일 */
.policy-options {
    margin: 20px 0;
}

.policy-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.policy-option {
    padding: 0;
    background-color: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.telecom-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    margin: 0;
}

.policy-option span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 0.9em;
    font-weight: 500;
}

.policy-option:hover {
    transform: translateY(-15px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
}

.policy-option.selected {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.policy-option.selected span {
    background: rgba(0, 123, 255, 0.8);
}

.policy-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* 상품 선택 버튼 스타일 */
.select-product-btn {
    padding: 10px 20px;
    background-color: #db133d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.select-product-btn:hover {
    background-color: #db133d;
}

/* 가격 요약 섹션 */
.price-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.price-summary h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.selected-items {
    margin-bottom: 15px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #dee2e6;
}

.total-price {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* 네비게이션 버튼 */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.navigation-buttons button {
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navigation-buttons button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#prevButton, #productPrevButton {
    background: #95a5a6;
    color: white;
}

#nextButton, #productNextButton {
    background: #db2313;
    color: white;
}

#prevButton:hover:not(:disabled),
#productPrevButton:hover:not(:disabled) {
    background: #7f8c8d;
}

#nextButton:hover:not(:disabled),
#productNextButton:hover:not(:disabled) {
    background: #db2313;
}

.product-label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 5px;
}

.product-label input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-name {
    font-weight: bold;
    font-size: 16px;
}

.product-price {
    color: #666;
    font-size: 14px;
}

.product-item {
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-item:hover {
    background-color: #f5f5f5;
}

.product-info {
    flex: 1;
    margin-right: 15px;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
}

.inquiry-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.select-btn, .cancel-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.select-btn {
    background-color: #db133d;
    color: white;
}

.select-btn:hover {
    background-color: #db133d;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

.selected-telecom {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.selected-telecom-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.selected-telecom-name {
    font-weight: 500;
    color: #db2313;
}

.policy-section .navigation-buttons #prevButton {
    display: none;
}

.product-section .navigation-buttons #prevButton {
    display: inline-block;
}

/* 통신사 선택 섹션 */
.telecom-section {
    display: block;
}

.telecom-container {
    max-width: 1200px;
    margin: 0 auto;
}

.telecom-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #333;
}

.telecom-options {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0 20px;
}

.telecom-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.telecom-option {
    width: 160px;
    height: 310px;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    padding: 0;
    background: white;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.telecom-option:hover {
    border-color: #db133d;
    transform: translateY(-15px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.telecom-option.selected {
    border-color: #db133d;
    background-color: rgba(219, 19, 61, 0.1);
    box-shadow: 0 4px 8px rgba(219, 19, 61, 0.2);
}

.telecom-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .telecom-option {
        width: 130px;
        height: 195px;
    }
    
    .telecom-row {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .telecom-option {
        width: 120px;
        height: 180px;
    }
    
    .telecom-row {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .telecom-options {
        flex-wrap: wrap;
    }
    
    .telecom-row {
        flex-wrap: wrap;
    }
    
    .telecom-option {
        width: 110px;
        height: 165px;
    }
}

/* 선택한 통신사 표시 */
.selected-telecom-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.selected-telecom-info span {
    font-weight: bold;
    color: #db133d;
}

/* 선택한 상품 정보 표시 */
.selected-products-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.selected-products-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.selected-product-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.selected-product-item:last-child {
    border-bottom: none;
}

.selected-product-name {
    font-weight: bold;
}

.selected-product-quantity {
    color: #666;
}

/* 상품 유형 선택 섹션 */
.product-type-section {
    display: none;
}

.product-type-container {
    max-width: 800px;
    margin: 0 auto;
}

.product-type-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #333;
}

.product-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product-type-option {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.product-type-option:hover {
    border-color: #db133d;
    transform: translateY(-5px);
}

.product-type-option.selected {
    border-color: #db133d;
    background-color: rgba(219, 19, 61, 0.1);
}

.product-type-name {
    font-size: 1.2em;
    color: #333;
}

/* 추가 상품 선택 섹션 */
.additional-products-section {
    display: none;
}

.additional-products-container {
    max-width: 800px;
    margin: 0 auto;
}

.additional-products-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #333;
}

.additional-products-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.additional-product-option {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.additional-product-option:hover {
    border-color: #db133d;
    transform: translateY(-5px);
}

.additional-product-option.selected {
    border-color: #db133d;
    background-color: rgba(219, 19, 61, 0.1);
}

.additional-product-name {
    font-size: 1.2em;
    color: #333;
}

/* 업종 선택 섹션 */
.business-type-section {
    display: none;
}

.business-type-container {
    max-width: 800px;
    margin: 0 auto;
}

.business-type-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #333;
}

.business-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.business-type-option {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.business-type-option:hover {
    border-color: #db133d;
    transform: translateY(-5px);
}

.business-type-option.selected {
    border-color: #db133d;
    background-color: rgba(219, 19, 61, 0.1);
}

.business-type-name {
    font-size: 1.2em;
    color: #333;
}

/* 호텔/모텔 실 수 선택 섹션 */
.room-count-section {
    display: none;
}

.room-count-container {
    max-width: 800px;
    margin: 0 auto;
}

.room-count-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #333;
}

.room-count-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.room-count-option {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.room-count-option:hover {
    border-color: #db133d;
    transform: translateY(-5px);
}

.room-count-option.selected {
    border-color: #db133d;
    background-color: rgba(219, 19, 61, 0.1);
}

.room-count-name {
    font-size: 1.2em;
    color: #333;
}

/* 수량 선택 모달 */
.quantity-container {
    text-align: center;
    padding: 20px;
}

.quantity-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #db133d;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #b80f33;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.2em;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* 네비게이션 버튼 */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0 20px;
}

.prev-button, .next-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.prev-button {
    background-color: #f0f0f0;
    color: #333;
}

.prev-button:hover {
    background-color: #e0e0e0;
}

.next-button {
    background-color: #db133d;
    color: white;
}

.next-button:hover {
    background-color: #b80f33;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group input:focus {
    border-color: #db133d;
    outline: none;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.select-btn, .cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.select-btn {
    background-color: #db133d;
    color: white;
}

.select-btn:hover {
    background-color: #b80f33;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #333;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .telecom-option {
        width: 150px;
        height: 100px;
    }
    
    .telecom-row {
        gap: 15px;
    }

    .product-type-options,
    .additional-products-options,
    .business-type-options {
        grid-template-columns: 1fr;
    }

    .room-count-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .telecom-option {
        width: 130px;
        height: 87px;
    }
    
    .telecom-row {
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

/* 로딩 화면 스타일 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #db133d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #e0e0e0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 