/* ============================================================
   OCB Italy — Contact Modal (Scrivici)
   Caricato su tutte le pagine del sito. Stile coerente con
   Media Kit modal esistente su sponsors.html.
   ============================================================ */

.cm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cm-modal[aria-hidden="false"] { display: flex; }

.cm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cm-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: cmIn .28s cubic-bezier(.16,.75,.3,1);
}

@keyframes cmIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cm-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  transition: background .2s, color .2s;
}
.cm-modal-close:hover { background: #f4f4f4; color: #1f2029; }

.cm-modal-content { padding: 40px 36px 32px; }

.cm-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #1f2029;
  margin: 0 0 8px;
  line-height: 1.2;
}
.cm-modal-sub {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.5;
}

.cm-form-group { margin-bottom: 16px; }
.cm-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #1f2029;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cm-form-group input,
.cm-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2029;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}
.cm-form-group input:focus,
.cm-form-group textarea:focus {
  outline: none;
  border-color: #F58529;
  background: #fff;
}
.cm-form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Honeypot anti-spam: visivamente nascosto ma non con display:none */
.cm-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cm-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #F58529;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  margin-top: 6px;
}
.cm-submit:hover:not(:disabled) {
  background: #E56F1A;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 133, 41, 0.3);
}
.cm-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cm-feedback {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}
.cm-feedback.cm-success {
  display: block;
  background: #e7f7ec;
  color: #1f7a36;
}
.cm-feedback.cm-error {
  display: block;
  background: #fde8e8;
  color: #a71e1e;
}

.cm-privacy-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}
.cm-privacy-note a { color: #F58529; text-decoration: none; }
.cm-privacy-note a:hover { text-decoration: underline; }

/* Icona mail nel footer (stile coerente con Instagram e WhatsApp) */
.social-btn.social-btn--mail { background: #4A90E2; cursor: pointer; }
.social-btn.social-btn--mail:hover { box-shadow: 0 6px 20px rgba(74, 144, 226, 0.35); }

@media (max-width: 600px) {
  .cm-modal-content { padding: 32px 22px 22px; }
  .cm-modal-title { font-size: 20px; }
}
