/*****교육프로그램 CSS ******/
.step-indicator {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 6rem;
    flex-wrap: wrap;
}

.step-indicator .step {
    flex: 1 1 0;
    min-width: 10rem;
    text-align: center;
    padding: 1.5rem 2rem;;
    font-size: 1.7rem;
    border-radius: 99.99rem;
    border: 0.1rem solid #d1d5db;
    background: #f9fafb;
    color: #4b5563;
    position: relative;
}
.step-indicator .step::before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 0.6rem;
    border-radius: 99.9rem;
    border: 0.1rem solid #d1d5db;
    font-size: 1.4rem;
    background: #fff;
    color: #4b5563;
}
.step-indicator .step.is-active {
    border-color: var(--primary);
    background: var(--bg-section);
    color: var(--primary);
    font-weight: 600;
}
.step-indicator .step.is-active::before {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.step-panel {
    display: none;
    margin-bottom: 4rem;
}
.step-panel.is-active {
    display: block;
}

.detail-section-title {
    margin: 4rem 0 0.8rem 0;
    color: #111827;
    position: relative;
    padding-left: 1rem;
}

.detail-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.3rem;
    height: 1.8rem;
    transform: translateY(-50%);
    border-radius: 99.9rem;
    background: var(--primary);
}
.detail-desc {
    border-radius: 1rem;
    background: #f9fafb;
    border: 0.1rem solid #e5e7eb;
    padding: 2rem;
    font-size: 1.6rem;
    color: #374151;
    line-height: 1.5;
    white-space: pre-line; /* 줄바꿈 유지 */
}
.stats {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    color: #374151;
    background: #f3f4f6;
    border-radius: 99.9rem;
    border: 1px solid #e5e7eb;
}
.stat-pill strong {
    font-weight: 700;
    color: #111827;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 1.6rem;
}
.form-field label {
    font-weight: 600;
    color: #333;
}
.form-field input,
.form-field textarea {
    border-radius: 0.4rem;
    border: 0.1rem solid #d1d5db;
    padding: 0.8rem 1rem;
    font-size: 1.6rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1rem rgba(27, 67, 50, 0.15);
}
.form-field small {
    font-size: 1.3rem;
    color: #6b7280;
}

.gender-group,
.crop-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2rem;
    font-size: 1.6rem;
}
.gender-group label,
.crop-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: #374151;
}
.crop-group + #cropOther {
    width: 100%;
    max-width: 28rem;
}
.form-field input.k-radio {
    border-radius: 99.9rem;
}

#resultMessage {
    margin-bottom: 4rem;
    border-left: 0.4rem solid var(--primary);
    padding-left: 1rem;
    background: var(--bg-section);
    border-radius: 0.8rem;
}
#resultDetail {
    margin-top: 1rem;
    white-space: pre-line;
}

/* ===== 하단 네비게이션 바 ===== */
.bottom-nav {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    border-top: 0.1rem solid #e5e7eb;
    background: #f9fafb;
    z-index: 100;
}

/* 하단 고정 상태 */
.bottom-nav.is-fixed {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.06);
}

/* fixed일 때 본문이 눌리지 않도록 자리 확보 */
.bottom-nav-placeholder {
    height: 0;
}

