@import "/static/css/global.css";

body {
  height: 100vh;
  display: grid;
  grid-template-rows: 135px 1fr;
  background: var(--just-black);
}

nav {
  display: flex;
  justify-content: center;
  padding: 16px 32px;
}

.classiccar-bg {
  background: linear-gradient(180deg, #000 20.66%, rgba(0, 0, 0, 0) 64.73%), url("/static/images/porsche-bg.webp"), lightgray -0.668px 77.934px / 100.098% 100% no-repeat;
  background-size: cover;
  background-repeat: no-repeat;
}

.insurancecar-bg {
  background: linear-gradient(180deg, #000 20.66%, rgba(0, 0, 0, 0) 64.73%), url("/static/images/porsche-992.webp"), lightgray -0.668px 77.934px / 100.098% 100% no-repeat;
  background-size: cover;
  background-repeat: no-repeat;
}

.classiccar-nobg {
  background-color: rgba(255, 255, 255);
}

.container {
  display: flex;
  justify-content: center;
  width: 1440px;
}

.container-full {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.hr-vertical {
  height: 100%;
  width: 1px;
  background-color: var(--pure-white);
  margin: 0 38px;
}

.logo-gc {
  width: 157px;
  height: 110px;
}

.logo-cci {
  width: 93px;
  height: 93px;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-box {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-default);
  font-size: 30px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--just-black);
  margin: 0px;
}

.logo-box span {
  font-family: var(--font-default);
  margin: 0px;
}

section {
  margin-top: 32px;
  padding: 60px;
  display: flex;
  width: 960px;
  justify-content: center;
  flex-direction: column;
  /* align-items: center; */
  gap: 32px;
  /* background-color: rgba(255, 255, 255, 0.9); */
  background-color: var(--pure-white);
  box-sizing: border-box;
}

section h1 {
  font-family: "Neuton", serif;
  font-size: 40px;
  /* text-align: center; */
}

section .form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* align-items: center; */
}

section .form > div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* justify-content: center; */
  gap: 16px;
}

.btn-red:disabled {
  background-color: var(--claeys-dark);
  color: var(--pure-white);
  cursor: not-allowed;
}

.btn-red:disabled:hover {
  box-shadow: none;
  text-decoration: none;
}

/* Custom File Upload Styling */
.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 240px;
  margin: 0;
  vertical-align: top;
}

.file-upload-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-upload-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 2px dashed #bfbfbf;
  border-radius: 4px;
  background-color: #fafafa;
  color: #666;
  font-family: var(--font-default);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-sizing: border-box;
  margin: 0;
  vertical-align: top;
}

.file-upload-button:hover {
  border-color: var(--claeys-red);
  background-color: #f9f9f9;
  color: var(--claeys-red);
}

.file-upload-button.has-file {
  border-style: solid;
  border-color: var(--claeys-red);
  background-color: #fff;
  color: var(--claeys-dark);
}

.file-upload-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.file-upload-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload-remove {
  background: none;
  border: none;
  color: var(--claeys-red);
  cursor: pointer;
  padding: 0;
  width: auto;
  height: auto;
  font-size: 16px;
  line-height: 1;
}

.file-upload-remove:hover {
  color: #d32f2f;
  box-shadow: none;
}

.approval-box {
  padding: 32px;
  border: 1px solid var(--claeys-red);
  text-align: center;
}

.approval-box input[type="checkbox"] {
  transform: scale(2);
  margin-right: 10px;
}

.approval-selection a::before {
  content: "";
  display: inline-block;
  background-image: url(/static/images/pdf.png);
  background-size: contain;
  width: 24px;
  height: 24px;
}

.approval-selection a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insurance-item {
  border: 1px solid var(--soft-grey);
  padding: 16px;
  margin: 8px 0;
}

.info-box {
  border: 2px solid var(--claeys-red);
  padding: 16px;
  background-color: #f4efef;
  color: var(--claeys-red);
}

#remarks {
  width: 100%;
}

.pdf-frame {
  width: 800px;
  height: 600px;
}

/* Progress bar */
.progress-container {
  width: 100%;
}

.progress {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
}

