/* program-list 내에서만 적용되는 스타일 */
#program-register-form .table-bordered {
    border: none;
}
#program-register-form .btn.btn-secondary {
    padding: 1.0rem 2.0rem 0.9rem;
    border-radius: 15px 0 15px 0;
    border: 1px solid #888;
    background-color: #888;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
#program-register-form .btn.btn-secondary:hover {
    background: #fff;
    color: #111;
}
#program-register-form .captcha-image img {
    height: 40px !important;
}

/* 필수 입력 정보 안내 문구 */
.program-list .program-list-header-info {
    padding: 14px 0;
    text-align: right;
    font-size: 1.4rem;
    margin-top: 50px;
}
.program-list .program-list-required-indicator {
    color: #ff0000;
    font-size: 1.7rem;
    font-weight: 600;
    margin-right: 5px;
}
.program-list .program-list-required-text {
    color: #333;
    font-weight: 500;
}

/* 테이블 공통 스타일 (program-list-table) */
.program-list .program-list-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #111;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}
.program-list .program-list-table caption {
    display: none;
}
/* 테이블 헤더(th) 공통 스타일 */
.program-list .program-list-table th {
    background-color: #f7f8f9;
    padding: 15px 20px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    border: none;
    border-right: 1px solid #eee;
    vertical-align: middle !important;
    width: 150px;
}
/* 테이블 데이터(td) 공통 스타일 */
.program-list .program-list-table td {
    padding: 10px 20px;
    border: none;
    vertical-align: middle;
}
/* 테이블 행(tr) 구분선 */
.program-list .program-list-table tr {
    border-bottom: 1px solid #eee;
}
.program-list .program-list-table tr:last-child {
    border-bottom: none;
}
/* 프로그램 정보 테이블의 colspan td 패딩 조정 */
.program-list .program-info td {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* 필수 항목(*) 스타일 */
.program-list .program-list-required-field {
    margin-bottom: 8px;
}
.program-list .program-list-required-field::before {
    content: '*';
    color: #ff0000;
    margin-right: 4px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* 인풋 필드 스타일 (program-list-input) */
.program-list .program-list-input {
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 15px 0 15px 0;
    font-size: 1.6rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out;
    width: 100% !important;
    max-width: none !important;
}
.program-list .program-list-input:focus {
    border-color: #1E3A8A;
    outline: none;
}

/* 휴대폰 번호 입력 그룹 스타일 */
.program-list .program-list-phone-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.program-list .program-list-phone-group .program-list-input {
    text-align: center;
    flex-grow: 1;
    width: auto !important;
    max-width: 180px !important;
}
.program-list .program-list-phone-group > span {
    display: none;
}


/* 버튼 스타일 (program-list-button) */
.program-btn {
    padding: 1.0rem 2.0rem 0.9rem;
    border-radius: 15px 0 15px 0;
    border: 1px solid #111;
    background-color: #111;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.program-btn:hover {
    background: #fff;
    color: #111;
}
.program-btn.line {
    background: none;
    border: 1px solid #111;
    color: #111;
}

/* 큰 버튼 스타일 (하단 버튼) */
.program-list .board-btn {
    text-align: center;
    margin-top: 50px;
}
.program-list .board-btn .program-list-button {
    font-size: 1.8rem;
    padding: 1.4rem 3.0rem 1.3rem;
    min-width: 150px;
}

/* 회차 선택 테이블 스타일 조정 (rows-select) */
.program-list .rows-select thead th,
.program-list .rows-select tbody td {
    padding: 15px 10px;
    font-size: 1.8rem;
    text-align: center;
}
.program-list .rows-select tbody td:nth-child(5) {
    text-align: center;
}

/* 개인정보 동의 영역 스타일 */
.program-list .program-list-privacy-area {
    margin-top: 50px; /* my-5 대신 명확한 margin-top 사용 */
    margin-bottom: 50px;
}
.program-list .program-list-privacy-cell {
    padding: 20px !important;
    text-align: left !important;
    border-right: none !important;
    background-color: #f7f8f9;
}
.program-list .program-list-privacy-group {
    padding-bottom: 15px;
}
.program-list .program-list-privacy-title {
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.program-list .program-list-privacy-text {
    font-size: 1.6rem;
    color: #666;
    max-height: 200px;
    overflow: hidden;
    border-radius: 15px 0 15px 0;
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #fff;
}
.program-list .program-list-privacy-text p {
    margin: 0 0 10px 0;
}
.program-list .privacy-rules {
    margin-top: 10px;
    color: #666;
}
.program-list .privacy-rules ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    line-height: 1.6;
}
.program-list .privacy-rules strong {
    color: #111;
}

/* 라디오 버튼 스타일 */
.program-list .radio-group {
    display: flex;
    gap: 20px;
}
.program-list .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.8rem;
    color: #333;
}
.program-list .radio-label input[type="radio"] {
    display: none;
}
.program-list .custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}
.program-list .radio-label input[type="radio"]:checked + .custom-radio {
    border-color: #111;
    background-color: #111;
}
.program-list .radio-label input[type="radio"]:checked + .custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.program-list .consent-buttons {
    justify-content: flex-end;
    margin-top: 0;
}
.program-list .hidden-checkbox {
    display: none;
}


