/* 한국기계연구원 웹폰트 - 출처: 한국기계연구원, kimm.re.kr */
@font-face {
    font-family: 'KIMM';
    font-weight: 300;
    font-style: normal;
    src: url('/fonts/KIMM_Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'KIMM';
    font-weight: 700;
    font-style: normal;
    src: url('/fonts/KIMM_bold.ttf') format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'KIMM', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.main-content {
    padding: 40px 20px;
}

.hero-section {
    margin-bottom: 40px;
}

.placeholder-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.2em;
    color: #666;
}

.form-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

/* 폼 헤더 */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-brand {
    font-size: 1.2em;
    letter-spacing: 0.3em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 400;
}

.form-title {
    font-size: 2.5em;
    font-weight: 900;
    color: #000;
    margin: 10px 0;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 1.3em;
    color: #333;
    margin-top: 15px;
    padding: 12px 30px;
    background: white;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid #e0e0e0;
}

.strike-price {
    text-decoration: line-through;
    color: #999;
}

.form-section h2 {
    font-size: 4em;
    margin-bottom: 30px;
    color: black;
    text-align: center;
}

.application-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input[type='text'],
.form-group input[type='tel'] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input[type='text']:focus,
.form-group input[type='tel']:focus {
    outline: none;
    border-color: #667eea;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type='radio'] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label span {
    font-weight: normal;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type='checkbox'] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-link {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
}

.privacy-link:hover {
    color: #764ba2;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: black;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.info-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.company-info {
    font-size: 0.9em;
    color: #666;
}

.company-info p {
    text-align: center;
    margin-bottom: 8px;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

.privacy-content {
    margin-top: 20px;
}

.privacy-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #667eea;
}

.privacy-content ul {
    margin-left: 20px;
}

.privacy-content li {
    margin-bottom: 5px;
}

/* 신청 완료 모달 */
.success-modal {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3em;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.success-message {
    color: #666;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.success-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.success-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.success-button:active {
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .form-section {
        padding: 20px;
    }

    .form-brand {
        font-size: 1em;
        letter-spacing: 0.2em;
    }

    .form-title {
        font-size: 1.8em;
    }

    .form-subtitle {
        font-size: 1.1em;
        padding: 10px 20px;
    }

    .form-section h2 {
        font-size: 1.5em;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2em;
        line-height: 60px;
    }

    .success-modal h2 {
        font-size: 1.5em;
    }

    .success-message {
        font-size: 1em;
    }
}
