/* Variables CSS */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --danger-color: #e74c3c;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reset y estilos base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

#title {
  margin-bottom: 10px;
  font-size: 2.2rem;
}

#description {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Formulario */
#survey-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin-top: 10px;
}

legend {
  padding: 0 10px;
  font-weight: 600;
  color: var(--dark-color);
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: normal;
}

.input-radio,
.input-checkbox {
  margin-right: 10px;
}

/* Botón de enviar */
.submit-button {
  width: 100%;
  padding: 15px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.submit-button:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background-color: var(--dark-color);
  color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.social-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--primary-color);
}

.social-link i {
  font-size: 1.2rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  #survey-form {
    padding: 20px;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}