/* Fuentes formulario */
@font-face {
  font-family: 'NissanBrandRegular';
  src: url('../fonts/NissanBrandW01-Regular.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'NissanBrandBold';
  src: url('../fonts/NissanBrandW01-Bold.ttf') format('truetype');
  font-weight: bold;
}

@font-face {
  font-family: 'NissanBrandLight';
  src: url('../fonts/NissanBrandW01-Light.ttf') format('truetype');
  font-weight: lighter;
}

@font-face {
  font-family: 'NissanBrandIcons';
  src: url('../fonts/NissanBrandIcons.ttf') format('truetype');
}

/* Estilos generales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: NissanBrandRegular, sans-serif;
  color: #343434;
  text-rendering: optimizeLegibility;
}

/* Estilos de layout */
.container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

#th-logo {
  text-align: center;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
}

#main_container {
  background-color: white;
  max-width: 1170px;
  margin: 1rem auto;
  margin-top: 0;
  padding-top: 0;
}

@media (max-width: 768px) {
  #main_container {
    margin: 0 auto;
  }
}

.form_container {
  background-color: #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1170px;
  border-radius: 2px;
  padding: 1.5rem;
}

.form_layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-inline: 1.5rem;

}

/* Estilos formulario */
.form_ {
  width: 100%;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  box-sizing: border-box;

}

.row_checks{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
}

.row_2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  box-sizing: border-box;

}

.col {
  align-items: center;
}

.col-full {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin: 3px;
}

.col_grid {
  display: flex;
  align-items: center;
  gap: 5px;
}

.container-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.row_title {
  width: 100%;
  display: flex;
  align-items: center;
  max-width: 1170px;
  background: #fff;
  border-radius: 2px 2px 0 0;
}

.header_ {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
  max-width: 1170px;
  flex-direction: row;
}

.header_:has(#img_header_logo) {
  justify-content: space-between;
}

#img_header_logo {
  max-width: 200px;
}

#img_header {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .row {
    grid-template-columns: repeat(3, 1fr);
  }

  .row_2-col {
    grid-template-columns: repeat(2, 1fr);
  }


}

/* Estilos para campos */
.form_title {
  border-bottom: 1px dashed #bababa;
  margin-bottom: 25px;
  width: 100%;
  font-size: 1.7rem;
  font-family: NissanBrandBold;
  padding-bottom: 10px;
  position: relative;
}

.form_title::before {
  background: black;
  content: " ";
  display: block;
  height: 10px;
  margin-top: -25px;
  position: absolute;
  width: 90px;
}

.form_label {
  text-transform: uppercase;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 5px;
}

.form_label-option {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

fieldset, legend {
  border: none !important;
  padding: 0;
  margin: 0;
}

.asterisk {
  color: #c3002f;
  font-size: 0.9rem;
}

.form_input {
  border-radius: 6px;
  border: 1px solid #d2d2d2;
  box-shadow: inset 0 0 6px -2px rgba(90, 90, 90, .5);
  font-size: 1rem;
  padding: 0.6rem;
  width: 100%;
  outline: none;
  cursor: pointer;
}

.form_input:focus {
  border-color: #343434;
}

.form_text-bold {
  font-size: 1.25rem;
  line-height: 1.20;
  font-family: NissanBrandBold;
}

.form_text-light {
  font-family: NissanBrandLight;
  font-size: 0.75rem;
  line-height: 1.50;

}

.form_text-italic {
  font-family: NissanBrandLight;
  font-size: 0.75rem;
  line-height: 1.50;
  font-style: italic !important;
}

.form_select {
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  box-shadow: inset 0 0 6px -2px rgba(90, 90, 90, .5);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.6rem;
  padding-right: 50px;
  width: 100%;
  outline: none;
  appearance: none;
  background-image: url("../img/select.png");
  background-size: 42px 24px;
  background-repeat: no-repeat;
  background-position: right 5px center;
}

.form_checkbox {
  cursor: pointer;
  margin-right: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
  position: relative;
  appearance: none;
  box-sizing: border-box;
}

.form_checkbox::before {
  display:block;
  content:"";
  width:1.2rem;
  height:1.2rem;
  background-color:#fff;
  border:3px solid black;
  border-radius: 3px;
  box-sizing: border-box;
}

.form_checkbox:checked::after {
  content:"\e642";
  font-family:NissanBrandIcons;
  font-size:0.8rem;
  color:#c3002f;
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.form_input-radio {
  width: 1.20rem;
  height: 1.20rem;
  position: relative;
  cursor: pointer;
  appearance: none;
  box-sizing: border-box;
}

.form_input-radio::before {
  display: block;
  content: "";
  border: 2px solid #d2d2d2;
  background-color: #fff;
  box-shadow: inset 0 0 4px -2px rgba(90, 90, 90, .5);
  width: 1.20rem;
  height: 1.20rem;
  border-radius: 50%;
  box-sizing: border-box;
}

.form_input-radio:checked::after {
  content: "";
  position: absolute;
  font-family: "NissanBrandIcons";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.20rem;
  height: 1.20rem;
  border: 3.5px solid black;
  background-color: #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

.form_input-checkbox {
  cursor: pointer;
  margin-right: 0.5rem;
  width: 1.20rem;
  height: 1.20rem;
  position: relative;
  appearance: none;
  box-sizing: border-box;
}

.form_input-checkbox::before {
  display:block;
  content:"";
  width:1.20rem;
  height:1.20rem;
  border: 2px solid #d2d2d2;
  background-color: #fff;
  box-shadow: inset 0 0 4px -2px rgba(90, 90, 90, .5);
  border-radius: 3px;
  box-sizing: border-box;
}

.form_input-checkbox:checked::after {
  content:"\e603";
  font-family:NissanBrandIcons;
  font-size:0.8rem;
  color: #fff;
  background-color: #c3002f;
  border:3px solid black;
  border-radius: 3px;
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.form_button-send {
  background-color: black;
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.4s;

}

.form_button-spec {
  background-color: #454945;
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.4s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family:NissanBrandRegular;
}

.form_button-spec:hover {
  background-color: black;
}

.icon_spec::before {
  display: block;
  content: "\e632";
  font-family:NissanBrandIcons;
  font-size: 1rem;
}

a {
  color: #003a75;
  font-style: italic;
}

a:hover {
  color: #012c57;
}

.icon_ {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.error-message {
  font-size: 0.6rem;
  margin-top: 5px;
  margin-bottom: 5px;
}

input[readonly] {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d0d0d0;
  box-shadow: none;
  cursor: not-allowed;
}