/* ============================================================
   VI Feerie — Trang Liên hệ
   Tiền tố class: ct
   ============================================================ */

/* --- Phần mở đầu --- */
.ct-intro {
  text-align: center;
  padding-bottom: 0;
}

.ct-intro .section__title {
  max-width: 600px;
  margin: 0 auto;
}

.ct-intro .section__desc {
  max-width: 560px;
  margin: 10px auto 0;
}

/* --- Lưới 2 cột --- */
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* --- Kênh liên hệ --- */
.ct-channel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ct-channel:first-child {
  padding-top: 0;
}

.ct-channel:last-of-type {
  border-bottom: none;
}

.ct-channel__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.ct-channel__icon svg {
  width: 20px;
  height: 20px;
}

.ct-channel__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ct-channel__body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.ct-channel__body a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-channel__body a:hover {
  color: var(--brand-deeper);
}

/* --- Mạng xã hội --- */
.ct-socials {
  display: flex;
  gap: 12px;
  padding-top: 20px;
}

.ct-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.ct-social svg {
  width: 18px;
  height: 18px;
}

.ct-social:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-tint);
}

/* --- Form liên hệ --- */
.ct-form-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.ct-form__heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.ct-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
}

.ct-form__label:first-of-type {
  margin-top: 0;
}

.ct-form__label span {
  color: var(--brand-deep);
}

/* Shared input styles from the HTML reference. */
.vff-input,
.vff-select,
.vff-textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.vff-input:focus,
.vff-select:focus,
.vff-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 171, 189, 0.18);
}

.vff-input::placeholder,
.vff-textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.vff-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b7a70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.vff-textarea {
  resize: vertical;
  min-height: 100px;
}

.ct-form .btn {
  margin-top: 20px;
}

.ct-form__thanks {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--brand-tint);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--brand-deep);
  text-align: center;
}

/* Advanced Forms fields replace the reference form's demo inputs. */
.vifeerie-contact .ct-form-wrap .af-form .acf-fields {
  border: 0;
  background: transparent;
}

.vifeerie-contact .ct-form-wrap .af-form .acf-field {
  float: none;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.vifeerie-contact .ct-form-wrap .af-form .acf-label {
  margin: 0 0 6px;
}

.vifeerie-contact .ct-form-wrap .af-form .acf-label label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.vifeerie-contact .ct-form-wrap .af-form .acf-input input,
.vifeerie-contact .ct-form-wrap .af-form .acf-input select,
.vifeerie-contact .ct-form-wrap .af-form .acf-input textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: var(--bg);
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.vifeerie-contact .ct-form-wrap .af-form .acf-input input:focus,
.vifeerie-contact .ct-form-wrap .af-form .acf-input select:focus,
.vifeerie-contact .ct-form-wrap .af-form .acf-input textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 171, 189, 0.18);
}

.vifeerie-contact .ct-form-wrap .af-form .acf-input textarea {
  min-height: 120px;
  resize: vertical;
}

.vifeerie-contact .ct-form-wrap .af-form .af-submit {
  margin: 20px 0 0;
  padding: 0;
}

.vifeerie-contact .ct-form-wrap .af-form .af-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-deep);
  box-shadow: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.vifeerie-contact .ct-form-wrap .af-form .af-submit-button:hover {
  background: var(--brand-deeper);
}

.vifeerie-contact .ct-form-wrap .af-form .af-success,
.vifeerie-contact .ct-form-wrap .af-form .acf-notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand-deep);
}

/* --- Bản đồ --- */
.ct-map {
  padding-top: 0;
}

.ct-map__frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.ct-map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 320px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--muted);
}

.ct-map__placeholder svg {
  width: 36px;
  height: 36px;
  color: var(--brand-light);
}

.ct-map__placeholder p {
  font-size: 14px;
}

/* ============== Responsive ============== */

/* Tablet */
@media screen and (max-width: 900px) {
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Phablet */
@media screen and (max-width: 620px) {
  .ct-form-wrap {
    padding: 28px 20px;
  }

  .ct-intro .section__title {
    font-size: 28px;
  }
}

/* Mobile nhỏ */
@media screen and (max-width: 480px) {
  .ct-form-wrap {
    padding: 24px 16px;
  }

  .ct-intro .section__title {
    font-size: 24px;
  }

  .ct-map__placeholder {
    height: 220px;
  }

  .ct-map__frame {
    height: 260px;
  }
}
