/* Stile base compatto */
#main_box {
  max-width: 1000px;
  margin: 0 auto 40px;
  font-family: 'Open Sans', sans-serif;
}

@media (max-width: 1036px) {
  #main_box {
    margin: 0 10px;
  }
}

/* Header compatto */
.analyzer-compact-header {
  background: white;
  border-radius: 15px;
  margin: 10px 0 0;
  border: 1px solid #e12f6c;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.header-content {
  position: relative;
  z-index: 2;
}

.analyzer-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.1;
}

.analyzer-subtitle {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 0;
  max-width: 700px;
  line-height: 1.5;
}

/* Badge statistiche */
.stats-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgb(255 255 255);
  backdrop-filter: blur(5px);
  border: 1px solid #e12f6c;
  padding: 8px 15px;
  border-radius: 30px;
  color: #e12f6c;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-badge strong {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Layout principale con due colonne */
.analyzer-content {
  padding: 0 15px;
}

.form-benefits-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  gap: 20px;
}

.form-column, .benefits-column {
  margin-top: 20px;
  flex: 1;
  min-width: 300px;
}

/* Form Card */
.form-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(225, 47, 108, 0.1);
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
  color: #444;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(225, 47, 108, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
  color: black;
}

.form-input:focus {
  outline: none;
  border-color: #e12f6c;
  box-shadow: 0 0 0 3px rgba(225, 47, 108, 0.1);
}

#submitsearch {
  display: block;
  width: fit-content;
  padding: 10px 20px;
  background: white;
  color: #e12f6c;
  border: 1px solid #e12f6c;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 5px 15px rgba(225, 47, 108, 0.2);
  margin: -10px auto 15px;
  text-transform: uppercase;
}

#submitsearch:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(225, 47, 108, 0.3);
}

.form-disclaimer {
  color: #888;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

/* Benefits Column */
.benefits-column {
  display: flex;
  flex-direction: column;
}

.benefits-title {
  font-size: 1.4rem;
  color: #e12f6c;
  font-weight: 700;
  text-align: center;
}

.benefits-list {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(225, 47, 108, 0.1);
  list-style: none;
  margin: 0;
  flex-grow: 1;
}

.benefits-list li {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(225, 47, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 16px;
  flex-shrink: 0;
}

.benefit-text {
  display: flex;
  flex-direction: column;
}

.benefit-text strong {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 2px;
}

.benefit-text span {
  font-size: 0.8rem;
  color: #777;
}

/* Loader */
.loader-container {
  display: none;
  text-align: center;
  margin: 15px auto;
  max-width: 300px;
}

.loader {
  border: 4px solid rgba(225, 47, 108, 0.1);
  border-radius: 50%;
  border-top: 4px solid #e12f6c;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.countdown {
  font-size: 20px;
  color: #e12f6c;
  font-weight: bold;
}

/* Messages */
.messages-container {
  max-width: 600px;
  margin: 0 auto;
}

.search_error, .contact_error, .phase_error, .analysis_success {
  display: none;
  padding: 12px 15px;
  border-radius: 10px;
  margin: 15px auto;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}

.search_error, .contact_error, .phase_error {
  background: rgba(255, 0, 0, 0.08);
  color: #d32f2f;
  border: 1px solid rgba(255, 0, 0, 0.2);
}

.analysis_success {
  background: rgba(76, 175, 80, 0.08);
  color: #388e3c;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Responsive */
@media (max-width: 868px) {
  .form-benefits-wrapper {
    flex-direction: column;
  }
  
  .form-column, .benefits-column {
    width: 100%;
  }
  
  .analyzer-title {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }
  
  .analyzer-subtitle {
    font-size: 0.9rem;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .stats-badge {
    position: relative;
    top: auto;
    right: auto;
    text-align: center;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .analyzer-title {
    font-size: 1.5rem;
  }
  
  .form-card, .benefits-list {
    padding: 20px 15px;
  }
}
