*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

}


/* 버튼 스타일 */
.open-modal-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6f6df4, #4c46f5);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
}
.open-modal-button:hover {
    background: linear-gradient(135deg, #4c46f5, #6f6df4);
    transform: scale(1.05);
}

/* 모달 스타일 */
.modal {
    display: none;  /* 기본적으로 숨겨짐 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);  /* 배경 흐림 */
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* animation: fadeIn 1s ease-out; */
    z-index: 1001; /* 모달 내용이 배경보다 위에 뜨게 설정 */
}

/* Close 버튼 (엑스) 스타일 */
.modal-close {
    color: #aaa;
    font-size: 40px; /* 엑스 버튼 크기 키우기 */
    font-weight: bold;
    position: absolute;
    top: 155px;
    right: 545px;
    cursor: pointer;
    z-index: 1002;
}

.modal-close:hover,
.modal-close:focus {
    color: #000; 
    text-decoration: none;
    cursor: pointer;
}


/* 기존 스타일 적용 */
.form-wrapper {
    background-color: #ffffff;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out;
}

.title {
    font-size: 28px;
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1;
    min-width: 250px;
}

.form-label {
    display: block;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.3s, transform 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #6f6df4;
    outline: none;
    transform: scale(1.02);
}

.form-textarea {
    resize: none;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6f6df4, #4c46f5);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.submit-button:hover {
    background: linear-gradient(135deg, #4c46f5, #6f6df4);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
