/* 견적신청 레이어 스타일 */
.quote-layer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.quote-layer-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 헤더 */
.quote-layer-header {
    position: relative;
    padding: 24px 24px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.quote-layer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.quote-layer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quote-layer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 본문 */
.quote-layer-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

/* 폼 스타일 */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    margin: 0;
    min-width: 120px;
    flex-shrink: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
    flex: 1;
    height: 48px; /* 모든 입력 필드의 높이를 통일 */
    box-sizing: border-box;
}

/* select 요소에 대한 추가 스타일 */
.form-control select,
select.form-control {
    height: 48px;
    line-height: 24px;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:read-only {
    background: #f8f9fa;
    color: #6c757d;
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* 전화번호 입력 그룹 */
.phone-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex: 1;
}

.phone-input-group .form-control {
    flex: 1;
}

.phone-input-group .btn {
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* 인증번호 입력 그룹 */
.verification-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex: 1;
}

.verification-input-group .form-control {
    flex: 1;
}

.verification-input-group .btn {
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* 캡차 그룹 */
.captcha-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.captcha-image {
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    background: #f8f9fa;
}

.captcha-group .btn {
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.captcha-group .form-control {
    flex: 1;
    min-width: 100px;
}

/* 체크박스 */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px; /* 텍스트와 정렬을 위한 상단 여백 */
    flex-shrink: 0;
}

.form-check-label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privacy-text {
    flex: 1;
}

.privacy-info-icon {
    cursor: help;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.privacy-info-icon:hover {
    opacity: 1;
}

/* 커스텀 툴팁 */
.custom-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.3;
    max-width: 250px;
    word-wrap: break-word;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Magnific Popup에서 제외할 요소들 */
.no-mfp {
    /* Magnific Popup이 이 클래스를 가진 요소들을 처리하지 않도록 함 */
}

/* 푸터 */
.quote-layer-footer {
    padding: 20px 24px 24px;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.verification-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.85rem;
    justify-content: center;
}

.verification-notice i {
    color: #667eea;
}

.btn-submit {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 버튼 스타일 */
.btn {
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
    background: white;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
    background: white;
}

.btn-outline-success:hover {
    background: #28a745;
    color: white;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background: white;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .quote-layer-overlay {
        padding: 10px;
    }
    
    .quote-layer-container {
        max-height: 95vh;
    }
    
    .quote-layer-header,
    .quote-layer-body,
    .quote-layer-footer {
        padding: 20px;
    }
    
    .quote-layer-body {
        max-height: calc(95vh - 120px);
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .form-label {
        min-width: auto;
    }
    
    .phone-input-group,
    .verification-input-group {
        flex-direction: column;
    }
    
    .captcha-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-group .form-control {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .quote-layer-header,
    .quote-layer-body,
    .quote-layer-footer {
        padding: 16px;
    }
    
    .quote-layer-title {
        font-size: 1.3rem;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .btn-submit {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* 스크롤바 스타일 */
.quote-layer-body::-webkit-scrollbar {
    width: 6px;
}

.quote-layer-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.quote-layer-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.quote-layer-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}