/* CSS VARIABLES AND BASE STYLES */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
  --black-color: #000000;
  --black-opacity-color: #000000b3;
  --grey-color: #f7f6f5;
  --med-grey-color: #e2e0de;
  --dark-grey-color: #636262;
  --white-color: #ffffff;
  --primary-color: #006b37;
  --secondary-color: #0c4269;
  --blue-color: #a1bdc4;
  --dark-blue-color: #3a5f6b;
  --darken-blue-color: #0a4269;
  --border-color: #e4e0dd;
  --card-color: #1e1d1b;

  --title-size: 35px;
  --subtitle-size: 30px;
  --quote-size: 25px;
  --text-size: 20px;
  --small-text-size: 15px;

  --space-in: 20px;
  --space-element: 25px;
  --row-space-to-title: 25px;
  --space-top-element: 120px;
  --space-to-banner: 100px;
  --space-admin: 100px;

  --border-radius: 8px;
}

.montserrat-title {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.nunito-text {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
.simulator-badge {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Nunito", sans-serif;
  text-decoration: none;
  color: inherit;
  font-weight: 300;
  list-style: none;
}

html,
body {
  position: relative;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  background-color: var(--white-color);
}

body {
  background-image: url("https://domevapeur.fr/wp-content/uploads/2025/12/trait_Vert.webp");
  background-position: right top;
  background-size: 70%;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.8);
  background-blend-mode: overlay;
}

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

/* CONTAINER & CONTENT */
.container {
  margin: 0 auto;
  height: auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 25px;
}

/* NOTIFICATIONS */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  font-size: var(--small-text-size);
  font-weight: 600;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: var(--secondary-color);
  color: var(--white-color);
  border-left: 4px solid var(--primary-color);
}

.notification.error {
  background: #ff6b6b;
  color: var(--white-color);
  border-left: 4px solid #d63031;
}

.notification.info {
  background: var(--blue-color);
  color: var(--white-color);
  border-left: 4px solid var(--dark-blue-color);
}

/* SIMULATOR PAGE STYLES */
.simulator-page {
  min-height: 100vh;

  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* BACK TO SITE LINK IN PAGE */
.back-to-site-container {
  width: 100%;
  margin-bottom: 30px;
}

.back-to-site-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--darken-blue-color);
  font-weight: 600;
  font-size: var(--small-text-size);
  transition: color 0.3s ease;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  background: var(--grey-color);
}

.back-to-site-link:hover {
  color: var(--primary-color);
  background: var(--med-grey-color);
}

.simulator-header {
  text-align: center;
  margin-bottom: 40px;
}

.simulator-header h1 {
  font-size: 3em;
  color: var(--darken-blue-color);
  margin-bottom: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.simulator-header .subtitle-description {
  font-size: var(--text-size);
  color: var(--dark-grey-color);
  margin: 0 0 15px 0;
  font-weight: 400;
}

.simulator-header .simulator-badge {
  font-size: 14px;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;

  background: var(--darken-blue-color);
  color: var(--white-color);
  padding: 8px 15px;
  border-radius: var(--border-radius);
  display: inline-block;
}

.simulator-form-container {
  background: #f1fffa;
  border-radius: 30px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.simulator-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 15px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  width: var(--progress-width, 25%);
  transition: width 0.8s ease;

  max-width: 100%;
  box-sizing: border-box;
}

/* FORM STEPS */
.simulator-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-step {
  display: none;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.step-content h2 {
  font-size: var(--title-size);
  color: var(--black-color);
  margin-bottom: 10px;
  text-align: left;
}

.step-content > p {
  font-size: var(--text-size);
  color: var(--dark-grey-color);
  text-align: left;
  margin-bottom: 40px;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* DIMENSION STEP */
.dimension-inputs {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: var(--small-text-size);
  font-weight: 600;
  color: var(--black-color);
}

.input-group input,
.input-group textarea,
.input-group select {
  padding: 15px;
  border: 2px solid var(--med-grey-color);
  border-radius: var(--border-radius);
  font-size: var(--small-text-size);
  background: var(--white-color);
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Helper text and utility */
.field-help {
  margin-top: -5px;
  color: var(--dark-grey-color);
  font-size: var(--small-text-size);
}

.hidden {
  display: none;
}

/* Improve native select appearance */
.input-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23636262' d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 42px;
}

.surface-calculator {
  background: #f1fffa;
  border-radius: var(--border-radius);
}

#annexeGroup {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#annexeGroup label {
  width: 100%;
}

#annexeGroup select,
#annexeGroup input {
  flex: 1;
}

.surface-calculator h3 {
  font-size: var(--text-size);
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: left;
}

.calculator-inputs {
  display: flex;
  gap: 20px;
  align-items: end;
}

.calculator-inputs .btn-secondary {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 120px;
}

.calculator-inputs .input-group {
  flex: 1;
  min-width: 0;
}

.btn-secondary {
  padding: 15px 25px;
  background: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--small-text-size);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

/* PREVIOUS BUTTON STYLE */
.btn-previous {
  padding: 18px 35px;
  background: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--small-text-size);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-previous:hover {
  background: var(--secondary-color);
  color: var(--white-color);
}

/* CONTACT INPUTS */
.contact-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .input-group {
  flex: 1;
}

/* SURFACE TYPES */
.surface-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.surface-card {
  background: var(--white-color);

  margin-bottom: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.surface-card:hover {
  border-color: var(--primary-color);
}

.surface-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white-color);
}

