/**
 * OSFRJ Contato - Estilos do Widget para Elementor (Fundo Claro / Branco)
 * Plugin: OSFRJ Intervenções Fabrica de Plugins
 */

.osfrj-contact-widget {
  width: 100%;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

.osfrj-contact-widget * {
  box-sizing: border-box;
}

/* ==========================================================
   CARD DO FORMULÁRIO
========================================================== */
.osfrj-contact-card {
  max-width: 720px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.osfrj-contact-card.flat-layout {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ==========================================================
   CABEÇALHO DO WIDGET
========================================================== */
.osfrj-contact-header {
  margin-bottom: 28px;
}

.osfrj-contact-header.text-left {
  text-align: left;
}
.osfrj-contact-header.text-center {
  text-align: center;
}
.osfrj-contact-header.text-right {
  text-align: right;
}

.osfrj-contact-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.osfrj-contact-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================
   CAMPOS DO FORMULÁRIO (INPUTS & TEXTAREA)
========================================================== */
.osfrj-contact-form {
  display: flex;
  flex-direction: column;
}

.osfrj-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .osfrj-contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.osfrj-contact-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.osfrj-contact-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
  display: block;
}

.osfrj-contact-input,
.osfrj-contact-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14.5px;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.osfrj-contact-input::placeholder,
.osfrj-contact-textarea::placeholder {
  color: #94a3b8;
}

.osfrj-contact-input:focus,
.osfrj-contact-textarea:focus {
  background-color: #ffffff;
  border-color: #036845;
  box-shadow: 0 0 0 3px rgba(3, 104, 69, 0.15);
}

.osfrj-contact-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

/* ==========================================================
   BOTÃO DE ENVIO
========================================================== */
.osfrj-contact-action {
  margin-top: 8px;
}

.osfrj-contact-widget .osfrj-contact-submit-btn,
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff !important;
  background: #036845 !important;
  background-color: #036845 !important;
  border: 1px solid #036845 !important;
  box-shadow: none !important;
  transition: background 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.osfrj-contact-widget button.osfrj-contact-submit-btn:focus,
body .osfrj-contact-widget button.osfrj-contact-submit-btn:hover,
body .osfrj-contact-widget button.osfrj-contact-submit-btn:focus,
.elementor-widget-osfrj_contato .osfrj-contact-submit-btn:hover,
.elementor-widget-osfrj_contato .osfrj-contact-submit-btn:focus {
  border-color: #013523 !important;
  color: #ffffff !important;
  transform: scale(0.99);

.osfrj-contact-widget .osfrj-contact-submit-btn.btn-full-width,
body .osfrj-contact-widget button.osfrj-contact-submit-btn.btn-full-width {
  width: 100% !important;
}

/* ==========================================================
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;

@keyframes osfrjFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.osfrj-contact-status.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.osfrj-contact-status.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsividade Mobile */
@media (max-width: 640px) {
  .osfrj-contact-card {
    padding: 24px 18px;
    border-radius: 12px;
  }
  .osfrj-contact-title {
    font-size: 22px;
  }
  .osfrj-contact-subtitle {
    font-size: 14px;
  }
}
