/**
 * @파일명 css/_main_apply.css
 * @제작사 ZZAN Studio
 * @설명 메인 페이지 서비스 신청 섹션 스타일
 */

/* [1] 섹션 메인 컨테이너 */
.main-apply-section {
    position: relative;
    padding: 80px 0;
    background: #fdfdfd;
}

/* [1-1] 배경 Canvas 애니메이션 효과 스타일 */
.bg-abstract-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #ffffff;
}

#applyCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.main-apply-section .content-wrap {
    position: relative;
    z-index: 1;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
}

/* [2] 좌측 서비스 신청 입력 폼 영역 */
.apply-form-area .badge {
    display: inline-block;
    padding: 4px 12px;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 15px;
}

.apply-form-area .title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 40px;
    letter-spacing: -1px;
    color: #111;
}

.apply-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    height: 55px;
    padding: 0 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 33, 0, 0.1);
}

.form-agree {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.btn-detail {
    font-size: 13px;
    color: #999;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    height: 60px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #b11a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 33, 0, 0.2);
}

/* [4] 개인정보 취급방침 레이어 팝업 */
.privacy-layer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.privacy-layer.opened {
    display: flex;
}

.privacy-layer .layer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.privacy-layer .layer-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
    animation: layerAppear 0.3s ease-out;
}

@keyframes layerAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-layer .layer-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.privacy-layer .layer-header .title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.privacy-layer .btn-close-layer {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.privacy-layer .btn-close-layer:hover {
    color: #111;
}

.privacy-layer .layer-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.privacy-layer .policy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    white-space: pre-wrap;
}

.privacy-layer .layer-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    text-align: right;
}

.privacy-layer .layer-footer .btn-close-layer {
    background: #f4f4f4;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
}

.privacy-layer .layer-footer .btn-close-layer:hover {
    background: #eee;
}

/* [3] 우측 실시간 신청 현황 위젯 영역 */
.apply-status-area {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.apply-status-area .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f8f8;
}

.status-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.apply-status-area .btn-more {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #888 !important;
    text-decoration: none !important;
    gap: 4px !important;
    transform: none !important;
    transition: all 0.2s ease-in-out !important;
}

.apply-status-area .btn-more::after {
    content: '→';
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease-in-out;
}

.apply-status-area .btn-more:hover {
    color: var(--primary-red) !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.apply-status-area .btn-more:hover::after {
    transform: translateX(3px);
}

.status-rolling-container {
    height: 350px;
    overflow: hidden;
}

.status-rolling {
    height: 100%;
}

.status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
}

.card-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-left .date {
    font-size: 13px;
    color: #999;
    font-family: monospace;
}

.card-left .user-id {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.status-badge.type-ready { background: #fff4f2; color: #ff5233; }
.status-badge.type-complete { background: #e8f9f1; color: #00ba61; }
.status-badge.type-hold { background: #f3f3f3; color: #666; }

/* [5] 반응형 스타일 조절 */
@media screen and (max-width: 1024px) {
    .apply-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .apply-form {
        max-width: none;
    }
}

@media screen and (max-width: 768px) {
    .apply-form-area .title {
        font-size: 28px;
    }
    .main-apply-section {
        padding: 50px 0;
    }
}
