/* ========================================
   기본 초기화 및 공통 스타일
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family:'Pretendard', 'Malgun Gothic', sans-serif;
    color: #2c3e50;
    line-height: 1.6;
    word-break: keep-all;
}

/* ========================================
   컨테이너 공통 스타일
   ======================================== */
.reg-container {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
    background: #ffffff;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

.admin-container {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
    background: #ffffff;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 뱃지 디자인 */

/* 뱃지 혜택 스타일 */
.badge-benefits-container {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}

.benefits-title {
    font-size: 1.1rem;
    color: #1a237e;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.benefit-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.benefit-item.included {
    color: #2e7d32;
    /* 초록색 */
}

.benefit-item.excluded {
    color: #d32f2f;
    /* 빨간색 */
}

.benefit-icon {
    margin-right: 8px;
    font-weight: bold;
}


/* 혜택 박스 */
.benefit-box {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #333;
    border-radius: 12px;
}

/* 제목 */
.benefit-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #000000;
}

/* 리스트 */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 15px;
    font-weight: 500;
}

.benefit-list li:last-child {
    border-bottom: none;
}

/* 가능 */
.benefit-list li.included {
    color: #22c55e !important;
}

/* 불가능 */
.benefit-list li.excluded {
    color: #ef4444 !important;
    /* 빨강 */
}

/* ========================================
   등록 폼 헤더
   ======================================== */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.reg-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.form-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========================================
   폼 섹션
   ======================================== */
.form-section {
    margin-bottom: 35px;
    padding: 0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    letter-spacing: 0.3px;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

/* ========================================
   입력 필드 스타일
   ======================================== */
.input-ctrl {
    padding: 14px 16px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #fafbfc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c3e50;
}

.input-ctrl:focus {
    outline: none;
    border-color: #3498db;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.input-ctrl:hover {
    border-color: #b3b3b3;
}

.textarea-ctrl {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

 /* 추가 등록 폼 스타일 */
 .waas-header {
     text-align: center;
     margin-bottom: 30px;
     border-bottom: 3px solid #003366;
     padding-bottom: 25px;
 }

 .waas-logo-text {
     font-size: 1.2rem;
     font-weight: 300;
     color: #666;
     letter-spacing: 1px;
     margin-bottom: 15px;
 }

 .waas-title {
     font-size: 2.4rem;
     font-weight: 800;
     color: #003366;
     margin: 15px 0 10px;
     letter-spacing: -0.5px;
 }

 .waas-subtitle {
     font-size: 1rem;
     color: #888;
     font-weight: 400;
     letter-spacing: 0.5px;
 }

 .form-info-banner {
     background: linear-gradient(135deg, #e8f4f8 0%, #f0fafc 100%);
     border-left: 4px solid #003366;
     padding: 16px 20px;
     border-radius: 6px;
     margin-bottom: 30px;
     font-size: 0.9rem;
     color: #2c3e50;
 }

 .form-info-banner strong {
     color: #003366;
 }

 .error-message {
     background: #fee;
     border-left: 4px solid #e74c3c;
     padding: 15px 20px;
     border-radius: 6px;
     margin-bottom: 25px;
     color: #c0392b;
     font-weight: 500;
 }

 .section-separator {
     margin: 40px 0 30px;
     border-bottom: 1px solid #ecf0f1;
     padding-bottom: 0;
 }

 /* 성공 화면 WAAS 브랜드 */
 .success-header-waas {
     background: linear-gradient(135deg, #003366 0%, #004d99 100%);
     color: white;
     padding: 40px;
     border-radius: 12px;
     text-align: center;
     margin-bottom: 40px;
 }

 .success-header-waas .success-icon {
     background: rgba(255, 255, 255, 0.2);
     box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
     margin-bottom: 25px;
 }

 .success-header-waas .success-title {
     color: white;
     margin-bottom: 10px;
 }

 .success-header-waas .success-subtitle {
     color: rgba(255, 255, 255, 0.9);
     font-size: 1rem;
     font-weight: 400;
 }




.modal_wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal_content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal_close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal_title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal_text {
    line-height: 1.6;
    color: #444;
    font-size: 14px;
    white-space: pre-line;
}

.open_modal {
    text-decoration: underline;
    cursor: pointer;
    color: #2563eb;
    margin-left: 5px;
}


/* ========================================
   체크박스 스타일
   ======================================== */
.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex !important;
        align-items: center !important;
        cursor: pointer;
        font-size: 0.95rem;
        color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #3498db;
    border-radius: 4px;
}

.checkbox-label span {
    line-height: 1.5;
}

/* ========================================
   폼 액션 (버튼)
   ======================================== */
.form-actions {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
    text-align: center;
}

.btn-submit {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ========================================
   성공 화면 스타일
   ======================================== */
.success-container {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.success-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    color: #27ae60;
    margin-bottom: 10px;
}

.success-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.success-message {
    background: #f0fdf4;
    border-left: 4px solid #27ae60;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.8;
}

.success-message p {
    margin-bottom: 8px;
}

.success-message p:last-child {
    margin-bottom: 0;
}

/* ========================================
   결제 정보 섹션
   ======================================== */
.payment-info-section {
    margin: 40px 0;
}

.payment-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f39c12;
}

.payment-info-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fffef0 100%);
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.payment-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
    align-items: center;
}

.payment-item:last-child {
    margin-bottom: 0;
}

.payment-label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.payment-value {
    color: #2c3e50;
    font-size: 0.95rem;
    word-break: break-all;
}

.email-highlight {
    color: #0070ba;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: rgba(0, 112, 186, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
}

.price-highlight {
    color: #e74c3c;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Arial', sans-serif;
}

/* ========================================
   PayPal 버튼
   ======================================== */
.payment-action {
    text-align: center;
    margin: 30px 0;
}

.btn-paypal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, #0070ba, #003087);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3);
    min-width: 300px;
    cursor: pointer;
}

