/* contact7 20251209*/
/* -----------------------------------------------------------
   페스트북 PRO 페이지 Contact Form 7 (최종 수정본: 꽉 찬 너비)
   Target ID: wpcf7-f5611-p3818-o1
----------------------------------------------------------- */

/* 1. 폼 스타일 (꽉 찬 너비 + 오리지널 디자인) */
#wpcf7-f5611-p3818-o1 form.wpcf7-form {
    width: 100%;         /* 부모 요소 너비에 맞춤 */
    max-width: 100%;     /* 600px 제한 해제 -> 꽉 차게 변경 */
    margin: 0 auto;
    padding: 25px 20px 20px 20px; /* 내부 여백을 조금 더 주어 안정감 확보 */
    background-color: #f9f9f9;    /* 원래 배경색 */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Noto Sans KR', sans-serif;
    box-sizing: border-box; /* 패딩이 너비를 넘지 않도록 설정 */
}

/* 2. 레이블 스타일 */
#wpcf7-f5611-p3818-o1 label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* 3. 입력창 공통 스타일 */
#wpcf7-f5611-p3818-o1 input[type="text"],
#wpcf7-f5611-p3818-o1 input[type="email"],
#wpcf7-f5611-p3818-o1 textarea,
#wpcf7-f5611-p3818-o1 input[type="file"] {
    width: 100%;
    padding: 12px; /* 터치하기 좋게 살짝 키움 */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #fff;
}

/* 4. 텍스트 박스 높이 (120px) */
#wpcf7-f5611-p3818-o1 textarea {
    height: 120px; 
    resize: vertical;
}

/* 5. 제출 버튼 스타일 */
#wpcf7-f5611-p3818-o1 input[type="submit"] {
    background-color: #007BFF;
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}
#wpcf7-f5611-p3818-o1 input[type="submit"]:hover {
    background-color: #0056b3;
}

/* -------------------------------------------------------
   [여백 제거 패치] 
------------------------------------------------------- */

/* 1. 성함/필명 위쪽 불필요한 여백 제거 */
#wpcf7-f5611-p3818-o1 form.wpcf7-form > p:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2. 첨부파일 위쪽 거대한 공백(숨겨진 UTM 필드 공간) 제거 */
#wpcf7-f5611-p3818-o1 p:has(input[type="hidden"]) {
    display: none !important;
}

/* 구형 브라우저 및 일반적인 Hidden 필드 처리 */
#wpcf7-f5611-p3818-o1 input[type="hidden"],
#wpcf7-f5611-p3818-o1 input[type="hidden"] + br {
    display: none !important;
    line-height: 0 !important;
    margin: 0 !important;
    height: 0 !important;
}

/* 첨부파일 입력창 자체 여백 미세 조정 */
#wpcf7-f5611-p3818-o1 input[type="file"] {
    margin-top: 0; 
}

/* 안내 문구(Placeholder) 스타일 */
#wpcf7-f5611-p3818-o1 textarea::placeholder {
    color: #a5a5a5;
    font-weight: 400;
    font-size: 13px;
    opacity: 1;
}








/* 전체 사이트 링크 스타일 */
a {
    color: black; /* Black text color for links */
    text-decoration: none; /* Remove default underline */
    border-bottom: 1px solid #0080FF; /* Thin blue underline */
}

/* Hover effect for all links */
a:hover {
    color: #0080FF; /* Change text color on hover */
    border-bottom: 1px solid #0080FF; /* Keep underline color on hover */
}

/* 푸터 등 특정 블록은 예외 */

.wp-block-template-part  a,.wp-block-group.alignfull.has-foreground-background-color.has-background.has-source-sans-pro-font-family.is-layout-constrained.wp-block-group-is-layout-constrained a,
.elementor-widget-container a {
    color: inherit; /* Restore default styles */
    border-bottom: none; /* Remove underline */
}

.wp-block-columns.has-background-color.has-text-color.has-normal-font-size.is-layout-flex.wp-container-core-columns-is-layout-15.wp-block-columns-is-layout-flex a {
    color: white !important; /* Explicitly set the color */
    text-decoration: none !important; /* Remove underline */
	border-bottom: 0px  !important;
}

/* 특정 블록들 밑줄없애기 */
.wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-16.wp-block-columns-is-layout-flex a,
.wp-block-image.size-full.has-lightbox.lightbox-7 a {
    color: inherit; /* Set link text color to black */
    text-decoration: none; /* Remove default underline */
    border-bottom: 0px 
}

/* 스크롤 버튼. 먹히려면 해당 페이지에 custom html 넣어야 함 */

.scroll-button {
  display: inline-block;
  margin: 5px 0;
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  position: fixed;
  right: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 1000;
}

.scroll-button[href="#top"] {
  bottom: 60px; /* Button for scrolling to top */
}

.scroll-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}