/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root{
  /*Cores Eletromidia*/
	--elt-orange: #FF4F00;
  --elt-red: #D21723;
  --elt-brown: #603C1F;

  --elt-white: #FFFFFF;
  --elt-light-green: #CFE7CC;

  --elt-green: #52D88B;
  --elt-medium-green: #009A61;
  --elt-dark-green: #007800;

  --elt-pink: #FF74FF;
  --elt-light-pink: #FFB0D8;
  --elt-salmon: #FF8E83;

  --elt-yellow: #FFC400;
  --elt-light-yellow: #FFE567;

  --elt-blue: #451EFF;
  --elt-light-blue: #6C62FF;
  --elt-dark-blue: #3C20A6;

  --elt-black: #000000;
  --elt-dark-gray: #333333;
  --elt-gray: #808080;
  
  /*cool color i found rgb(147, 45, 45);*/
  
  /*Cores Extra*/

  --text-light: #4c4e54;
  --background: #f2f3f2;
  --white-text: whitesmoke;
}

body {
  display: flex;
  justify-content: center;
  background-color: var(--background);
  color: var(--elt-dark-gray);
  font-family: Montserrat, Helvetica, Verdana, sans-serif;
  font-size: .9rem;
  font-weight: 400;
}

main {
  background-color: var(--elt-white);
  width: 100%;
  padding: 24px 48px;
}

.inactive{
  transition: all 0.2s;
  display: none;
}

p {
  margin: 0.3rem 0;
  padding: 0;
}

.header-wrap {
  display: flex;
  flex-direction: column;
}

.logo {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}

.header-text {
  line-height: 2rem;
  margin-bottom: 2rem;
}

.header-title {
  font-family: Roboto, Helvetica, Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 200;
}

.header-subtitle {
  margin-left: 3px;
  letter-spacing: .1rem;
  font-family: Roboto, Helvetica, Verdana, sans-serif;
  font-size: .9rem;
  font-weight: 100;
}

.block-label {
  display: block;
}

section {
  margin-bottom: 1rem;
}

.form-type {
  margin-bottom: 2rem;
}

.section-intro {
  border-left: 4px solid var(--text-light);
  border-radius: 5px;
  padding: 4px 8px;
  margin-top: 12px;
  font-weight: 600;
}

.user-type-info {
  margin-bottom: 8px;
  font-weight: 600;
}

.dsr-type:hover, 
.agree-wrap:hover,
.form-line input:hover{
  transition: all 0.2s;
  filter: drop-shadow(0px 0px 2px var(--elt-gray));
}

.dsr-type:not(.help-error) {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 600;
  padding: 12px 8px;
  background-color: var(--background);
  border-radius: 5px;
  margin: 0.5rem 0;
}

.hidden-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
} 

.form-line {
  margin-top: 0.2rem;
  margin-bottom: .6rem;
}

.help-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}

.help-text {
  color: var(--text-light);
}

.help-error {
  color: var(--elt-red);
}

input,
select,
textarea {
  border: 1px solid transparent;
}

input[type=text],
input[type=email],
input[type=date],
textarea,
option,
select {
  padding: 8px 12px;
  background-color: var(--background);
  border-radius: 5px;
  width: 100%;
  font-weight: 600;
}

input.error,
select.error,
textarea.error {
  border-color: var(--elt-red);
}

.visible-agree {
  width: 2rem;
  height: 2rem;
}

.visible-radio{
  margin-bottom: .4rem;
  margin-right: .5rem;
  width: 1.2rem;
  height: 1.2rem;
}

.agree-wrap {
  position: relative;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--background);
  border-radius: 5px;
  border: 2px solid var(--elt-gray);
}

.label-agree {
  margin: 0 .5rem;
  font-size: 1.1rem var(--elt-red);
}

.required::after {
  padding-left: .5rem;
  content: '*';
  font-weight: 600;
  color: var(--elt-red);
}

.submit-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.submit-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  transition: all 0.2s;
  cursor: pointer;
  background-color: var(--elt-orange);
  margin: 8px 0;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 1.1rem;
  border: none;
  color: var(--white-text);
  padding: 12px 22px;
  border-radius: 8px;
}

.submit-button:hover:not(.disabled){
  transition: all 0.2s;
  filter: drop-shadow(0px 0px 2px var(--elt-gray));
}

button.disabled {
  transition: all 0.2s;
  background-color: var(--elt-gray);
  cursor: not-allowed;
}

.spinner{
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.5rem;

  border: 3px solid var(--white-text);
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translateY(-50%);
}

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

.popup {
  background-color: var(--white-text);
  float: right;
  position: fixed;
  cursor: pointer;
  width: clamp(1px, 60vw, 1000px);
  top: 22px;
  border-radius: 5px;
  border: 1px solid var(--elt-gray);
  border-left: 6px solid var(--elt-red);
  padding: 1em;
  font-weight: bolder;
  text-align: center;
}

svg {
  width: auto;
  height: 100%;
}

@media only screen and (min-width: 768px) {
  main {
    width: clamp(1px, 75vw, 1000px);
  }

  .header-wrap {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}