.btn-paypal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
}

.btn-paypal:active {
    transform: translateY(0);
}

.btn-paypal span {
    display: block;
    letter-spacing: 0.5px;
}

/* ========================================
   알림 및 안내
   ======================================== */
.success-notice {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.8;
}

.success-notice p {
    margin-bottom: 10px;
}

.success-notice p:last-child {
    margin-bottom: 0;
}

.success-notice strong {
    color: #003366;
}

/* ========================================
   뒤로가기 버튼
   ======================================== */
.back-action {
    text-align: center;
    margin-top: 30px;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
    cursor: pointer;
}

.btn-back:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* ========================================
   관리자 페이지 스타일 (기존)
   ======================================== */
.admin-header {
    margin-bottom: 25px;
    border-left: 6px solid #3498db;
    padding-left: 15px;
}

.admin-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 20px;
}

.admin-table th {
    background: linear-gradient(135deg, #f5f7fa, #ecf0f1);
    padding: 15px 12px;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
}

.admin-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #ecf0f1;
    text-align: center;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

/* ========================================
   상태 배지
   ======================================== */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.Pending {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #856404;
}

.status-badge.Completed {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

/* ========================================
   액션 버튼
   ======================================== */
.action-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-approve,
.btn-delete {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-approve {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.text-done {
    color: #27ae60;
    font-weight: bold;
    font-size: 0.85rem;
}

/* ========================================
   페이지네이션
   ======================================== */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pg-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pg-link:hover {
    background: #f1f5f9;
    border-color: #3498db;
    color: #3498db;
}

.pg-link.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.no-data {
    text-align: center !important;
    padding: 30px !important;
    color: #7f8c8d;
    font-style: italic;
}
.notice-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5eaf0;
}

.notice-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 20px;
}

.notice-list {
    /* padding-left: 20px; */
    margin: 0;
}


.notice-list li::before {
content: "•";
    color: #3498db;
    font-size: 1.2rem;
    margin-right: 10px;
}

.notice-list li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #616161;
    font-size: 0.95rem;
}

/* style 안에 추가 */

.policy-link {
    color: #003366;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.policy-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .65);
    z-index: 9999;
}

.policy-modal-box {
    width: 92%;
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    margin: 35px auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.policy-modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-modal-header h3 {
    margin: 0;
    color: #003366;
}

.modal-close {
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.policy-modal-body {
    padding: 28px;
    line-height: 1.8;
    color: #333;
}

.policy-modal-body h4 {
    color: #003366;
    margin: 18px 0 8px;
}

.policy-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-agree {
    border: none;
    background: #003366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
/* ========================================
   반응형 디자인 - 태블릿
   ======================================== */
@media (max-width: 768px) {

    .reg-container,
    .admin-container {
        padding: 25px 15px;
        margin: 15px auto;
    }

    .reg-title {
        font-size: 1.6rem;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .price-highlight {
        font-size: 1.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-submit,
    .btn-paypal {
        max-width: 100%;
        min-width: auto;
    }

    .payment-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .payment-label {
        font-size: 0.85rem;
    }

    .payment-value {
        font-size: 0.9rem;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 15px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .admin-table td {
        text-align: right;
        padding: 12px 5px;
        border: none;
        border-bottom: 1px dashed #ecf0f1;
        position: relative;
        padding-left: 40%;
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    .admin-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 5px;
        font-weight: 700;
        color: #64748b;
        font-size: 0.8rem;
    }

    .action-group {
        justify-content: flex-end;
        margin-top: 15px;
    }

    .btn-approve,
    .btn-delete {
        padding: 12px 15px;
        flex: 1;
        font-size: 0.9rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pg-link {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

        .notice-section {
            margin-top: 40px;
            padding:10px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e5eaf0;
        }
}

/* ========================================
   반응형 디자인 - 모바일
   ======================================== */
@media (max-width: 480px) {

    .reg-container,
    .admin-container {
        padding: 20px 12px;
        margin: 10px auto;
    }

    .reg-title {
        font-size: 1.3rem;
    }

    .form-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .success-title {
        font-size: 1.3rem;
    }

    .success-subtitle {
        font-size: 0.95rem;
    }

    .payment-item {
        display: flex;
        flex-direction: column;
    }

    .input-ctrl {
        padding: 12px 14px;
        font-size: 16px;
        width: 100%;
        /* 모바일에서 줌인 방지 */
    }

    .btn-submit,
    .btn-paypal {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .success-notice {
        padding: 15px;
        font-size: 0.85rem;
    }

    .admin-table td {
        padding-left: 45%;
    }

    .btn-approve,
    .btn-delete {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}