/* ============================================================
   NewInform Inquiry Form — prefixed, theme-font based, no external
   font <link> tags (avoids conflicts with active theme classes).
   ============================================================ */

.newinform-container {
  box-sizing: border-box;
  margin: 30px auto;
  width: 100%;
  max-width: 651px;
  background-color: #EBF5FC; /* soft lavender */
  border: 1px solid #e02e3b;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(118, 93, 212, 0.08);
  overflow: hidden;
}

.newinform-container *,
.newinform-container *::before,
.newinform-container *::after {
  box-sizing: border-box;
}

/* Form Content Area */
.newinform-content {
  padding: 32px 32px 0 32px;
}

/* Footer Area */
.newinform-footer {
  padding: 0 32px 20px 32px;
}

/* Field Group */
.newinform-group {
  margin-bottom: 20px;
}

/* Input Labels */
.newinform-group > .newinform-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #636880;
  margin-bottom: 8px;
  font-family: 'IBMPlexSansMedium', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Text, Email, Phone & Textarea Input Styling */
.newinform-group input[type="text"],
.newinform-group input[type="email"],
.newinform-group input[type="tel"],
.newinform-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'IBMPlexSansRegular', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #2c2e3d;
  background-color: #ffffff;
  border: 1px solid #7c7e8c;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newinform-group input::placeholder,
.newinform-group textarea::placeholder {
  color: #8c8f9e;
}

.newinform-group input:focus,
.newinform-group textarea:focus {
  border-color: #fc3441;
  box-shadow: 0 0 0 3px rgba(252, 52, 65, 0.15);
}

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

/* Checkbox Input Styling (Bot & Privacy Checkboxes) */
.newinform-checkbox-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 12px 16px;
  border: 1px solid #7c7e8c;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.newinform-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #fc3441;
  margin-right: 12px;
  flex-shrink: 0;
}

.newinform-checkbox-group a {
  color: #2592fc;
  text-decoration: underline;
  font-family: inherit;
}

.newinform-checkbox-group a:hover {
  color: #1a73e8;
}

/* Bottom Info Card Section */
.newinform-footer-card {
  background-color: #e8e3ff;
  border-top: 1px solid #dbd4fa;
  padding: 24px 32px 32px 32px;
}

/* Privacy group inside footer card: transparent box per design */
.newinform-footer-card .newinform-checkbox-group {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 16px;
}

/* Submit Button Styling */
.newinform-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background-color: #fc3441;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(252, 52, 65, 0.25);
  font-family: 'IBMPlexSansSemiBold', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.newinform-submit-btn:hover {
  background-color: #e02e3b;
}

.newinform-submit-btn:active {
  transform: scale(0.99);
}

.newinform-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Thank You Message Area
   Hidden by default; shown whenever any state class is applied:
   newinform-show (generic), newinform-success (green) or
   newinform-error (red). */
.newinform-thank-you-message {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  font-family: 'IBMPlexSansRegular', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.newinform-thank-you-message.newinform-show,
.newinform-thank-you-message.newinform-success,
.newinform-thank-you-message.newinform-error {
  display: block;
}

.newinform-thank-you-message.newinform-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.newinform-thank-you-message.newinform-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Prevent the theme's article-embed iframe rule (style.css:
   "body.single-post .blog-page .blog-content-info iframe")
   from stretching the reCAPTCHA iframe to full screen.
   Scoped to the newinform form only; leaves other embeds untouched. */
.newinform-form .g-recaptcha,
.newinform-form .g-recaptcha > div {
  overflow: hidden;
}

.newinform-form .g-recaptcha iframe {
  position: relative !important;
  width: 304px !important;
  height: 78px !important;
  max-width: 100% !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}

/* Mobile Responsive Fixes */
@media (max-width: 480px) {
  .newinform-content,
  .newinform-footer-card {
    padding: 20px;
  }
}
