/* common.css 또는 각 페이지 CSS 공통 적용 */
html, body {
    height: 100%; /* 전체 높이를 브라우저 높이에 맞춤 */
    margin: 0;
}

body {
    display: flex;
    flex-direction: column; /* 위에서 아래로 정렬 */
}

main {
    flex: 1; /* 남는 모든 공간을 차지하여 푸터를 아래로 밀어냄 */
}
.message {width: 100%; padding: 150px 0 0; }
.message .containder {
    max-width: 1200px; /* 최대 폭 제한 */
    margin: 0 auto;    /* 좌우 마진을 auto로 주어 가운데 정렬 */
    padding: 0 20px;   /* 모바일에서 양옆이 딱 붙지 않게 여백 추가 */
    text-align: center; /* 텍스트도 가운데 정렬하고 싶을 경우 */
}
.message p{line-height: 1.6; word-break: keep-all; }
.message h3 {margin-top:40px; color: #ff4d4d; text-align: center; }
.contact-section { padding: 100px 0; background: #fff; }

.contact-form {
    max-width: 600px;
    margin: 50px auto 0;
}

.form-group { margin-bottom: 20px; }

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #333;
}

.contact-form textarea { height: 150px; resize: vertical; }

#submit-btn {
    width: 100%;
    padding: 15px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#submit-btn:hover { background: #555; }
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    bottom: -100px; /* 처음에는 화면 아래에 숨김 */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    z-index: 11000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.toast.show {
    bottom: 50px; /* 활성화 시 위로 올라옴 */
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

#toast-icon {
    font-size: 20px;
}

footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    /* 추가적인 스타일들... */
}

/* ============================================================
   1. 태블릿 및 작은 데스크탑 (1024px 이하)
   ============================================================ */
@media (max-width: 1024px) {
     .message .containder { max-width: 640px; }
}
/* ============================================================
   1. 태블릿 및 작은 데스크탑 (768px 이하)
   ============================================================ */
@media (max-width: 768px) {
    .message .containder { max-width: 640px; }
    
}