 /* *************** */
 /* GENERAL STYLING */
 /* *************** */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap");

:root {
  /* Colors */
  --dark-gray: #333333;
  --gray: #AAAAAA;
  --main-blue: #00008f;
  --main-blue-hover: #000069;
  --light-blue: #4976BA;
  --light-orange: #F07662;
  --white: #FFFFFF;
  --white-hover: #F5F5F5;

  /* Font families */
  --ff-body: "Source Sans Pro", sans-serif;
  --ff-title: "Lora", serif;

  /* Font sizes */
  --fs-h1: 3.2rem;
  --fs-h2: 2.7rem;
  --fs-h3: 2rem;
  --fs-h4: 1.2rem;
  --fs-h5: 1rem;

  --fs-body-lg: 1.2rem;
  --fs-body: 1rem;

  @media screen and (max-width: 480px){
    --fs-h1: 2.8rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.2rem;
    --fs-h5: 1rem;

    --fs-body-lg: 0.9rem;
    --fs-body: 0.9rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--dark-gray);
  background-color: #f8f8f8;
  font-family: var(--ff-body);
  font-size: 100%;
  font-weight: 400;
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
  color: var(--main-blue);
  font-family: var(--ff-title);
  font-weight: 600;
  margin-block: 1rem;
}

h2 {
  font-size: var(--fs-h2);
  color: var(--main-blue);
  font-family: var(--ff-title);
  font-weight: 600;
  margin-block: 1rem;
}

h3 {
  font-size: var(--fs-h3);
  color: var(--main-blue);
  font-family: var(--ff-title);
  font-weight: 600;
  margin-block: 1.5rem;
}

.h3-variant {
  color: unset;
  text-align: center;
}

h4 {
  color: var(--light-blue);
  font-size: var(--fs-h4);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

p, ul, li, span, label, tr, td, th, button, a {
  font-size: var(--fs-body);
}

a, a:visited, a:active {
  color: var(--main-blue);
}

li {
  margin-top: 1rem;
}

button, .btn {
  display: block;
  width: max-content;
  padding: 1rem 2.5rem;
  margin-block: 3rem 1rem;
  background: var(--main-blue);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s all ease;
}

button:hover, .btn:hover {
  background: var(--main-blue-hover);
}

.c-btn {
  color: var(--main-blue);
  background-color: var(--white);
  border: 2px solid var(--main-blue);
}

.c-btn:hover {
  background: var(--white-hover);
}

button:disabled {
  opacity: 70%;
  cursor: auto;
}

label {
  color: var(--main-blue);
  font-weight: 600;
}

input[type="text"].textfield,
input[type="tel"].textfield,
select {
  padding: 0.7rem;
}

.textfield,
.select {
  border: 1px solid #cdcdcd;
}

table {
  margin-top: 1rem;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  padding: 16px;
  border-bottom: 1px solid rgba(224, 224, 224, 1);
  text-align: center;
}

/* Checkbox */
.checkbox__container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox__field label {
  color: var(--dark-gray);
  font-weight: 400;
}

.checkbox__field input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.checkbox__field input[type="checkbox"] + label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 0.7rem;
  border: 2px solid var(--light-orange);
  box-sizing: border-box;
  vertical-align: middle;
  position: relative;
  background-color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
  transition: 0.3s all ease;
}

.checkbox__field input[type="checkbox"]:checked + label::before {
  background-color: var(--light-orange);
  box-shadow: inset 0 0 0 1px var(--white);
  transition: 0.3s all ease;
}

/* Utilitary classes */
.page__container {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
}

.page__container--mb-lg {
  padding-block: 2rem 4rem;
}

.page__box {
  margin-bottom: 2rem;
}

.page__box h3 {
  margin-block: 3.5rem;
}

@media screen and (max-width: 768px) {
  .table__box {
    overflow-x: auto;
  }
}

.page__half-bg {
  background: linear-gradient(to bottom, transparent 50%, var(--white) 50%);
}

.page__white-bg {
  background: var(--white);
}

