section {
    padding: 40px 20px;
    margin-bottom: 40px;
    min-height: 300px;
    box-sizing: border-box;
}

.reservation-section {
    background-color: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* 질문 영역 */
.question-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.question-area p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.type-button {
    padding: 14px 32px;
    margin: 10px;
    font-size: 17px;
    font-weight: 500;
    color: #ffffff;
    background-color: #2c3e50; /* 기본: 진회색 */
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.type-button:hover {
    background-color: #1abc9c; /* 강한 대비 색상 (에메랄드톤) */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* 폼 스타일 */
.reservation-form {
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
    padding: 0 20px;
    height: auto;
}

.reservation-form.visible {
    opacity: 1;
    margin-top: 20px;
}

.hidden {
    display: none;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
}

input, button[type="submit"] {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
/*
button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #45a049;
}
*/


#area-details {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fafafa;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.notice-text {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}

.hidden {
    display: none;
}


#map { width: 50%; height: 500px; margin-left: 25%; }
#map_demolition { width: 50%; height: 500px; margin-left: 25%; }
#address { margin-top: 10px; font-size: 16px; }

.map-container {
    width: 100%;
    height: 300px; /* 또는 필요 시 400px 등으로 조정 */
    background-color: #eee; /* 디버깅용 배경 */
    border: 1px solid #ccc;
    box-sizing: border-box;
    position: relative;
}

@media screen and (max-width: 768px) {
    #map, #map_demolition {
      width: 100%;
      margin-left: 0;
      height: 300px; /* 모바일용 높이도 조정 가능 */
    }
  }

.address-info {
    font-size: 14px;
    color: #444;
    margin-top: 8px;
    line-height: 1.6;
}

.overlay {
    position: relative;
    background: #ffffff;
    border: 1px solid #555;
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 400;
    color: #222;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.5;
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
  }

  .overlay strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
  }

  .overlay::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #ffffff;
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1));
  }

.customoverlay {
    position: relative;
    bottom: 40px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 320px; /* ✅ 넉넉하게 */
    width: max-content; /* ✅ 내용에 따라 */
    word-break: keep-all; /* ✅ 단어 단위 줄바꿈 */
    white-space: normal;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
    transition: transform 0.3s ease;
}

.customoverlay div {
    margin-bottom: 6px;
}

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


.address-info {
    font-size: 14px;
    color: #444;
    margin-top: 10px;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(10px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.address-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.address-input-wrapper input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

.address-input-wrapper input[type="text"]:focus {
    border-color: #2c3e50;
}

#address-search-btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

#address-search-btn:hover {
    background-color: #1abc9c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 아래 항목들도 세로 간격 정리 */
label {
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 6px;
    display: block;
    font-size: 15px;
}

select,
input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

select:focus,
input[type="date"]:focus {
    border-color: #2c3e50;
}

.address-input-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.address-input-vertical input[type="text"] {
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

.address-input-vertical input[type="text"]:focus {
    border-color: #2c3e50;
}

.address-search-btn {
    width: fit-content;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

.address-search-btn:hover {
    background-color: #1a252f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#input_room_size {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

.date-time-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: flex-start; /* 위쪽 정렬 */
}

.date-picker-wrapper,
.time-select-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.date-picker-wrapper input[type="text"],
.time-select-row select {
    height: 44px; /* ✅ 통일된 높이 */
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
}

.time-select-row {
    display: flex;
    gap: 10px;
}

.phone-agree {
    margin-top: 0px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

#phone {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#phone:focus {
    border-color: #2c3e50;
}

.upload-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.upload-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: #333;
}

.upload-hint {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

input[type="file"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fafafa;
    width: 100%;
    cursor: pointer;
}

.textarea-section {
    margin-bottom: 20px;
}

.textarea-section label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: #333;
}

.textarea-section textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.textarea-section textarea:focus {
    border-color: #2c3e50;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.file-item img {
    width: 100px;
    height: 100px;
    object-fit: contain; /* ✅ 이미지 전체가 잘리지 않고 보이게 */
    border-radius: 6px;
    background-color: #f9f9f9; /* 여백 공간이 생길 수 있으므로 배경 색 추가 */
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 4px;
}

.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

/* 숨기기 */
input[type="file"] {
    display: none;
}

/* 커스텀 버튼 라벨 */
.custom-file-label {
    display: inline-block;
    padding: 10px 16px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

.custom-file-label:hover {
    background-color: #1abc9c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.remove-btn {
    background-color: #e74c3c; /* ✅ 좀 더 강렬하고 전문적인 느낌 */
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-btn:hover {
    background-color: #ff6b6b; /* ✅ hover 시 조금 더 어두운 강조 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.remove-btn .icon {
    font-size: 14px;
    line-height: 1;
}

.submit-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 0 32px; /* 좌우 여백만 유지 */
    height: 60px;    /* ✅ 버튼 높이 명시적으로 크게 */
    font-size: 24px;
    font-weight: 1000;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    min-width: 100%;
}

.submit-btn:hover {
    background-color: #e74c3c;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.submit-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

