/* [ZZAN Studio] Program Page Styles - Ocean Expedition Final Edition */

/* 1. Base Container & Sea Background */
.program-apply-container {
    position: relative;
    overflow: hidden;
    /* 바다 느낌의 청량한 그라데이션 배경 */
    background: linear-gradient(180deg, #f0f7ff 0%, #e0f0ff 50%, #d0e8ff 100%);
    min-height: calc(100vh - 400px); /* 헤더/푸터 제외 최소 높이 */
    padding-top: 50px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
}
.program-apply-container.status-ready {
    min-height: 700px; /* 준비중일 때 모달 높이 보장 */
}
.ocean-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    pointer-events: none;
    z-index: 1;
}
.wave {
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg') repeat-x; 
    position: absolute;
    bottom: 0;
    width: 6400px;
    height: 198px;
    animation: wave 15s cubic-bezier( 0.36, 0.45, 0.63, 0.53) infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.2;
}
.wave:nth-of-type(2) {
    bottom: 10px;
    animation: wave 20s cubic-bezier( 0.36, 0.45, 0.63, 0.53) -.125s infinite, swell 10s ease -1.25s infinite;
    opacity: 0.1;
}
@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1600px); }
}
@keyframes swell {
    0%, 100% { transform: translateY(-25px); }
    50% { transform: translateY(5px); }
}

/* 2. LNB (Tabs) - Glassmorphism Theme */
.program-tabs-wrap {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: var(--header-height);
    z-index: 100; /* GNB(1000)보다 낮게 설정하여 메뉴 가림 현상 해결 */
    transition: all 0.4s ease;
}
.header.scrolled + #container .program-tabs-wrap,
#header.scrolled ~ #container .program-tabs-wrap {
    top: var(--header-scrolled-height);
}
.program-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.program-tabs li a {
    display: block;
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}
.program-tabs li.active a {
    color: var(--point-color);
    border-bottom: 3px solid var(--point-color);
}
.program-tabs li a:hover {
    color: #111;
}

/* 2.1 Program List Header */
.program-list-header {
    position: relative;
    padding: 100px 0 150px;
    text-align: center;
    background: linear-gradient(180deg, #f0f7ff 0%, #e0f0ff 100%);
    overflow: hidden;
}

.program-list-header .program-list-inner {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.program-list-header .header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 24px;
    margin-bottom: 30px;
    color: var(--point-color);
    box-shadow: 0 15px 35px rgba(var(--point-color-rgb), 0.15);
    animation: anchorFloating 4s ease-in-out infinite;
}

.program-list-header .title {
    font-size: 48px;
    font-weight: 900;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.program-list-header .desc {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 3. Main Content Wrapper */
.program-apply-inner {
    position: relative;
    z-index: 10; /* 웨이브보다 위 */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. Apply Page Header */
.apply-header {
    text-align: center;
    margin-bottom: 80px;
}
.anchor-icon {
    color: var(--point-color);
    margin-bottom: 20px;
    animation: anchorFloating 4s ease-in-out infinite;
}
@keyframes anchorFloating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.apply-header .badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--point-color);
    color: #fff;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
}
.apply-header .title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: -0.04em;
}
.apply-header .desc {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}
.info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}
.info-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.info-item .label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
    font-weight: 700;
}
.info-item .val {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

/* 5. Discovery Sections (Cards) */
.sub-title {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
}
.apply-programs { margin-bottom: 80px; }
.prog-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.prog-list li {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-weight: 800;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
}
.prog-list li:hover { border-color: var(--point-color); }
.prog-list li .dot {
    width: 8px; height: 8px;
    background: var(--point-color);
    border-radius: 50%;
    margin-right: 15px;
}

.apply-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 80px;
}
.detail-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.detail-box h3 { font-size: 18px; font-weight: 900; margin-bottom: 15px; color: var(--point-color); }
.detail-box .text { font-size: 15px; line-height: 1.7; color: #555; }

/* 6. Application Form Section - FIXED LAYOUT */
.apply-form-section {
    background: #fff; 
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    margin-bottom: 100px;
    border: 1px solid rgba(0,0,0,0.05);
}
.apply-form {
    display: block; 
    width: 100%;
}
.form-header-deco { text-align: center; margin-bottom: 50px; }
.form-header-deco p { color: #888; margin-top: 10px; }

.form-group {
    margin-bottom: 25px;
    width: 100%;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.apply-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
    font-size: 15px;
}
.apply-form input, .apply-form select, .apply-form textarea {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: 1.5px solid #eee;
    background: #fcfcfc;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box; 
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
    outline: none;
    border-color: var(--point-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--point-color-rgb), 0.1);
}

.form-footer { text-align: center; margin-top: 50px; }
.btn-submit {
    background: linear-gradient(135deg, var(--point-color) 0%, #00d2ff 100%);
    color: #fff;
    border: none;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(var(--point-color-rgb), 0.3);
    transition: all 0.3s;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(var(--point-color-rgb), 0.4); }

.privacy-notice {
    margin-top: 40px; /* 버튼과의 여백 확보 */
    font-size: 15px;
    color: #999;
}
.btn-view-privacy {
    background: none;
    border: none;
    color: #111;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* 7. Ready Modal */
.ready-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50; /* GNB(1000), LNB(100)보다 낮게 설정 */
    display: flex;
    align-items: flex-start; /* 중앙 정렬 대신 상단 정렬 */
    justify-content: center;
    padding: 80px 20px; /* 상단 여백 확보 */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.ready-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 40px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.1);
}

.ready-modal .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: #f0f7ff;
    color: var(--point-color);
    border-radius: 40px;
    margin-bottom: 30px;
}

.ready-modal h2 {
    font-size: 32px;
    font-weight: 900;
    color: #111;
    margin-bottom: 15px;
    letter-spacing: -0.04em;
}

.ready-modal .msg {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 40px;
}

.btn-all {
    display: inline-block;
    background: #111;
    color: #fff;
    border-radius: 100px;
    padding: 18px 45px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* 8. Modal Layer - Fixed Style */
.modal-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none; 
    align-items: center;
    justify-content: center;
}
.modal-layer.show {
    display: flex;
}
.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
}
.modal-content-wrap {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3100;
    box-shadow: 0 30px 100px rgba(0,0,0,0.3);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}
.btn-close {
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
    color: #555;
    line-height: 1.8;
}
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: right;
}
.btn-confirm {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* 9. Fade Animations */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-animate="fade-up"].animated,
[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .apply-header .title { font-size: 36px; }
    .form-row { flex-direction: column; gap: 25px; }
    .apply-details, .prog-list { grid-template-columns: 1fr; }
    .apply-form-section { padding: 40px 25px; }
}