.bottom-nav-inner {
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.form-msg {
    font-size: 1.5rem;
    color: #4b5563;
    padding: 1rem 2rem;
    border-radius: 99.9rem;
    background: #e5e7eb;
}
.form-msg.success {
    background: var(--bg-section);
    color: var(--primary);
    border: 0.1rem solid #B7D5C4;
}
.form-msg.warn {
    background: #FFF4D6;
    color: #7A5A0E;
    border: 0.1rem solid #E6CC7A;
}
.form-msg.error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 0.1rem solid #FCA5A5;
}
.bottom-nav-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.bottom-nav .btn.btn-xs {
    min-width: 7rem;
    padding: 1rem 1.5rem;
    border-radius: 99.9rem;
    border: 0.1rem solid #d1d5db;
    background: #ffffff;
    font-size: 1.5rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bottom-nav .btn.btn-xs:hover {
    background: #f3f4f6;
}
.bottom-nav .btn.btn-xs.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}
.bottom-nav .btn.btn-xs.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* 예비자신청 버튼 강조(스크립트에서 btn-wait 클래스 붙일 때) */
.bottom-nav .btn.btn-xs.btn-primary.btn-wait {
    background: var(--accent);
    border-color: var(--accent);
}
.bottom-nav .btn.btn-xs.btn-primary.btn-wait:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* 리스트에서 선택된 행 표시용 */
.course-row.row-selected {
    background-color: #fff7e6;
}
/* 과목명 링크 스타일 */
.course-name a.course-link {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}
.course-name a.course-link:hover {
    text-decoration: none;
}
.fieldList li .con .fields {
    gap: 2rem;
}
.fieldList li .con .field + .field {
    margin-left: 0rem;
}
#bbsInput .fieldList + .txtCenter {
    margin-top: 4rem;
}
#bbsInput + #bbsList {
    margin-top: 8rem;
}
.card p + .mypage-filter,
.card .mypage-filter {
    margin-top: 2rem;
    padding: 2rem 3rem;
    background-color: #f7f7f7;
}
.info-bar {
    margin: 6rem auto;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    color: #4b5563;
    background: #f9fafb;
    border: 0.1rem solid #e5e7eb;
}
.info-bar strong {
    color: #111827;
}

.wait-notice {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    background: #FFF4D6;
    color: #7A5A0E;
    border: 1px solid #E6CC7A;
}



.txtCenter .ui.button.big.brown {
    background-color: #6B5318;
}

.ui.button.btn-apply-normal {
    width: 10.9rem;
    background: var(--primary);
    border-color: var(--primary);
    color:#fff;
}
.ui.button.btn-apply-normal:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.ui.button.btn-apply-wait {
    width: 10.9rem;
    background: var(--accent);
    border-color: var(--accent);
    color:#fff;
}
.ui.button.btn-apply-wait:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.ui.button.btn-detail {
    width: 10.9rem;
    background:#fff;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.ui.button.btn-detail:hover{
    background: var(--bg-section);
}
.ui.button.btn-closed {
    width: 10.9rem;
    background:#D1D5DB;
    border-color:#D1D5DB;
    color:#6B7280;
    cursor:not-allowed;
}

/* 모달 내부 테이블 */
#detailTable,
#participantTable {
    width: 100%;
    border-collapse: collapse;
    border-top: 0.1rem solid #e5e7eb;
}
#detailTable th,
#detailTable td,
#participantTable th,
#participantTable td {
    border-bottom: 0.1rem solid #e5e7eb;
    padding: 1rem 2rem;
    font-size: 1.5rem;
}
#detailTable th,
#participantTable th {
    background: #f3f4f6;
    width: 12rem;
    text-align: left;
}
#participantTable th,
#participantTable td {
    text-align: center;
}

#detailTable + h5 {
    margin-top: 3rem;
}

/* 취소 모달 */
#cancelReason,
#partialCancelReason {
    width: 100%;
    resize: vertical;
    min-height: 8rem;
}
#cancelCourseText,
#modalCourseText,
#partialCourseText {
    font-size: 1.5rem;
    white-space: pre-line;
    margin: 0 0 3rem 0;
}

#partialCancelNotice {
    font-size:  1.4rem;
    margin-bottom: 0.5rem;
}
.selBtn {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.8rem 0 3rem 0;
}

.ui.modal {
    padding: 0;
    overflow: hidden;
}
.ui.modal>.header:not(.ui) {
    padding: 2rem 4rem;
    background-color: #f7f7f7;
    font-size:  2.4rem;
    line-height: 1.4;
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.15);
}
.ui.modal>.content {
    padding: 4rem;
}
.ui.modal h5 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.ui.modal p {
    font-size: 1.4rem;
}
.ui.modal>.content + .txtCenter {
    padding: 2rem 4rem 4rem 4rem;
}

