@charset "utf-8";

/* 모달 기본 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    max-width: 640px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 50px 40px 40px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #0d1b44;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0d1b44;
}

/* 폼 스타일 */
.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3f5aff;
    box-shadow: 0 0 0 3px rgba(63, 90, 255, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

/* 안내 문구 */
.form-notice {
    font-size: 13px;
    color: #e74c3c;
    margin: 15px 0 20px;
    line-height: 1.6;
}

.form-notice strong {
    font-weight: 700;
}

/* 개인정보 안내 */
.form-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-info .info-item {
    margin-bottom: 15px;
}

.form-info .info-item:last-of-type {
    margin-bottom: 0;
}

.form-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b44;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.form-info h4::before {
    content: '▸';
    margin-right: 6px;
    color: #3f5aff;
}

.form-info p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-left: 14px;
}

.form-info .info-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-size: 12px;
    color: #666;
    margin-left: 0;
}

/* 동의 체크박스 */
.form-agree {
    text-align: center;
    margin: 25px 0;
}

.form-agree label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.form-agree input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #3f5aff;
}

/* 제출 버튼 */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #16a085 0%, #0f8a6d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 160, 133, 0.3);
}

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

/* 모바일 최적화 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 40px 20px 30px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
        padding: 12px 14px;
    }

    .form-info {
        padding: 15px;
    }

    .form-info h4 {
        font-size: 13px;
    }

    .form-info p {
        font-size: 12px;
    }
}
