/* Free proposal popup */
.tg-popup[hidden] { display: none; }
.tg-popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 15, 20, .6); animation: tg-popup-fade .25s ease-out; }
.tg-popup-card { position: relative; display: grid; grid-template-columns: 390px 1fr; width: min(800px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); font-family: inherit; }
.tg-popup-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); font-size: 22px; line-height: 1; color: #222; cursor: pointer; }
.tg-popup-close:hover { background: #f3f3f3; }

.tg-popup-side { display: flex; flex-direction: column; gap: 16px; padding: 38px 26px 22px; background: #f3f6fb; }
.tg-popup-badge { align-self: flex-start; padding: 5px 12px; border: 1px solid #ffd2a8; border-radius: 999px; background: #fff; color: #d95a00; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.tg-popup-side h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: #111827; }
.tg-popup-side h2 em { font-style: normal; color: #ff7a00; }
.tg-popup-side > p { margin: 0; font-size: 13px; line-height: 1.5; color: #4b5563; }
.tg-popup-side > p strong { color: #ff7a00; font-weight: 600; }
.tg-popup-get { padding: 14px 16px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.tg-popup-get h3 { margin: 0 0 8px; padding-left: 8px; border-left: 3px solid #ff7a00; font-size: 12px; font-weight: 700; color: #111827; }
.tg-popup-get ul { margin: 0; padding: 0; list-style: none; }
.tg-popup-get li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: #374151; }
.tg-popup-get li i { color: #ff7a00; }
.tg-popup-wa { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 14px; border: 1px solid #dde3ee; border-radius: 10px; background: #eef2f8; animation: tg-wa-bounce 2s ease-in-out infinite; }
.tg-popup-wa strong { display: block; font-size: 12.5px; color: #111827; }
.tg-popup-wa small { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.4; color: #6b7280; }
.tg-popup-wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 8px; background: #25d366; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(37, 211, 102, .4); transition: background .2s; }
.tg-popup-wa-btn i { font-size: 22px; }
.tg-popup-wa-btn:hover { background: #1ebe5a; color: #fff; }
.tg-popup-wa-hint { margin: 0; text-align: center; font-size: 10.5px; line-height: 1.4; color: #4b5563; }
@keyframes tg-wa-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .tg-popup-wa { animation: none; } }
.tg-popup-safe { margin: 0; text-align: center; font-size: 10.5px; color: #4b5563; }
.tg-popup-safe i { margin-right: 4px; color: #ff7a00; }

.tg-popup-main { padding: 34px 32px 28px; }
.tg-popup-main h2 { margin: 0 40px 14px 0; font-size: 20px; font-weight: 700; color: #000; }
.tg-popup-lead { margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: #4b5563; }
.tg-popup-lead strong { color: #222; }
.tg-popup-main form label { display: block; margin-bottom: 14px; font-size: 15px; color: #333; }
.tg-popup-main form label b { color: #e03131; font-weight: 400; }
.tg-popup-main input:not(.tg-popup-hp), .tg-popup-main select, .tg-popup-main textarea { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid #c9ced6; border-radius: 3px; background: #f3f6fa; font-size: 14px; color: #222; box-sizing: border-box; }
.tg-popup-main input:focus, .tg-popup-main select:focus, .tg-popup-main textarea:focus { outline: 2px solid #ff7a59; outline-offset: 0; border-color: #ff7a59; }
.tg-popup-main input.is-invalid, .tg-popup-main select.is-invalid { border-color: #e03131; background: #fff5f5; }
.tg-popup-main textarea { resize: vertical; min-height: 70px; }
.tg-popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.tg-popup-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tg-popup-error { margin: 0 0 12px; font-size: 13px; color: #b42318; }
.tg-popup-submit { padding: 10px 26px; border: 0; border-radius: 3px; background: #ff7a59; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.tg-popup-submit:hover { background: #f4552c; }
.tg-popup-submit[disabled] { opacity: .6; cursor: wait; }
.tg-popup-main.is-done { display: flex; flex-direction: column; justify-content: center; }
.tg-popup-main.is-done > h2, .tg-popup-main.is-done > .tg-popup-lead { display: none; }
.tg-popup-done[hidden] { display: none; }
.tg-popup-done { display: flex; flex-direction: column; align-items: center; padding: 10px 0; text-align: center; }
.tg-popup-done-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 50%; background: #fff1e3; box-shadow: 0 0 0 8px #fff8f0; font-size: 28px; color: #ff7a00; animation: tg-done-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.tg-popup-done h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #111827; }
.tg-popup-done p { max-width: 340px; margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: #4b5563; }
.tg-popup-steps { width: 100%; max-width: 340px; margin: 0 0 26px; padding: 14px 16px; list-style: none; border: 1px solid #eceff4; border-radius: 10px; background: #f8f9fc; text-align: left; }
.tg-popup-steps li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; color: #374151; }
.tg-popup-steps b { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ff7a00; font-size: 12px; font-weight: 700; color: #fff; }
.tg-popup-done .tg-popup-submit { min-width: 140px; border-radius: 6px; }
@keyframes tg-done-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 760px) {
  .tg-popup-card { grid-template-columns: 1fr; }
  .tg-popup-side { display: none; }
  .tg-popup-main { padding: 28px 20px 22px; }
  .tg-popup-grid { grid-template-columns: 1fr; }
}
@keyframes tg-popup-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tg-popup { animation: none; } }