.progress-bar {
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 4 steps, with 3% margin for separation */
  height: 30px;
  /* Margin to separate each bar */
  background-color: #d9d9d9;
  font-size: 14px;
  color: var(--pure-white);
  padding: 4px 12px;
}

.progress-bar[data-step="1"],
.progress-bar[data-step="2"],
.progress-bar[data-step="3"],
.progress-bar[data-step="4"] {
  background-color: #d9d9d9;
}

.filled {
  background-color: var(--claeys-red) !important;
}

/* classic-car-landing */

.classic-car-landing,
.insurance-car-landing {
  color: var(--pure-white);
  width: 1440px;
  margin: 0 auto;
}

.heading {
  max-width: 385px;
  padding: 180px 0 250px 110px;
  position: relative;
}

.heading h1 {
  color: var(--pure-white);
  font-family: var(--font-default);
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  padding-bottom: 20px;
}

.heading p {
  color: var(--pure-white);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  padding-bottom: 50px;
}

.heading > a {
  color: var(--pure-white);
}

.heading a:hover {
  text-decoration: underline;
}

.rectangle {
  position: absolute;
  left: -150px;
  top: 60px;
  width: 385px;
  height: 385px;
  border: 15px solid rgba(255, 255, 255, 0.15);
  z-index: -1;
}