.button__container {
  display: flex;
  justify-content: center;
}

.callout {
  padding: 1rem 3rem;
  color: var(--main-blue);
  background: var(--white);
  border: 2px solid var(--main-blue);
  margin-inline: auto;
  margin-bottom: 4rem;
  max-width: max-content;
  text-align: center;
  width: 100%;
}

.txt-cnt {
  text-align: center;
}

.d-none {
  display: none;
}

.error {
  color: var(--light-orange)
}

/* ****** */
/* HEADER */
/* ****** */

header {
  width: 100%;
  min-height: 400px;
  display: flex;
  padding: 2rem 0 3rem;
  background-image: url(/assets/header-8d999aee7afc00f28f112f53ae4d2a43054ceee70e8b1afd55846dfe0afa80d0.jpg);
  background-size: cover;
  background-position-y: bottom;
  background-position-x: left;
  background-repeat: no-repeat;
}

@media screen and (max-width: 480px) {
  header {
    background-position-x: 20%;
    min-height: 350px;
    text-shadow: 0px 2px 2px rgba(255, 255, 255, 0.5);
  }
}

header .page__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-axa {
  cursor: pointer;
}

.title_container {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

.title_container * {
  margin: 0;
}

/* **** */
/* BODY */
/* **** */

/* Cards */
.cards__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
  background-color: var(--white);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
  padding: 2rem 3rem 2.5rem;
}

@media screen and (max-width: 480px) {
  .card__box {
    max-width: unset;
  }
}

.card__image {
  margin-top: 1rem;
  width: 60px;
}

.card__box p {
  margin: 0;
}

/* Form */
.form__card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.form__card--group {
  display: flex;
  gap: 1rem;
}

@media screen and (max-width: 768px) {
  .form__card--group {
    flex-direction: column;
  }

}

.form__card--field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Modal notifications */
.notification__container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.notification__card {
  position: absolute;
  background: var(--white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  padding: 2.5rem 2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  z-index: 3;
}

.notification__card h3 {
  margin-top: 0;
}

.close {
  position: absolute;
  top: 10px;
  right: 22px;
  color: var(--gray);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--dark-gray);
  cursor: pointer;
}

/* Faqs */
.accordion {
  margin-bottom: 0.7rem;
  box-shadow: 0px 4px 9px rgba(0, 0, 0, 0.12);
  background-color: var(--white);
}

.accordion__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--dark-gray);
  font-size: var(--fs-body-lg);
  text-transform: uppercase;
  cursor: pointer;
}

.accordion__icon {
  width: 25px;
  height: 25px;
  transition: transform 0.5s ease;
}

details[open] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__info {
  padding: 0.5rem 1.5rem 1.5rem;
}

/* Cookies */
#cookie-law {
  position: fixed;
  max-width: 1280px;
  left: 0px;
  right: 0px;
  width: 94%;
  bottom: 1.5rem;
  z-index: 10000;
  padding: 2rem 2.5rem;
  margin: 0px auto;
  background-color: var(--white);
  line-height: 1.5;
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.12), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
}

#cookie-law a {
  font-weight: 700;
}

.cookie-banner__buttons {
  display: flex;
  justify-content: flex-end;
}

.cookie-banner__buttons .btn {
  margin: 0;
}

/* ****** */
/* FOOTER */
/* ****** */

.footer__container {
  margin-top: auto;
  background-color: var(--light-blue);
}

.footer__container .page__container {
  display:flex;
  flex-direction: column;
  padding-block: 2rem;
  gap: 2rem;
  align-items: center;
}

footer nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

footer nav a {
  color: var(--white) !important;
  text-decoration: none;
  text-transform:uppercase;
}

@media screen and (max-width: 768px) {
  footer nav {
    flex-direction: column;
  }
}

.brand__footer span {
  text-align: center;
  color: var(--white);
  font-weight: 300;
}

/* ***** */
/* BASES */
/* ***** */

.bases__image {
 max-width: 700px;
 width: 100%;
}
