/* ============================================================
   TNC – Thông Tin Dự Án | ttda-style.css
   SCOPE: .ttda-wrap — tránh xung đột với theme
   ============================================================ */

.ttda-wrap *,
.ttda-wrap *::before,
.ttda-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ttda-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  padding: 36px 60px 60px;
  line-height: 1.4;
}

/* ── HEADER ── */
.ttda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ttda-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: #1a1a1a !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.ttda-btn-gui {
  background: none !important;
  border: none !important;
  color: #c0392b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 !important;
  font-family: inherit !important;
  box-shadow: none !important;
}
.ttda-btn-gui:hover { opacity: 0.7; }

.ttda-divider {
  border: none !important;
  border-top: 1px solid #ccc !important;
  margin-bottom: 36px !important;
}

/* ── OUTER 2-COL GRID ── */
.ttda-outer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0 80px;
}

/* Desktop: cột trái order 1,3 — cột phải order 2,4 */
.ttda-col-left  { grid-column: 1; }
.ttda-col-right { grid-column: 2; }

/* ── SECTION ── */
.ttda-section { margin-bottom: 40px; }

.ttda-section-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

/* ── FIELD ── */
.ttda-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ttda-field label {
  font-size: 12px !important;
  color: #222 !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ttda-field input,
.ttda-field textarea {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 0.2083vw !important;
  background: #f9f9f9 !important;
  outline: none !important;
  resize: none !important;
  box-shadow: none !important;
  font-family: UTM AVO, Arial, sans-serif !important;
  font-size: 0.7291vw !important;
  line-height: normal !important;
  color: #000 !important;
  transition: border-color .15s;
}

.ttda-field input[type="text"],
.ttda-field input[type="email"],
.ttda-field input[type="tel"] {
  height: 1.5vw !important;
  padding: 0 0.4167vw !important;
}

.ttda-field textarea {
  height: 4.5vw !important;
  padding: 0.4167vw !important;
  line-height: 1.5 !important;
}

.ttda-field input:focus,
.ttda-field textarea:focus {
  border-color: #888 !important;
  background: #fff !important;
}

/* ── ROW GRIDS ── */
.ttda-row {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.ttda-row:last-child { margin-bottom: 0; }

.ttda-row.c2 { grid-template-columns: 1fr 1fr; }

.ttda-row-left {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
}

/* ── SECTION 3 ── */
.ttda-sec3-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ttda-sec3-left,
.ttda-sec3-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ttda-sec3-left .ttda-field:nth-child(2),
.ttda-sec3-left .ttda-field:nth-child(3) {
  margin-top: 10px;
}

/* 3 textarea dịch xuống 10px */
.ttda-sec3-right .ttda-field:last-child,
.ttda-row.c2 .ttda-field:has(textarea) {
  padding-top: 10px;
}

/* ── THÔNG BÁO ── */
#ttda-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  display: none;
}

/* ── SUBMIT BOTTOM (mobile) ── */
.ttda-btn-gui-bottom {
  display: none;
  width: 100%;
  margin-top: 28px;
  background: #c0392b !important;
  color: #fff !important;
  border: none !important;
  padding: 13px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px !important;
  cursor: pointer;
  font-family: inherit !important;
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 820px) {
  .ttda-wrap { padding: 20px 16px 40px; }
  .ttda-outer {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
  }
  .ttda-col-left,
  .ttda-col-right { grid-column: 1; }
  .ttda-row.c2 { grid-template-columns: 1fr; }
  .ttda-row-left { grid-template-columns: 80px 1fr; }
  .ttda-sec3-inner { grid-template-columns: 1fr; }
  .ttda-btn-gui { display: none !important; }
  .ttda-btn-gui-bottom { display: block; }

  .ttda-field input[type="text"],
  .ttda-field input[type="email"],
  .ttda-field input[type="tel"] {
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    border-radius: 3px !important;
  }

  .ttda-field textarea {
    height: 80px !important;
    padding: 8px !important;
    font-size: 13px !important;
    border-radius: 3px !important;
  }

  .ttda-sec3-right .ttda-field:last-child,
  .ttda-row.c2 .ttda-field:has(textarea) { padding-top: 0; }

  .ttda-sec3-left .ttda-field:nth-child(2),
  .ttda-sec3-left .ttda-field:nth-child(3) { margin-top: 0; }
}
