/**
 * 명함 페이지 전용 인라인 스타일 분리
 * 시각적 스타일만 포함 - 계산 로직 절대 건드리지 않음
 *
 * @version 2.0
 * @date 2025-01-14
 */

/* =================================================================== */
/* Page-title - common-styles.css에서 공통 관리 */
/* =================================================================== */

/* =================================================================== */
/* Calculator-header 컴팩트화 */
/* =================================================================== */
.calculator-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 18px 20px;
    margin: -25px -25px 5px -25px;
    border-radius: 15px 15px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 10px rgba(23, 162, 184, 0.3);
    line-height: 1.2;
}

.calculator-header h3 {
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0;
    color: white;
    font-weight: 600;
}

.calculator-subtitle {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

/* =================================================================== */
/* 컴팩트 가격 표시 - 스티커 스타일 적용 */
/* =================================================================== */
.price-display {
    margin-bottom: 5px;
    padding: 8px 5px;
    border-radius: 8px;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1);
}

.price-display.calculated {
    background: linear-gradient(145deg, #d4edda 0%, #c3e6cb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
    border-color: #20c997;
}

.price-display .price-label {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 명함 페이지 전용 - 최고 우선순위로 flex 레이아웃 강제 */
#priceDisplay .price-details,
.price-display .price-details {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 8px;

    /* 한 줄 표시 강제 - 최고 우선순위 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    flex-direction: row;
}

/* 부가세 포함 금액을 견적 금액과 완전히 동일하게 - 명함 전용 */
#priceDisplay .price-details .vat-amount,
.price-display .price-details .vat-amount {
    color: #dc3545;
    font-size: 0.98rem;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: inherit;
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.price-display:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.15);
}

/* 가격 상세 표시 스타일 */
.price-breakdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 0.75rem;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
}

.price-item.final {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.price-item-label {
    color: #6c757d;
    font-size: 0.7rem;
}

.price-item-value {
    color: #495057;
    font-weight: 600;
    font-size: 0.75rem;
}

.price-item.final .price-item-value {
    color: #dc3545;
    font-weight: 700;
}

/* =================================================================== */
/* Form 요소 컴팩트화 (패딩 1/2 축소) */
/* =================================================================== */
.option-select {
    padding: 6px 15px;
}

/* =================================================================== */
/* 기타 요소들 컴팩트화 */
/* =================================================================== */
.calculator-section {
    padding: 0px 25px;
    min-height: 400px;
}

/* 명함 페이지 - 스티커와 동일한 인라인 폼 스타일 */
.options-grid {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
}

/* 명함 인라인 폼 행 스타일 */
.options-grid .inline-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    min-height: 32px;
}

.options-grid .inline-form-row:last-child {
    margin-bottom: 0;
}

/* 명함 라벨 스타일 - 우측 정렬 */
.options-grid .inline-label {
    width: 50px;
    text-align: right;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 0.85rem;
}

/* 명함 셀렉트박스 스타일 */
.options-grid .inline-select {
    flex: 0 0 180px;
    width: 180px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 0.8rem;
    background: white;
    margin-right: 10px;
    height: 32px;
    box-sizing: border-box;
}

/* form-grid-compact 클래스 추가 정의 */
.form-grid-compact {
    margin: 10px 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .calculator-section {
        padding: 0 15px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .price-breakdown {
        flex-direction: column;
        gap: 5px;
    }

    #priceDisplay .price-details {
        flex-direction: column;
        gap: 5px;
    }
}