@charset "utf-8";
/* 共用樣式 - 業務資訊、表單等 */

/* 業務資訊區塊 */
.agent-info-wrapper {
  margin: calc(1vw + 4px) 0;
  padding-left: calc(0.6vw + 4px);
  align-items: center;
  gap: 8px;

  @media (max-width: 768px) {
    margin: 12px 0;
    padding-left: 8px;
  }
}

#search-house-agent-info.agent-info-wrapper {
  margin: 0;
  padding-left: 0;
  gap: 8px;
  margin-left: 16px;

  @media (max-width: 768px) {
    margin-left: 12px;
  }
}

.agent-img-box {
  width: 80px;
  height: 80px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
}

#search-house-agent-info .agent-img-box {
  width: 40px;
  height: 40px;
}

.agent-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: calc(0.6vw + 4px);
  font-weight: 500;
  color: var(--gray_color);

  .agent-name {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: calc(0.1vw + 4px);
    line-height: 1.2;
  }

  .agent-phone {
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.2;
  }

  .agent-phone a {
    color: var(--gray_color);
    text-decoration: none;
  }

  .agent-phone a:hover {
    color: var(--yellow_color);
  }
}

#search-house-agent-info .agent-info {
  margin-left: 0;
  font-size: 14px;
  gap: 4px;

  .agent-name,
  .agent-phone {
    font-size: 14px;
    margin-bottom: 0;
  }
}

/* 表單樣式 */
.appointment-form {
  padding: 8px 16px;
  background-color: #fffbf3;
  border-radius: 8px;
}

.form-group-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: calc((100% - 2rem) / 2);

  @media (max-width: 768px) {
    width: 100%;
  }
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.form-input,
.form-select {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--yellow_color);
}

.button_bar .button_wrap {
  padding: 0;
  margin-bottom: calc(0.4vw + 4px);
}

.button_bar .button_wrap .btn_primary {
  width: 100%;
  display: block;
  border-radius: 8px;
  padding: calc(0.2vw + 8px) calc(4vw + 19.93878px);
  background-color: var(--yellow_color);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button_bar .button_wrap .btn_primary:hover {
  background-color: #e6a429;
}

.button_bar .button_wrap .btn_primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.button_bar .tip,
.button_bar .tip button {
  text-align: center;
  font-size: clamp(0.85rem, 1.8vw, 0.9rem);
  color: #000;
}

.button_bar .tip button {
  color: rgb(41, 122, 41);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.button_bar .tip button:hover {
  color: rgb(31, 92, 31);
}

.api-message {
  text-align: center;
  font-size: 1rem;
  margin-top: 10px;
}

.api-message.success {
  color: rgb(41, 122, 41);
}

.api-message.error {
  color: rgb(185, 45, 45);
}

/* Modal 樣式 */
.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal h2 {
  font-size: clamp(1rem, 2vw, 2rem);
  text-align: left;
}

.modal-content {
  background: #fff;
  padding: 2em 1.5em 1.5em 1.5em;
  border-radius: 8px;
  position: relative;
  min-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .modal-content {
    min-width: unset;
    width: 90vw;
  }
}

.close {
  position: absolute;
  right: 1em;
  top: 1em;
  cursor: pointer;
  font-size: 1.5em;
  color: #666;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.close:hover {
  color: #000;
}

/* 分享相關按鈕 */
.share-link-edit-btn,
.save-btn,
.share-link-copy-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background-color: var(--yellow_color);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.share-link-edit-btn:hover,
.save-btn:hover {
  background-color: #e6a429;
}

.share-link-edit-btn,
.share-link-copy-btn {
  padding: 8px 16px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.share-link-copy-btn {
  background-color: rgb(0, 98, 0);
}

.share-link-copy-btn:hover {
  background-color: rgb(0, 78, 0);
}

/* 分享相關輔助類別 */
.display_flex {
  display: flex;
}

.gap-2 {
  gap: 0.5rem;
}

.align-items-center {
  align-items: center;
}

.mb-10 {
  margin-bottom: 40px;
}

.lh-1 {
  line-height: 1;
}

/* 全域分享按鈕樣式 */
.float-share-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: var(--yellow_color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.float-share-btn:hover {
  background-color: #e6a429;
}

.float-share-btn .material-symbols-outlined {
  font-size: 24px;
  color: #fff;
}
