/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cnm-primary: #FF9D01;
  --cnm-primary-dark: #E68900;
  --color-text: #333;
  --color-gray: #888;
  --color-border: #DBE0E9;
  --color-bg: #F7F7F7;
  --color-white: #FFF;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  min-height: 100vh;
  color: var(--color-text);
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
}

/* ===== WRAPPER PRINCIPAL ===== */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ===== CONTAINER PRINCIPAL ===== */
.contato-container {
  background: var(--color-white);
  max-width: 500px;
  width: 100%;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* ===== LOGO E TÍTULO ===== */
.logo-container {
  margin-bottom: 15px;
}

.logo-cnm {
  width: 90px;
  height: auto;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.5;
  margin-bottom: 30px;
}

/* ===== FORMULÁRIO ===== */
.contato-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input::placeholder {
  color: var(--color-gray);
  font-size: 18px;
}

.form-input:focus {
  border-color: var(--cnm-primary);
}

.form-input.error {
  border-color: #F44336;
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ===== POLÍTICAS ===== */
.form-policies {
  font-size: 0.7rem;
  color: #666;
  line-height: 1.4;
  margin-top: 5px;
}

.form-policies a {
  color: var(--cnm-primary);
  text-decoration: none;
}

.form-policies a:hover {
  text-decoration: underline;
}

/* ===== BOTÃO ===== */
.btn-submit {
  margin-top: 10px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--cnm-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover:not(.disabled) {
  background: var(--cnm-primary-dark);
}

.btn-submit.disabled {
  background: #D3D3D3;
  color: #A0A0A0;
  cursor: not-allowed;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.btn-submit.activated {
  animation: pop 0.5s ease;
}

@keyframes pop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-message {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: bold;
  animation: fade 1.5s infinite;
}

@keyframes fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== DIVISOR ===== */
.divider {
  margin: 25px 0;
  font-size: 0.9rem;
  color: var(--color-gray);
  position: relative;
  text-align: center;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: var(--color-border);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* ===== SUPORTE ===== */
.suporte-section {
  text-align: center;
}

.suporte-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}

.link-suporte {
  color: var(--cnm-primary);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
}

.link-suporte:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .main-content {
    padding: 15px;
  }
  
  .contato-container {
    padding: 30px 20px;
  }
  
  .page-title {
    font-size: 1.6rem;
  }
  
  .form-input {
    font-size: 16px;
  }
}


/* ------------- AVISO DE COOKIES ------------- */

#cnm-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1140px;
  height: 167px;
  flex-shrink: 0;
  background: #FBFBFB;
  border-radius: 12px;
  padding: 20px 45px;
  display: flex;
  flex-direction: column;
  z-index: 999999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* TÍTULO */
#cnm-cookie-banner h3 {
  width: 1050px;
  height: 17px;
  flex-shrink: 0;
  color: #000;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin: 0 auto 10px auto;
}

/* CONTAINER DO CONTEÚDO */
.cnm-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex: 1;
}

/* LEFT SIDE */
.cnm-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* TEXTO */
#cnm-cookie-banner p {
  width: 719px;
  height: 54px;
  color: rgba(0, 0, 0, 0.56);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0 auto;
}

#cnm-cookie-banner p a {
  color: #316CF4;
  text-decoration: none;
}

#cnm-cookie-banner p a:hover {
  text-decoration: underline;
}

/* CHECKBOX LIST */
.cnm-cookie-options {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0 auto;
  justify-content: center;
  width: 719px;
}

.cnm-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  min-width: fit-content;
}

/* Label Necessários */
.cnm-check.necessary {
  color: rgba(0, 0, 0, 0.40);
}

/* Demais labels */
.cnm-check:not(.necessary) {
  color: rgba(0, 0, 0, 0.56);
}

/* Checkbox personalizado - MÉTODO SIMPLIFICADO */
.cnm-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 17px;
  height: 17px;
  border: 2px solid #EABE6D;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
}

.cnm-check input[type="checkbox"]:checked {
  background: #EABE6D;
  border-color: #EABE6D;
}

/* Check simples usando border */
.cnm-check input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Checkbox Necessários (disabled) */
.cnm-check.necessary input[type="checkbox"]:disabled {
  cursor: not-allowed;
  border-color: rgba(224, 153, 19, 0.30);
  background: rgba(224, 153, 19, 0.30);
  opacity: 1;
}

.cnm-check.necessary input[type="checkbox"]:disabled::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* BUTTONS */
.cnm-buttons {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}

.cnm-buttons-top {
  display: flex;
  gap: 14px;
}

.cnm-btn {
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-style: normal;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.cnm-btn:hover {
  opacity: 0.9;
}

/* Recusar tudo */
.cnm-btn.reject-all {
  width: 138px;
  height: 33px;
  background: #D9D9D9B2;
  color: rgba(0, 0, 0, 0.70);
  font-size: 16px;
  font-weight: 400;
}

/* Aceitar tudo */
.cnm-btn.accept-all {
  width: 138px;
  height: 33px;
  background: rgba(224, 153, 19, 0.61);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
}

/* Aceitar seleção */
.cnm-btn.accept-selection {
  width: 290px;
  height: 40px;
  background: #0000009C;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* MOBILE */
@media (max-width: 1200px) {
  #cnm-cookie-banner {
    position: fixed !important;
    bottom: 20px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px);
    max-width: 450px;
    height: auto;
    padding: 16px 18px;
    margin: 0 !important;
  }

  #cnm-cookie-banner h3 {
    width: 100%;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .cnm-content-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .cnm-left {
    width: 100%;
    gap: 8px;
  }

  #cnm-cookie-banner p {
    width: 100%;
    height: auto;
    font-size: 11px;
    line-height: 1.4;
  }

  .cnm-cookie-options {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
  }

  .cnm-check {
    gap: 4px;
    font-size: 10px;
    white-space: nowrap;
  }

  .cnm-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
  }

  /* Ajuste do check no mobile */
  .cnm-check input[type="checkbox"]:checked::before,
  .cnm-check.necessary input[type="checkbox"]:disabled::before {
    left: 3px;
    top: 0px;
    width: 3px;
    height: 7px;
    border-width: 0 1.5px 1.5px 0;
  }

  .cnm-buttons {
    width: 100%;
    align-items: stretch;
    gap: 8px;
  }

  .cnm-buttons-top {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .cnm-btn.reject-all,
  .cnm-btn.accept-all {
    flex: 1;
    height: 36px;
    font-size: 12px;
    border-radius: 6px;
  }

  .cnm-btn.accept-selection {
    width: 100%;
    height: 38px;
    font-size: 12px;
    border-radius: 6px;
  }
}

/* MOBILE PEQUENO */
@media (max-width: 480px) {
  #cnm-cookie-banner {
    position: fixed !important;
    bottom: 15px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 30px);
    padding: 14px 16px;
    margin: 0 !important;
  }

  #cnm-cookie-banner h3 {
    font-size: 13px;
  }

  #cnm-cookie-banner p {
    font-size: 10px;
  }

  .cnm-check {
    font-size: 9px;
  }

  .cnm-btn.reject-all,
  .cnm-btn.accept-all {
    font-size: 11px;
    height: 34px;
  }

  .cnm-btn.accept-selection {
    font-size: 11px;
    height: 36px;
  }
}