.velux-crea-form-wrap {
  --velux-red: #EE0000;
  --velux-red-dark: #b80000;
  --velux-border: #dfe5ec;
  --velux-soft: #f7f9fb;
  --velux-text: #1f2933;
  --velux-muted: #52616f;
  --velux-font: 'VELUXTransform', 'VELUXTransform Variable', sans-serif;
  --velux-headline: 'VELUXTransform Headline', 'VELUXTransform', 'VELUXTransform Variable', sans-serif;
  font-family: var(--velux-font);
  color: var(--velux-text);
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.velux-crea-form-wrap,
.velux-crea-form-wrap * {
  font-family: var(--velux-font);
}

.velux-crea-form-wrap h1,
.velux-crea-form-wrap h2,
.velux-crea-form-wrap h3,
.velux-crea-actions button {
  font-family: var(--velux-headline);
}

.velux-crea-hero {
  overflow: hidden;
  border-radius: 5px;
  margin: 0 0 20px;
  border: 1px solid var(--velux-border);
  background: var(--velux-soft);
}

.velux-crea-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.velux-crea-intro {
  background: #ffffff;
  border: 1px solid var(--velux-border);
  border-radius: 5px;
  padding: 24px 28px;
  margin: 0 0 20px;
  border-left: 5px solid var(--velux-red);
}

.velux-crea-intro h2 {
  font-family: var(--velux-headline);
  margin: 0 0 10px;
  color: var(--velux-red);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.velux-crea-intro-text,
.velux-crea-intro-text p {
  margin: 0;
  color: var(--velux-text);
  font-size: 16px;
  line-height: 1.65;
}

.velux-crea-form {
  background: #ffffff;
  border: 1px solid var(--velux-border);
  border-radius: 5px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.velux-crea-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--velux-border);
}

.velux-crea-section:first-of-type {
  padding-top: 0;
}

.velux-crea-section:last-of-type {
  border-bottom: 0;
}

.velux-crea-section h3 {
  font-family: var(--velux-headline);
  margin: 0 0 16px;
  color: var(--velux-red);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.velux-crea-section h3 small {
  font-size: 13px;
  color: var(--velux-muted);
  text-transform: none;
  font-weight: 500;
}

.velux-crea-grid {
  display: grid;
  gap: 16px;
}

.velux-crea-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.velux-crea-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

.velux-crea-field,
.velux-crea-checkbox {
  display: block;
  margin-bottom: 16px;
}

.velux-crea-field span,
.velux-crea-radio-group legend,
.velux-crea-checkbox span {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.velux-crea-field em,
.velux-crea-radio-group em,
.velux-crea-checkbox em,
.velux-crea-actions em {
  color: var(--velux-red);
  font-style: normal;
}

.velux-crea-field input[type="text"],
.velux-crea-field input[type="email"],
.velux-crea-field input[type="tel"],
.velux-crea-field input[type="number"],
.velux-crea-field input[type="file"],
.velux-crea-field select,
.velux-crea-field textarea {
  width: 100%;
  border: 1px solid var(--velux-border);
  background: #ffffff;
  color: var(--velux-text);
  border-radius: 5px;
  padding: 12px 13px;
  min-height: 46px;
  font-family: var(--velux-font);
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.velux-crea-field input:focus,
.velux-crea-field select:focus,
.velux-crea-field textarea:focus {
  outline: none;
  border-color: var(--velux-red);
  box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.12);
}

.velux-crea-field small {
  display: block;
  margin-top: 6px;
  color: var(--velux-muted);
  font-size: 12px;
}

.velux-crea-radio-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.velux-crea-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.velux-crea-options label,
.velux-crea-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--velux-soft);
  border: 1px solid var(--velux-border);
  border-radius: 5px;
  padding: 11px 12px;
  cursor: pointer;
}

.velux-crea-options label span,
.velux-crea-checkbox span {
  margin: 0;
  font-weight: 500;
}

.velux-crea-options input,
.velux-crea-checkbox input {
  margin-top: 2px;
  accent-color: var(--velux-red);
}

.velux-crea-actions {
  padding-top: 22px;
}

.velux-crea-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--velux-red);
  color: #ffffff;
  border-radius: 5px;
  padding: 14px 24px;
  min-height: 48px;
  font-family: var(--velux-headline);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.velux-crea-actions button:hover {
  background: var(--velux-red-dark);
  transform: translateY(-1px);
}