.porsche-bg {
  position: absolute;
  top: -100px;
  right: 0px;
  width: 1212px;
  height: 910px;
  z-index: -1;
  background: linear-gradient(180deg, #000 20.66%, rgba(0, 0, 0, 0) 64.73%), url(/static/images/porsche-bg.webp);
  background-size: contain;
  background-repeat: no-repeat;
}

.porsche-bg-992 {
  position: absolute;
  top: -100px;
  right: 0px;
  width: 1212px;
  height: 910px;
  z-index: -1;
  background: linear-gradient(180deg, #000 20.66%, rgba(0, 0, 0, 0) 64.73%), url(/static/images/porsche-992.webp);
  background-size: contain;
  background-repeat: no-repeat;
}

.perks {
  display: flex;
  padding-bottom: 120px;
  justify-content: space-evenly;
}

.perks div:last-child {
  max-width: 590px;
}

.perks h2,
.why h2 {
  margin-bottom: 20px;
}

.perks h2,
.why h2,
.our-locations h2 {
  color: var(--pure-white);
  font-family: var(--font-default);
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.perks ul li,
.why ul li {
  color: var(--pure-white);
  font-family: var(--font-default);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 30px;
}

ul.custom-bullet li {
  position: relative;
  padding-left: 12px;
  /* Add space for the custom bullet, adjust as necessary */

  /* Use the SVG as a background image */
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSI2IiB2aWV3Qm94PSIwIDAgNiA2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8Y2lyY2xlIGlkPSJFbGxpcHNlIDEiIGN4PSIzIiBjeT0iMyIgcj0iMyIgZmlsbD0iI0FGMUQxRiIvPgo8L3N2Zz4K");
  background-position: 0% 50%;
  /* Align to the left and vertically centered */
  background-repeat: no-repeat;
  background-size: 6px 6px;
  /* Size of your SVG */
}

.why {
  display: flex;
  padding-bottom: 120px;
  justify-content: space-evenly;
}

.why div:first-child {
  max-width: 525px;
}

.cta {
  background-color: #af1d1f;
  height: 470px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 120px;
}

.cta h3,
.questions-cta h3 {
  color: var(--pure-white);
  font-family: var(--font-default);
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  max-width: 480px;
}

.cta div:last-child {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta .btn-red,
.questions-cta .btn-red {
  background: var(--pure-white);
  color: #af1d1f;
}

.cta a {
  color: var(--pure-white);
  font-family: var(--font-default);
  font-weight: 500;
  text-align: center;
}

.cta a:hover {
  text-decoration: underline;
}

.cta-divider {
  margin-top: 30px;
  display: block;
  width: 75px;
  height: 2px;
  background: #fff;
}

.faq-items {
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 120px;
}

.faq h2 {
  color: var(--pure-white);
  font-family: var(--font-default);
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  padding-bottom: 35px;
  padding-left: 145px;
}

.faq ul {
  width: 525px;
}

.faq ul li {
  box-sizing: border-box;
  color: var(--pure-white);
  font-family: var(--font-default);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  padding-right: 20px;
  width: 100%;
  cursor: pointer;
}

.faq-items ul li::after {
  position: absolute;
  top: 25px;
  right: 0px;
  content: "";
  background-image: url("/static/images/chevron-right.svg");
  background-repeat: no-repeat;
  height: 10px;
  width: 8px;
  transform: rotate(var(--rotation, 0deg));
}

.faq ul li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.faq p {
  color: var(--pure-white);
  display: none;
  width: 100%;
  max-width: 525px;
  line-height: 22px;
  padding-bottom: 16px;
}

.questions-cta {
  background-color: #af1d1f;
  max-width: 780px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0 auto 80px auto;
}

.our-locations {
  padding-top: 120px;
  max-width: 1140px;
  margin: 0 auto;
}

.our-locations > p:first-of-type {
  padding: 40px 0 65px 0;
  max-width: 750px;
}

.our-locations p {
  color: var(--pure-white);
  font-family: var(--font-default);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.location p:first-of-type {
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin-bottom: 15px;
}

.our-locations > div:first-of-type {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.our-locations .location div:first-of-type {
  height: 206px;
}

.our-locations .location div:last-of-type {
  box-sizing: border-box;
  width: 207px;
  height: 154px;
  flex-shrink: 0;
  background: #242424;
  padding: 15px;
}

.our-locations .location img {
}

.our-locations > p:last-of-type {
  text-align: center;
  padding: 120px 0 40px 0;
}

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

footer {
  display: flex;
  flex-direction: column;

  padding: 90px 0;
  width: 1440px;
  margin: 0 auto;
}

footer > div:first-of-type {
  display: flex;
  justify-content: space-between;
}

footer .social-icons {
  display: flex;
  gap: 16px;
}

footer p, 
footer a {
  font-family: var(--font-default);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--claeys-dark);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer h4 {
  font-family: var(--font-default);
  margin-bottom: 1.5rem;
  color: var(--claeys-dark);
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 1px;
  font-weight: bold;
}

footer ul li a {
  padding-bottom: 20px;
}

footer ul li {
  padding-bottom: 10px;
}

footer > div:last-of-type {
  margin-top: 100px;
}

footer > div:last-of-type a {
  color: var(--claeys-red);
  margin-right: 16px;
}

.info-icon {
  position: relative;
  display: inline-block;
  border: 1px solid var(--claeys-red);
  border-radius: 100%;
  width: 15px;
  text-align: center;
  color: var(--claeys-red);
  cursor: pointer;
}

.info-image {
  display: none;
  position: absolute;
  top: 80%;
  left: 30px;
  z-index: 10;
}

.info-icon:hover .info-image {
  display: block; /* Show the image on hover */
}

.info-image img {
  border: 1px solid var(--soft-grey);
  background-color: var(--soft-grey);
  width: 320px;
  padding: 10px;
}

/* Media query desktop */
@media (min-width: 992px) and (max-width: 1440px) {
  .container {
    width: 900px;
  }

  .hr-vertical {
    margin: 0 15px;
  }

  section {
    width: 900px;
  }

  .insurance-car-landing {
    width: 990px;
  }

  .classic-car-landing {
    width: 990px;
  }

  footer {
    width: 990px;
  }


  .pdf-frame {
    width: 700px;
    height: 600px;
  }

  .fc-m {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .porsche-bg,
  .porsche-bg-992 {
    top: 0px;
    right: 0px;
    width: 900px;
    height: 676px;
  }
}

/* Media query tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 700px;
  }

  .hr-vertical {
    margin: 0 15px;
  }

  section {
    width: 700px;
    padding: 32px 16px;
  }


  .pdf-frame {
    width: 700px;
    height: 600px;
  }

  .fc-m {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .porsche-bg,
  .porsche-bg-992 {
    display: none;
  }

  .classic-car-landing {
    width: 700px;
  }

  .insurance-car-landing {
    width: 700px;
  }

  .heading {
    max-width: 700px;
    padding: 180px 0 120px 0px;
  }

  .perks {
    flex-direction: column;
    align-items: center;
  }

  .perks img {
    width: 320px !important;
    height: 299px !important;
  }

  .perks h2 {
    padding-top: 60px;
  }

  .why {
    flex-direction: column-reverse;
    align-items: center;
  }

  .why img {
    width: 320px !important;
    height: 299px !important;
  }

  .why h2 {
    padding-top: 60px;
  }

  .cta {
    flex-direction: column;
  }

  .cta h3 {
    font-size: 36px;
    padding: 0 20px;
  }

  .cta-divider {
    margin-left: 20px;
  }

  .faq h2 {
    padding-left: 0px;
    text-align: center;
  }

  .faq-items {
    flex-direction: column;
  }

  .questions-cta {
    flex-direction: column;
  }

  .our-locations > div:first-of-type {
    flex-direction: column;
    align-items: center;
  }

  footer {
    width: 700px;
    height: 100%;
    padding: 0px;
    text-align: center;
  }

  footer > div:first-of-type {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding-top: 50px;
  }

  footer > div:last-of-type {
    margin-top: 50px;
    margin-left: 0px;
    padding-bottom: 50px;
  }

  .progress-bar {
    min-width: 130px;
  }
}

/* Media query mobile */
@media (max-width: 767px) {
  .container {
    width: 320px;
    justify-content: center !important;
    flex-direction: column;
  }

  .hr-vertical {
    margin: 0 15px;
  }

  section {
    width: 320px;
    padding: 32px;
    box-sizing: border-box;
  }

  .pdf-frame {
    width: 320px;
    height: 600px;
  }

  .fc-m {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #legal_entity {
    flex-direction: column;
  }

  .porsche-bg,
  .porsche-bg-992 {
    display: none;
  }

  .classic-car-landing {
    width: 320px;
  }

  .insurance-car-landing {
    width: 320px;
  }

  .heading {
    max-width: 320px;
    padding: 180px 0 120px 0px;
  }

  .heading h1 {
    font-size: 36px;
  }

  .perks {
    flex-direction: column;
  }

  .perks img {
    width: 320px !important;
    height: 299px !important;
  }

  .perks h2 {
    padding-top: 60px;
  }

  .why {
    flex-direction: column-reverse;
  }

  .why img {
    width: 320px !important;
    height: 299px !important;
  }

  .why h2 {
    padding-top: 60px;
  }

  .cta {

    flex-direction: column;
  }

  .cta div:first-child {
    max-width: 320px;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .cta h3 {
    font-size: 30px;
    padding: 0 20px;
  }

  .cta-divider {
    margin-left: 20px;
  }

  .faq ul {
    width: 320px;
  }

  .faq h2 {
    padding-left: 0px;
  }

  .faq-items {
    flex-direction: column;
  }

  .questions-cta {
    flex-direction: column;
  }

  .questions-cta h3 {
    font-size: 30px;
  }

  .our-locations > div:first-of-type {
    flex-direction: column;
    align-items: center;
  }

  footer {
    width: 320px;
    height: 100%;
    padding: 0px;
    text-align: center;
  }

  footer > div:first-of-type {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding-top: 50px;
  }

  footer > div:last-of-type {
    margin-top: 50px;
    margin-left: 0px;
    padding-bottom: 50px;
  }

  .progress {
    flex-direction: column;
    gap: 5px;
  }

  .info-image {
    display: none;
    position: fixed;
    top: 50px;
    left: 20px;
    z-index: 10;
  }

  .info-icon:hover .info-image {
    display: block;
  }

  .info-image img {
    border: 1px solid var(--soft-grey);
    background-color: var(--soft-grey);
    width: 320px;
    padding: 10px;
  }

  .file-upload-wrapper {
    width: 100%;
  }

  .file-upload-button {
    font-size: 12px;
    padding: 6px 8px;
  }

  /* Mobile checkbox styling */
  input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  input[type="checkbox"]:checked::after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
  }

  .checkbox-container {
    gap: 6px;
  }
}
