/* Página de contato + formulário (alinhado ao modal do Dicionário Informal) */

.contact-page-layout {
  background: var(--surface);
  min-height: 600px;
  padding: 10px 12px 80px;
  box-sizing: border-box;
  max-width: 640px;
  margin: 0 auto;
}

.contact-page-back {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.contact-page-back a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-page-back a:hover {
  text-decoration: underline;
}

.contact-page-title {
  margin: 0 0 0.35rem;
  font: bold 26px/1.25 var(--font);
  color: var(--text);
}

.contact-page-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-fmodal-wrap {
  max-width: 520px;
}

.contact-fmodal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.fmodal-header {
  padding: 1.1rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border);
}

.fmodal-tabs {
  display: flex;
  gap: 0;
  flex: 1;
}

.fmodal-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  margin-bottom: -1.5px;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.fmodal-tab-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.fmodal-tab-icon svg {
  display: block;
}

.fmodal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.fmodal-body {
  padding: 1.5rem;
}

.fform-group {
  margin-bottom: 1rem;
}

.fform-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.fform-hint strong {
  color: var(--text);
  font-weight: 700;
}

.fform-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.fform-input,
.fform-textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  background: var(--surface);
}

.fform-input:focus,
.fform-textarea:focus {
  border-color: var(--accent);
}

.fform-textarea {
  resize: vertical;
  min-height: 88px;
}

.fform-submit {
  width: 100%;
  padding: 0.78rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  margin-top: 0.25rem;
  font-family: inherit;
}

.fform-submit:hover {
  opacity: 0.92;
  background: var(--accent-hover);
}

.fform-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fmodal-msg {
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.83rem;
  margin-bottom: 1rem;
}

.fmodal-msg.error {
  background: #fff0f0;
  border: 1.5px solid #ffc5c5;
  color: var(--danger);
}

.fmodal-success-view {
  text-align: center;
  padding: 2rem 1.5rem;
}

.fmodal-success-icon {
  margin-bottom: 0.75rem;
  line-height: 0;
  color: #1a7a3f;
}

.fmodal-success-icon svg {
  display: block;
  margin: 0 auto;
}

.fmodal-success-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.fmodal-success-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .contact-page-layout {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fmodal-body {
    padding: 1rem;
  }
}