#paymentSection {
    margin-top: 4rem;
}
.payMoney {
    margin:  1rem 0 4rem 0;
}
#paymentSection p {
    font-size: 1.4rem;
    margin-top: 1rem;
}

/* ============================================================
   아래는 자료/강좌예약추가개발/project/main/03-교육프로그램안내.html
   <style> 블록을 참고해 resvr_main.php에 아직 스타일이 없는
   부분(필터 카드 / 강좌 목록 테이블 / 상태 배지 / 카드 컨테이너 /
   주소 입력)만 추가한 것. 사이트 기본 초록 팔레트(var(--primary) 등,
   mainCon.css 정의)를 그대로 사용하고, 대기/경고성 요소만 참조와
   동일하게 amber(#FFF4D6/#7A5A0E) 톤을 유지함.
   ============================================================ */

/* ===== 필터 카드 (검색/상태) ===== */
.filter-card {
    background: #fff;
    border: 0.1rem solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.8rem 2rem;
    margin-bottom: 1.6rem;
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.filter-row + .filter-row {
    margin-top: 1rem;
}
.filter-row .label {
    min-width: 5.4rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}
.filter-row .field-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
}
.filter-row .field-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.4rem;
    color: #555;
    cursor: pointer;
}
.filter-row .field-group input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    accent-color: var(--primary);
}
.filter-row input[type="text"] {
    flex: 1;
    min-width: 18rem;
    padding: 0.8rem 1.2rem;
    font-size: 1.4rem;
    font-family: inherit;
    border: 0.1rem solid #d1d5db;
    border-radius: 0.5rem;
    background: #fff;
}
.filter-row input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.3rem rgba(27,67,50,.12);
}
.filter-btn-wrap {
    text-align: center;
    margin-top: 1.4rem;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 2.4rem;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 99.9rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.filter-btn:hover { background: var(--primary-dark); }
.filter-btn .material-symbols-outlined { font-size: 1.8rem; }

/* ===== 강좌 목록 테이블 ===== */
.course-table-wrap { overflow-x: auto; }
.course-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 0.2rem solid var(--primary);
}
.course-table thead th {
    background: #f9fafb;
    padding: 1.2rem 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    border-bottom: 0.1rem solid #e5e7eb;
    text-align: center;
}
.course-table tbody td {
    padding: 1.3rem 0.8rem;
    font-size: 1.4rem;
    color: #555;
    border-bottom: 0.1rem solid #e5e7eb;
    text-align: center;
    vertical-align: middle;
}
.course-table tbody tr { transition: background .2s; cursor: pointer; }
.course-table tbody tr:hover { background: #f9fafb; }
.course-table tbody tr.row-selected { background: #FFF8E7; }
.course-table .course-name {
    text-align: left;
    padding: 1.3rem 0.8rem 1.3rem 1.4rem;
    vertical-align: middle;
}
.course-table .course-link {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.course-table .fee-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-mid);
    background: var(--bg-section);
    border-radius: 1.4rem;
    padding: 0.3rem 0.8rem;
}
.course-table .fee-tag::before { content: "\1F4B0"; font-size: 1.1rem; }
.course-table .fee-tag.paid { color: #7A5A0E; background: #FFF4D6; }

.course-table .day-time-cell { line-height: 1.5; padding: 1.2rem 0.6rem; }
.course-table .day-time-cell .day-line {
    display: block; font-size: 1.3rem; font-weight: 600; color: #111827;
}
.course-table .day-time-cell .time-line {
    display: block; font-size: 1.2rem; color: #6b7280; margin-top: 0.15rem;
}

.course-table .date-cell { padding: 1rem 0.6rem; line-height: 1.5; }
.course-table .date-row {
    display: flex; align-items: baseline; gap: 0.5rem;
    font-size: 1.25rem; padding: 0.2rem 0;
}
.course-table .date-row + .date-row { margin-top: 0.2rem; }
.course-table .date-row .date-label {
    flex-shrink: 0; display: inline-block;
    min-width: 3rem; padding: 0.1rem 0.5rem;
    font-size: 1.1rem; font-weight: 700;
    border-radius: 0.3rem; text-align: center;
}
.course-table .date-row .date-label.edu { background: var(--bg-section); color: var(--primary); }
.course-table .date-row .date-label.app { background: #FFF4D6; color: #7A5A0E; }
.course-table .date-row .date-value { color: #555; font-weight: 500; }

/* ===== 상태 배지 ===== */
.badge {
    display: inline-block; min-width: 5.8rem; padding: 0.35rem 0.9rem;
    font-size: 1.2rem; font-weight: 700; border-radius: 0.4rem; color: #fff;
    text-align: center;
}
.badge.badge-open { background: linear-gradient(135deg, #26a69a 0%, var(--primary-mid) 100%); }
.badge.badge-wait { background: #90A4AE; }
.badge.badge-done { background: #B0BEC5; }

/* ===== 카드(신청서/결과 컨테이너) ===== */
.card {
    background: #fff;
    border: 0.1rem solid #e5e7eb;
    border-radius: 1rem;
    padding: 2.4rem 2.6rem;
    margin-bottom: 1.6rem;
}
.card .tit { font-size: 1.8rem; font-weight: 700; color: #111827; margin: 0 0 0.6rem; }
.card > p { font-size: 1.4rem; color: #6b7280; margin: 0 0 1.2rem; }

/* ===== 주소 입력(시/군 + 읍면동) ===== */
.address-group { display: flex; gap: 0.6rem; }
.address-group select { flex: 0 0 12rem; }
.address-group input { flex: 1; }

@media (max-width: 1300px) {
    .course-table thead { display: none; }
    .course-table tbody tr { display: block; border: 0.1rem solid #e5e7eb; border-radius: 0.8rem; margin-bottom: 1rem; padding: 1.4rem; }
    .course-table tbody td { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.6rem 0; border: 0; text-align: left; }
    .course-table tbody td::before { content: attr(data-label); font-weight: 600; color: #999; min-width: 9rem; }
    .course-table .course-name { padding: 0.6rem 0; }
    .course-table .course-name::before { display: none; }
    .course-table tbody td[data-label="상태"] { justify-content: flex-start; padding: 0 0 0.6rem; }
    .course-table tbody td[data-label="상태"]::before { display: none; }
    .course-table td.date-cell { display: block; padding: 0.6rem 0; }
    .course-table td.date-cell::before { display: none; }
    .course-table .date-cell .date-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.35rem 0; margin-top: 0; }
    .course-table .date-cell .date-row .date-label { min-width: 5rem; }
    .course-table td.day-time-cell { display: block; padding: 0.5rem 0; }
    .course-table td.day-time-cell::before { display: none; }
    .course-table .day-time-cell .day-line,
    .course-table .day-time-cell .time-line {
        display: flex; align-items: center; gap: 0.7rem;
        padding: 0.3rem 0; font-size: 1.3rem; font-weight: 500; color: #111827;
        margin-top: 0;
    }
    .course-table .day-time-cell .day-line::before,
    .course-table .day-time-cell .time-line::before {
        flex-shrink: 0; display: inline-block;
        min-width: 4.4rem; padding: 0.1rem 0.5rem;
        font-size: 1.1rem; font-weight: 700; text-align: center; border-radius: 0.3rem;
    }
    .course-table .day-time-cell .day-line::before { content: "교육일"; background: var(--bg-section); color: var(--primary); }
    .course-table .day-time-cell .time-line::before { content: "시간"; background: #FFF4D6; color: #7A5A0E; }
}
@media (max-width: 768px) {
    .filter-card { padding: 1.8rem; }
    .filter-row .label { min-width: 0; flex-basis: 100%; }
    .course-table tbody td::before { min-width: 7rem; }
}
