/**
 * 통영 한산 우체국 구매대행 신청 폼 스타일
 */

.shipbaesong-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.shipbaesong-header {
    text-align: center;
    margin-bottom: 30px;
}

.shipbaesong-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.shipbaesong-intro {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.shipbaesong-intro h2 {
    font-size: 24px;
    color: #007bff;
    margin-top: 0;
}

.shipbaesong-tagline {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.shipbaesong-intro ul {
    margin: 15px 0;
    padding-left: 20px;
}

.shipbaesong-intro li {
    margin: 8px 0;
    color: #555;
}

.shipbaesong-notice {
    margin-top: 20px;
    font-weight: 500;
    color: #333;
}

.shipbaesong-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

.shipbaesong-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shipbaesong-form-section {
    margin-bottom: 30px;
}

.shipbaesong-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

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

.shipbaesong-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.shipbaesong-label .required {
    color: #dc3545;
    margin-left: 3px;
}

.shipbaesong-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.shipbaesong-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.shipbaesong-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.shipbaesong-form-col {
    flex: 1;
    min-width: 150px;
}

.shipbaesong-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.shipbaesong-checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.shipbaesong-submit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    float: right;
}

.shipbaesong-submit-btn:hover {
    background: #0056b3;
}

.shipbaesong-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.shipbaesong-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.shipbaesong-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.shipbaesong-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 사용자 대시보드 스타일 */
.shipbaesong-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.shipbaesong-dashboard-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.shipbaesong-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shipbaesong-table th,
.shipbaesong-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.shipbaesong-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.shipbaesong-table tr:hover {
    background: #f8f9fa;
}

.shipbaesong-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.shipbaesong-status-pending {
    background: #fff3cd;
    color: #856404;
}

.shipbaesong-status-processing {
    background: #cfe2ff;
    color: #084298;
}

.shipbaesong-status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.shipbaesong-status-cancelled {
    background: #f8d7da;
    color: #842029;
}

.shipbaesong-view-detail-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.shipbaesong-view-detail-btn:hover {
    background: #0056b3;
}

.shipbaesong-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.shipbaesong-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.shipbaesong-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.shipbaesong-modal-close:hover,
.shipbaesong-modal-close:focus {
    color: #000;
}

.shipbaesong-detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shipbaesong-detail-section:last-child {
    border-bottom: none;
}

.shipbaesong-detail-section h4 {
    font-size: 18px;
    color: #007bff;
    margin-bottom: 15px;
}

.shipbaesong-detail-section p {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}

.shipbaesong-detail-section strong {
    color: #333;
    min-width: 120px;
    display: inline-block;
}

/* 물품 필드 스타일 */
.product-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.product-item-header h4 {
    margin: 0;
    color: #007bff;
    font-size: 16px;
}

.remove-product-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.remove-product-btn:hover {
    background: #c82333;
}

.shipbaesong-add-product-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.shipbaesong-add-product-btn:hover {
    background: #218838;
}

/* 총액 요약 스타일 */
.shipbaesong-total-summary {
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.shipbaesong-total-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipbaesong-total-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.shipbaesong-total-value {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

/* 보험 신청 옵션 스타일 */
.shipbaesong-insurance-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.shipbaesong-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    min-width: 200px;
}

.shipbaesong-radio {
    display: none;
}

.shipbaesong-radio-box {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s;
    text-align: center;
}

.shipbaesong-radio:checked + .shipbaesong-radio-box {
    background: #007bff;
    color: #fff;
    border-color: #0056b3;
}

.shipbaesong-radio-text {
    font-size: 15px;
    font-weight: 500;
}

.shipbaesong-radio-label:hover .shipbaesong-radio-box {
    border-color: #0056b3;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

/* 약관 박스 스타일 */
.shipbaesong-terms-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.shipbaesong-terms-content {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.shipbaesong-terms-content p {
    margin: 10px 0;
}

.shipbaesong-terms-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.shipbaesong-terms-content li {
    margin: 5px 0;
}

.shipbaesong-terms-content strong {
    color: #333;
    font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .shipbaesong-form-container {
        padding: 15px;
    }
    
    .shipbaesong-title {
        font-size: 24px;
    }
    
    .shipbaesong-form-row {
        flex-direction: column;
    }
    
    .shipbaesong-form-col {
        width: 100%;
    }
    
    .shipbaesong-submit-btn {
        width: 100%;
        float: none;
    }
    
    .shipbaesong-table {
        font-size: 14px;
    }
    
    .shipbaesong-table th,
    .shipbaesong-table td {
        padding: 8px;
    }
}

