/* HC Template Gate — modale + bouton CTA */
.hctg-wrap { margin: 1.5rem 0; }

.hctg-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border: none;
  background: linear-gradient(135deg, #e76f00 0%, #e63946 100%);
  color: #fff; font-weight: 600; font-size: 16px;
  border-radius: 10px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(231, 111, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.hctg-trigger:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(231, 111, 0, 0.4); }
.hctg-trigger-icon { font-size: 18px; }

.hctg-note { font-size: 13px; color: #666; margin: 8px 0 0; }

.hctg-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.hctg-modal[data-open="true"] { opacity: 1; pointer-events: auto; }

.hctg-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 31, 75, 0.7);
  backdrop-filter: blur(4px);
}
.hctg-modal-card {
  position: relative; background: #fff;
  max-width: 460px; width: 100%;
  border-radius: 14px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-height: 90vh; overflow-y: auto;
}
.hctg-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none; cursor: pointer;
  font-size: 28px; color: #999; line-height: 1; padding: 4px 10px;
  font-family: inherit;
}
.hctg-close:hover { color: #333; }

.hctg-modal-card h3 {
  margin: 0 0 8px; color: #0f1f4b;
  font-size: 22px; font-weight: 700;
  line-height: 1.3; padding-right: 28px;
}
.hctg-format-line { font-size: 13px; color: #666; margin: 0 0 14px; }
.hctg-desc { font-size: 14px; color: #444; margin: 0 0 18px; line-height: 1.5; }

.hctg-form label {
  display: block; margin: 0 0 14px;
  font-size: 13px; color: #333; font-weight: 500;
}
.hctg-form label > span { display: block; margin: 0 0 5px; }
.hctg-form input[type="text"],
.hctg-form input[type="email"] {
  width: 100%; padding: 11px 13px;
  border: 1px solid #d5d5d5; border-radius: 8px;
  font-size: 15px; font-family: inherit;
  background: #fafafa; transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.hctg-form input[type="text"]:focus,
.hctg-form input[type="email"]:focus {
  outline: none; border-color: #24449a; background: #fff;
}

.hctg-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0 16px; font-size: 13px; color: #555;
  line-height: 1.45; font-weight: 400;
}
.hctg-consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

.hctg-submit {
  width: 100%; padding: 14px; border: none;
  background: linear-gradient(135deg, #e76f00 0%, #e63946 100%);
  color: #fff; font-weight: 600; font-size: 16px;
  border-radius: 10px; cursor: pointer; font-family: inherit;
  transition: opacity 0.15s ease;
}
.hctg-submit:hover { opacity: 0.92; }
.hctg-submit[disabled] { opacity: 0.5; cursor: not-allowed; }

.hctg-status {
  margin: 12px 0 0; font-size: 14px;
  min-height: 18px; line-height: 1.45;
}
.hctg-status[data-state="success"] { color: #0a7c2c; }
.hctg-status[data-state="error"]   { color: #c12727; }
.hctg-status[data-state="loading"] { color: #666; }

@media (max-width: 480px) {
  .hctg-modal-card { padding: 22px; border-radius: 12px; }
  .hctg-modal-card h3 { font-size: 19px; }
  .hctg-trigger { width: 100%; justify-content: center; }
}
