/* Contact 섹션 전체 컨테이너 */
.contact-section {
    position: relative; /* 토스트 알림의 기준점 역할을 위해 추가 */
    width: 100%;
    padding: 20px 0px;
    box-sizing: border-box;
    background: #F7F8F9;
    display: flex;
    justify-content: center;
}

/* 내부 콘텐츠 wrapper */
.contact-content-wrapper {
    width: 100%;
    max-width: 1800px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

/* 좌측 정보 영역 */
.contact-info {
    flex: 1; /* 가변 너비 */
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contact-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 70px;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    top: 20px;
    left: 10px;
}

.contact-details p {
    font-weight: 800;
    font-size: 20px;
    line-height: 35px;
    letter-spacing: -0.01em;
    color: #000000;
    margin: 0 0 35px 0;
    position: relative;
    top: 2 0px;
    left: 10px;
}

.contact-details p span {
    display: block;
    font-weight: 400; /* 일반 텍스트는 보통 굵기 */
}

/* 우측 폼 영역 */
.contact-form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 120px; /* 이 값을 조절하여 높낮이를 변경하세요. */
}

.form-row {
    display: flex;
    gap: 40px; /* 폼 그룹 간의 가로 간격 */
}

.form-group {
    flex: 1; /* 행 내에서 동일한 너비를 차지 */
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex-basis: 100%; /* 한 행을 모두 차지 */
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000000;
    background-color: transparent;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 35px;
    outline: none;
    font-family: 'Pretendard', sans-serif;
}

.form-group textarea {
    resize: none; /* 크기 조절 비활성화 */
    height: 36px; /* 초기 높이 */
}

.form-group textarea#message {
    height: 72px; /* 기존 36px의 2배 */
}

/* 플레이스홀더 텍스트 스타일 */
::placeholder {
    color: #000000;
    opacity: 1; /* Firefox */
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #000000;
}
::-ms-input-placeholder { /* Microsoft Edge */
   color: #000000;
}


.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 40px;
}

.send-button {
    background: none;
    border: none;
    padding:  0px 0px;
    cursor: pointer;
    line-height: 0; /* 이미지가 추가적인 공간을 차지하지 않도록 설정 */
}

.send-button .hover {
    display: none;
}

.send-button:hover .default {
    display: none;
}

.send-button:hover .hover {
    display: inline;
}

.send-button img {
    width: 130px; /* 필요에 따라 크기 조절 */
    height: auto;
}

/* 토스트 알림 스타일 */
.toast-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
}

.toast-notification.success {
    background-color: rgba(0, 128, 0, 0.8); /* Green for success */
}

.toast-notification.error {
    background-color: rgba(255, 0, 0, 0.8); /* Red for error */
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-popup-img {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.popup-message {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
}

.popup-user-input {
    text-align: left;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.popup-input-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.popup-input-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.popup-input-content p strong {
    font-weight: 600;
    color: #333;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.email-action {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 5px;
}

#email-link {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}

.copy-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #0056b3;
}

#copy-content-btn {
    background-color: #28a745;
}

#copy-content-btn:hover {
    background-color: #218838;
}

/* 복사 버튼 툴팁 스타일 */
.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.email-action,
.popup-actions {
    position: relative;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .contact-content-wrapper {
        flex-direction: column; /* 세로로 쌓음 */
        align-items: center;
        gap: 40px;
    }
    .contact-info, .contact-form {
        width: 100%;
        max-width: 800px; /* 콘텐츠가 너무 넓어지는 것을 방지 */
    }
    .contact-title {
        font-size: 80px;
        top: 0;
        left: 0;
        text-align: center;
    }
    .contact-details {
        text-align: center;
    }
    .contact-form {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .contact-section {
    position: relative; /* 토스트 알림의 기준점 역할을 위해 추가 */
    width: 100%;
    padding: 20px 10px;

    }
    .contact-title {
        font-size: 48px;
    }
    .contact-details p {
        font-size: 18px;
        line-height: 1.6;
        margin: 0 0 20px 0;
        left: 0;
    }
    .form-row {
        flex-direction: column; /* 세로로 쌓음 */
        gap: 20px;
    }
    .form-group input, .form-group textarea {
        font-size: 16px;
    }
    .form-actions {
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 0;
    }
    .send-button img {
        width: 100px;
    }
}