.velux-crea-actions p {
  margin: 12px 0 0;
  color: var(--velux-muted);
  font-size: 13px;
}

.velux-crea-alert {
  border-radius: 5px;
  padding: 14px 16px;
  margin: 0 0 18px;
  border: 1px solid transparent;
}

.velux-crea-alert ul {
  margin: 8px 0 0 18px;
}

.velux-crea-alert-success {
  background: #ecfdf3;
  border-color: #abe7c4;
  color: #065f46;
}

.velux-crea-alert-error {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

@media (max-width: 760px) {
  .velux-crea-form,
  .velux-crea-intro {
    padding: 18px;
  }

  .velux-crea-intro h2 {
    font-size: 23px;
  }

  .velux-crea-grid-2,
  .velux-crea-grid-3 {
    grid-template-columns: 1fr;
  }

  .velux-crea-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .velux-crea-actions button {
    width: 100%;
  }
}

/* Ajustes extra para uso dentro de iframe y contenedores angostos */
.velux-crea-form-wrap {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}

.velux-crea-form-wrap * {
  box-sizing: border-box;
}

.velux-crea-field input[type="file"] {
  max-width: 100%;
}

@media (max-width: 480px) {
  .velux-crea-form,
  .velux-crea-intro {
    padding: 15px;
  }

  .velux-crea-section h3 {
    font-size: 16px;
  }

  .velux-crea-field input[type="text"],
  .velux-crea-field input[type="email"],
  .velux-crea-field input[type="tel"],
  .velux-crea-field input[type="number"],
  .velux-crea-field input[type="file"],
  .velux-crea-field select,
  .velux-crea-field textarea {
    font-size: 16px;
  }
}

.velux-crea-form-wrap img,
.velux-crea-form-wrap svg,
.velux-crea-form-wrap video,
.velux-crea-form-wrap canvas {
  max-width: 100%;
  height: auto;
}

.velux-crea-form-wrap input,
.velux-crea-form-wrap select,
.velux-crea-form-wrap textarea,
.velux-crea-form-wrap button {
  max-width: 100%;
}


/* Responsive reforzado para iframe externo y editores con contenedores difíciles */
.velux-crea-form-wrap,
.velux-crea-form,
.velux-crea-intro,
.velux-crea-section,
.velux-crea-field,
.velux-crea-radio-group,
.velux-crea-options,
.velux-crea-options label,
.velux-crea-checkbox {
  min-width: 0;
}

.velux-crea-form-wrap {
  width: 100%;
  max-width: 980px;
}

.velux-crea-grid > *,
.velux-crea-options > * {
  min-width: 0;
}

.velux-crea-field textarea {
  resize: vertical;
}

.velux-crea-field input[type="file"] {
  width: 100%;
  white-space: normal;
}

.velux-crea-options label,
.velux-crea-checkbox {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .velux-crea-form-wrap {
    max-width: 100%;
  }

  .velux-crea-form,
  .velux-crea-intro {
    padding: 16px;
  }

  .velux-crea-section {
    padding: 18px 0;
  }

  .velux-crea-options label,
  .velux-crea-checkbox {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .velux-crea-form,
  .velux-crea-intro {
    padding: 14px 12px;
  }

  .velux-crea-intro h2 {
    font-size: 21px;
  }

  .velux-crea-section h3 {
    font-size: 15px;
  }
}

.velux-crea-hero-picture {
  display: block;
  width: 100%;
}

.velux-crea-bases-cta {
  display: flex;
  justify-content: flex-start;
  margin: -4px 0 20px;
}

.velux-crea-bases-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 5px;
  background: var(--velux-red);
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--velux-headline);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid var(--velux-red);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.velux-crea-bases-cta a:hover,
.velux-crea-bases-cta a:focus {
  background: var(--velux-red-dark);
  border-color: var(--velux-red-dark);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .velux-crea-bases-cta {
    margin: -2px 0 16px;
  }

  .velux-crea-bases-cta a {
    width: 100%;
  }
}
