@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes buttonFlash {
    0% {
        background-color: transparent;
        color: #214376;
    }

    50% {
        background-color: #66A7F2;
        color: #FFFFFF;
    }

    100% {
        background-color: transparent;
        color: #214376;
    }
}

.realmodel-bg {
    background: linear-gradient(180deg,
            #2E4C78 12%,
            #41587B 23%,
            #7A91B3 65%,
            #EBF3FE 92%,
            #FFFFFF 100%);
    width: 100%;
    padding: 120px 0 60px;
}

.realmodel-stick {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 75px;
    background-color: #E8F1FF;
    border-radius: 5px;
    z-index: 1000;
}

.realmodel-wrapper {
    width: 100%;
    max-width: 1700px;
    margin: 120px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
}

.realmodel-wrapper .text-area {
    flex-shrink: 0;
    text-align: right;
    line-height: 1.2;
}

.realmodel-wrapper .title {
    font-family: 'Dream Orphans', sans-serif;
    font-size: 128px;
    color: white;
    font-weight: 400;
}

.realmodel-wrapper .title span {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 200;
    display: block;
    margin-top: 20px;
    color: white;
}

.realmodel-wrapper .gallery {
    position: relative;
    display: flex;
    gap: 5px;
    height: 400px;
    animation: slideInFromRight 1.2s ease-out;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.realmodel-wrapper .gallery::-webkit-scrollbar {
    display: none;
}

.realmodel-wrapper .gallery:active {
    cursor: grabbing;
}

.realmodel-wrapper .column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
}

.realmodel-wrapper .column img {
    object-fit: cover;
}

.realmodel-wrapper .col1 {
    width: 150px;
}

.realmodel-wrapper .col2 {
    width: 300px;
}

.realmodel-wrapper .col3 {
    width: 150px;
}

.realmodel-wrapper .col4 {
    width: 210px;
}

.realmodel-wrapper .col5 {
    width: 290px;
}

.realmodel-wrapper .h100 {
    height: 100%;
}

.realmodel-wrapper .h55 {
    height: 55%;
}

.realmodel-wrapper .h45 {
    height: 45%;
}

.realmodel-description {
    text-align: center;
    margin-top: 100px;
    padding: 0 40px;
}

.realmodel-description .description-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.realmodel-description .description-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #214376;
    margin: 0;
}

.model-application-section {
    width: 100%;
    padding: 100px 0 100px;
}

.model-application-form {
    min-width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
}

.form-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 40px 0;
}

.form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 300px;
}

.form-group.textarea-group {
    align-items: flex-start;
}

.form-group label {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #333333;
    min-width: 120px;
    flex-shrink: 0;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    background-color: white;
    box-sizing: border-box;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 100;
    color: #9CA3AF;
}

.form-group select {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 100;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
}

.form-group textarea {
    min-height: 120px;
    resize: none;
}

.phone-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.phone-group input[type="text"] {
    width: 120px;
    flex: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 100;
    margin-left: 20px;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #000000;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex: 1;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    accent-color: #000000;
}

.file-upload-container {
    flex: 1;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.file-select-btn {
    padding: 12px 24px;
    background-color: #6B7280;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 120px;
}

.file-select-btn:hover {
    background-color: #4B5563;
}

.file-name {
    font-size: 14px;
    color: #6B7280;
    margin-left: 12px;
}

.file-description {
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 100;
    color: #000000;
    line-height: 1.5;
}

.file-description p {
    margin: 4px 0;
}

.privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
}

.privacy-header>label:first-child {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #333333;
}

.privacy-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 100;
}

.privacy-agree input[type="checkbox"] {
    accent-color: #000000;
}

.privacy-content {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    padding: 24px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 200;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 30px;
    max-height: 254px;
    overflow: auto;
}

.privacy-item {
    margin-bottom: 16px;
}

.privacy-item strong {
    color: #000000;
    display: inline-block;
}

.privacy-item p {
    margin: 4px 0;
}

.submit-btn {
    min-width: 298px;
    min-height: 48px;
    padding: 12px 24px;
    background-color: white;
    color: #214376;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    margin: 40px 0 0 auto;
    display: block;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #f3f4f6;
}

.submit-btn.active {
    background-color: #66A7F2;
    color: #FFFFFF;
    border-color: #66A7F2;
    animation: none;
}