/**/
.select-program-btn.btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}


/**/
.program {
    margin-top: 100px;
    padding-top: 50px;
    border-top: 1px dashed #ddd;
}
.program:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.program .subject {
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 2.4rem;
    font-weight: 700;
}
.program:first-child .subject {
    margin-top: 0;
}
.program table {
    width: 100%;
    border-top: 2px solid #111;;
}
.program table th {
    background-color: #f7f8f9;
    padding: 15px 20px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    border: none;
    border-right: 1px solid #eee;
    vertical-align: middle !important;
    text-align: center;
    width: 150px;
}
.program table td {
    padding: 10px 20px;
    border: none;
    font-size: 1.6rem;
    line-height: 1.5;
    vertical-align: middle;
}
.program table tr {
    border-bottom: 1px solid #eee;
}
.program table tr:last-child {
    border-bottom: none;
}
.program .confirm-table {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.program .ConfirmReservation {
    display: flex;
    justify-content: center;
}
.program .ConfirmReservation .rect {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px dashed #ddd
}
.program .ConfirmReservation .btn {
    font-size: 1.4rem;
}
.program .ConfirmReservation .btn.btn-success,
.program .ConfirmReservation .btn.btn-dark {
    cursor: default;
}

/**/
#my-form .res-chk-form {
    width:auto;
    max-width:800px;
}
#my-form .f-group .l-area {
    width:19rem;
    margin-right:1rem;
}
#my-form .f-group #password {}

/**/
#my-program {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    justify-items: center;
}
#my-program .card {
    width:100%;
    max-width:300px;
    height:400px;
    border-radius:20px;
    overflow:hidden;
}
#my-program .card .card-body {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position:relative;
}
#my-program .card .card-body:before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    z-index:0;
}
#my-program .card .card-body .rect {
    position:relative;
    z-index:1;
}
#my-program .card .card-body li,
#my-program .card .card-body .state {
    color:#fff;
}
#my-program .initial-content .location,
#my-program .initial-content .date,
#my-program .initial-content .capacity,
#my-program .initial-content .target {
    position: relative;
    margin-bottom: 10px;
    padding-left: 30px;
    background-repeat: no-repeat;
    background-position: left center;
    font-size: 1.8rem;
    line-height: 26px;
}
#my-program .initial-content .location {
    background-image: url(/images/content/contents/icon_location.png);
}
#my-program .initial-content .date {
    background-image: url(/images/content/contents/icon_date.png);
}
#my-program .initial-content .capacity {
    background-image: url(/images/content/contents/icon_capacity.png);
}
#my-program .initial-content .target {
    background-image: url(/images/content/contents/icon_target.png);
}

@media(max-width:1023px){
    #my-program {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width:767px){
    #my-program {
        grid-template-columns: repeat(1, 1fr);
    }
}


