/* css/payment.css */

.payment-container { 
    max-width: 600px; 
    margin: 50px auto; 
    padding: 40px; 
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

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

.form-group input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #e2e8f0; 
    border-radius: 6px; 
    font-size: 1rem; 
    transition: border-color 0.3s;
    background-color: #fff;
}

.form-group input:read-only {
    background-color: #f3f4f6;
    color: #64748b;
}

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

/* 상품 선택 영역 */
.product-selection { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin: 30px 0; 
}

.product-option { 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 20px; 
    cursor: pointer; 
    transition: all 0.2s; 
    background-color: white;
    position: relative;
}

.product-option:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

/* 선택된 상태 공통 */
.product-option.selected { 
    background-color: #f8fafc; 
}

/* 내부 텍스트 스타일 */
.product-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 5px; 
}

.p-name { font-weight: 800; font-size: 1.1rem; }
.p-price { font-weight: 700; font-size: 1rem; }
small { color: #64748b; font-size: 0.9rem; }


/* --- [중요] 상품별 컬러 강제 적용 --- */

/* BASIC - Green */
.tier-basic .p-name, .tier-basic .p-price { color: #059669 !important; }
.product-option.tier-basic.selected { 
    box-shadow: 0 0 0 2px #059669 inset !important; 
    background-color: #ecfdf5 !important; 
}

/* STANDARD - Blue */
.tier-standard .p-name, .tier-standard .p-price { color: #2563EB !important; }
.product-option.tier-standard.selected { 
    box-shadow: 0 0 0 2px #2563EB inset !important; 
    background-color: #eff6ff !important; 
}

/* PRO - Red */
.tier-pro .p-name, .tier-pro .p-price { color: #E11D48 !important; }
.product-option.tier-pro.selected { 
    box-shadow: 0 0 0 2px #E11D48 inset !important; 
    background-color: #fff1f2 !important; 
}

/* BLACK - Black */
.tier-black .p-name, .tier-black .p-price { color: #171717 !important; }
.product-option.tier-black { background-color: #fafafa; }
.product-option.tier-black.selected { 
    box-shadow: 0 0 0 2px #171717 inset !important; 
    background-color: #e5e5e5 !important; 
}


/* 결제 버튼 */
.btn-pay { 
    width: 100%; 
    padding: 18px; 
    background-color: #2563EB; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    cursor: pointer; 
    margin-top: 20px; 
    transition: background 0.3s;
}

.btn-pay:hover { 
    background-color: #1d4ed8; 
}

.btn-pay:disabled { 
    background-color: #94a3b8; 
    cursor: not-allowed; 
}