.submit-btn.active:hover {
    background-color: #5590d1;
}

.event-detail-sec {
    width: 100%;
}

.event-detail-content {
    width: 100%;
    background-image: url("/home_assets/img/main/community/event-content-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.event-detail-header-img {
    width: 100%;
}

.event-detail-content .privacy-header {
    margin-top: 110px;
}

.event-detail-content .model-application-section {
    padding: 0;
}

.event-detail-content .model-application-form {
    padding: 100px 40px 40px 40px;
}

.event-detail-content .form-group:nth-child(4) {
    gap: 290px;
}

@media (max-width: 768px) {

    /* 공통 레이아웃 간격/타이포 축소 */
    .realmodel-bg {
        padding: 80px 0 48px;
    }

    .realmodel-wrapper {
        margin: 40px auto 0;
        padding: 16px;
        gap: 20px;
        flex-direction: column;
        /* 타이틀 위, 갤러리 아래 */
        align-items: stretch;
        text-align: center;
    }

    .realmodel-wrapper .text-area {
        text-align: center;
    }

    .realmodel-wrapper .title {
        font-size: 48px;
        line-height: 1.05;
    }

    .realmodel-wrapper .title span {
        font-size: 16px;
        margin-top: 8px;
    }

    /* 갤러리: 높이 축소 + 가로 스크롤 */
    .realmodel-wrapper .gallery {
        height: 240px;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .realmodel-wrapper .gallery::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .realmodel-wrapper .column {
        flex: 0 0 140px;
    }

    .realmodel-wrapper .h55 {
        height: 56%;
    }

    .realmodel-wrapper .h45 {
        height: 44%;
    }

    .realmodel-description {
        margin-top: 40px;
        padding: 0 16px;
    }

    .realmodel-description .description-subtitle {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .realmodel-description .description-title {
        font-size: 20px;
    }

    /* 지원서 섹션/폼 */
    .model-application-section {
        padding: 56px 0 64px;
    }

    .model-application-form {
        max-width: 100%;
        min-width: 0;
        /* 기존 min-width:1200px 무력화 */
        padding: 20px 16px;
        border-radius: 10px;
    }

    .form-title {
        font-size: 24px;
        margin: 0 0 24px 0;
    }

    .form-group {
        flex-direction: column;
        /* 라벨 위, 입력 아래 */
        align-items: stretch;
        gap: 10px;
        /* 기존 gap:300px 축소 */
        margin-bottom: 18px;
    }

    .form-group label {
        margin-top: 0;
        min-width: 0;
        font-size: 16px;
        font-weight: 400;
    }

    .form-group input[type="text"],
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 14px;
    }

    .form-group input[type="text"]::placeholder,
    .form-group textarea::placeholder {
        font-size: 16px;
        /* 작은 화면 placeholder 축소 */
        font-weight: 300;
    }

    .form-group select {
        background-size: 14px;
        background-position: right 10px center;
    }

    .form-group.textarea-group textarea {
        min-height: 120px;
        width: 100%;
    }

    /* 휴대폰 번호 입력: 3칸 균등 분배 */
    .phone-group {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .phone-group input[type="text"] {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        /* 기존 120px 고정 해제 */
        text-align: center;
        padding: 12px 10px;
    }

    .checkbox-label {
        margin-left: 0;
        font-size: 14px;
    }

    /* 성별 라디오 */
    .radio-group {
        gap: 12px;
    }

    .radio-label {
        font-size: 14px;
    }

    /* 파일 업로드: 세로 스택 + 버튼 풀폭 */
    .file-upload {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .file-select-btn {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
        font-size: 16px;
    }

    .file-name {
        margin-left: 0;
        font-size: 13px;
    }

    .file-description {
        font-size: 14px;
        word-break: keep-all;
    }

    /* 개인정보 영역 */
    .privacy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .privacy-content {
        padding: 16px;
        font-size: 13px;
        margin-bottom: 24px;
    }

    /* 제출 버튼: 풀폭 + 터치 타겟 확대 */
    .submit-btn {
        width: 100%;
        margin: 24px 0 0 0;
        font-size: 18px;
        min-height: 52px;
    }

    .event-detail-content .privacy-header {
        margin-top: 30px;
    }

    .event-detail-content .form-group:nth-child(4) {
        gap: 10px;
    }

    .privacy-item {
        word-break: keep-all;
    }
}