.surface-image {
  height: 320px;
  border: 4px solid var(--med-grey-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.surface-card.selected .surface-image,
.surface-card:hover .surface-image {
  border: 4px solid var(--primary-color);
}

.surface-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.surface-card:hover .surface-image img {
  transform: scale(1.05);
}

.surface-card h3 {
  position: absolute;
  bottom: -30px;
  padding: 20px 15px;
  width: 90%;
  left: 5%;
  color: var(--primary-color);
  margin-top: -30px;
  margin-left: auto;
  margin-right: auto;
  background: hsla(0, 0%, 100%, 0.7);
  backdrop-filter: blur(10px);
  font-size: 24px;
  border-radius: var(--border-radius);
  text-align: center;
  font-family: "Montserrat";
  font-weight: 300;
}

.surface-card.selected h3 {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* LOCATION INPUTS */
.location-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* QUOTE RESULT */
.result-step {
  color: var(--black-color);
}

.result-step .step-content h2 {
  color: var(--primary-color);
}

.quote-result {
  text-align: center;
}

.quote-summary {
  border-radius: var(--border-radius);
  padding: 30px 0;
}

.quote-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-item .label {
  font-size: var(--small-text-size);
  color: var(--dark-grey-color);
}

.detail-item .value {
  font-size: var(--text-size);
  font-weight: 600;
  color: var(--primary-color);
}

.quote-price {
  border-top: 1px solid var(--med-grey-color);
  padding-top: 20px;
}

.price-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.price-label {
  font-size: var(--text-size);
  color: var(--dark-grey-color);
}

.price-value {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
}

.price-note {
  font-size: var(--small-text-size);
  color: var(--dark-grey-color);
  margin-top: 10px;
}

/* EMAIL STATUS */
.email-status {
  margin-top: 30px;
}

.status-message {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: var(--border-radius);
  background: var(--grey-color);
  border: 2px solid var(--secondary-color);
  text-align: left;
}

.status-message.success {
  background: rgba(2, 208, 108, 0.1);
  border-color: var(--secondary-color);
}

.status-message.success i {
  color: var(--secondary-color);
  font-size: 24px;
}

.status-message.success p {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.status-message.error {
  background: rgba(255, 107, 107, 0.1);
  border-color: #ff6b6b;
}

.status-message.error i {
  color: #ff6b6b;
  font-size: 24px;
}

.status-message.error p {
  color: #d63031;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

/* BUTTONS */
.btn-primary {
  padding: 18px 35px;
  background-image: linear-gradient(
    to right,
    rgb(23, 99, 62),
    rgb(12, 66, 105),
    rgb(23, 99, 62)
  );
  background-size: 200% 100%;
  background-position-x: 0%;
  background-position-y: 50%;
  color: var(--white-color);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--small-text-size);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  opacity: 1 !important;
}

.btn-primary:hover {
  background: var(--secondary-color);
}

/* Icon spacing for nav buttons */
#prevBtn i {
  margin-right: 8px;
}
#nextBtn i {
  margin-left: 8px;
}

/* FORM NAVIGATION */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--med-grey-color);
}

.navigation-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* FOOTER */
footer {
  background: var(--darken-blue-color);
  padding: 30px 0;
  margin-top: 60px;
  border-top: 1px solid var(--dark-blue-color);
}

footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-content p {
  color: var(--white-color);
  margin: 0;
  font-weight: 600;
  font-size: var(--small-text-size);
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: var(--white-color);
  font-size: 13px;
  transition: color 0.3s ease;
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

/* RESPONSIVE */
@media screen and (max-width: 1500px) {
  .button-top {
    bottom: 25px;
    right: 25px;
  }
}

@media screen and (max-width: 768px) {
  .simulator-page {
    padding: 30px 0;
  }

  .simulator-header {
    padding-top: 20px;
    text-align: left;
  }

  .container {
    padding: 0 20px;
  }

  .simulator-header h1 {
    font-size: 2em;
  }

  .simulator-form-container {
    padding: 30px;
    min-height: auto;
    max-width: 100%;
  }

  .progress-bar {
    height: 15px;
  }

  .step-marker {
    height: 15px;
  }

  .step-marker span {
    font-size: 10px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-previous {
    width: 100%;
    justify-content: center;
  }

  .navigation-right {
    width: 100%;
    gap: 15px;
  }

  .button-top {
    height: 60px;
    width: 60px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .calculator-inputs {
    flex-direction: column;
    gap: 15px;
  }

  .calculator-inputs .input-group {
    width: 100%;
  }

  .surface-types {
    grid-template-columns: 1fr;
  }

  .quote-details {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    align-items: center;
  }

  .footer-infos {
    text-align: center;
    gap: 8px;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-direction: row;
  }
}

@media screen and (max-width: 480px) {
  .simulator-page {
    padding: 20px 0;
  }

  .simulator-header {
    padding-top: 30px;
    text-align: left;
  }

  .container {
    padding: 0 20px;
  }

  .simulator-header h1 {
    font-size: 1.8em;
  }

  .simulator-form-container {
    padding: 25px;
    min-height: auto;
    max-width: 100%;
  }

  .progress-bar {
    height: 12px;
  }

  .step-marker span {
    font-size: 9px;
  }

  .step-content h2 {
    font-size: 1.5em;
  }

  .price-value {
    font-size: 2em;
  }

  .calculator-inputs .input-group {
    width: 100%;
  }

  footer .container {
    align-items: center;
  }

  .footer-links {
    flex-direction: row;
    gap: 15px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-previous {
    width: 100%;
  }

  .navigation-right {
    width: 100%;
  }
}
