/* 결제 페이지 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 */
.header {
    background: linear-gradient(to top, #0188fb, #011c61);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.header .logo-img{
    width: 80px;
    margin-bottom: 2px;
}
.header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* 메인 컨텐츠 */
.main-content {
    background: white;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 섹션 */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/* 상품 목록 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-item:hover {
    border-color: #2563eb;
    background-color: #f0f7ff;
}

.product-item.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.product-item input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.85rem;
    color: #6b7280;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563eb;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group .hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

/* 총 결제금액 */
.total-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

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

.total-label {
    font-size: 1rem;
    color: #4b5563;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

/* 환불 안내 */
.refund-notice {
    color: #dc2626;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
}

/* 버튼 */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

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

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* 결과 페이지 */
.result-container {
    text-align: center;
    padding: 40px 20px;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.result-icon.success {
    color: #10b981;
}

.result-icon.fail {
    color: #ef4444;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-message {
    color: #6b7280;
    margin-bottom: 30px;
}

.result-details {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 30px;
}

.result-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.result-details .detail-row:last-child {
    border-bottom: none;
}

.result-details .detail-label {
    color: #6b7280;
}

.result-details .detail-value {
    font-weight: 600;
}

/* 로딩 스피너 */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 에러 메시지 */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.error-message.active {
    display: block;
}

/* 반응형 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 20px 15px;
    }

    .product-item {
        flex-wrap: wrap;
    }

    .product-price {
        width: 100%;
        text-align: right;
        margin-top: 8px;
    }
}
