/* Formulaires inscription + pages de confirmation — Réseau Esthétique (#2c5b9e) */

#AddListingPage,
#ThankYouPage,
#ThanksPage {
  background: #f8f9fa;
  padding: 0 0 3rem;
}

#AddListingHero {
  margin: 0 calc(50% - 50vw) 22px;
  padding: 52px 24px 42px;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: linear-gradient(135deg, #4a9e44 0%, #6EC166 100%);
  box-shadow: none;
  color: #ffffff;
}

#ThanksHero {
  margin: 0 0 2rem;
  padding: 3.2rem 1rem 2.6rem;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: linear-gradient(135deg, #4a9e44 0%, #6EC166 100%);
  box-shadow: none;
  color: #ffffff;
}

#AddListingHero .add-kicker,
#ThankYouHero .thankyou-kicker,
#ThanksHero .thankyou-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#AddListingHero h1,
#ThanksHero h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.16;
}

#AddListingHero p,
#ThanksHero p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.6;
}

#AddListingContent,
#ThankYouContent {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 22px;
}

.add-card,
.thankyou-card,
.thanks-card {
  padding: 22px;
  border: 1px solid #c5d9eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(44, 91, 158, 0.08);
}

.add-card h2,
.thankyou-card h2,
.thanks-card h2 {
  margin: 0 0 10px;
  color: #2c5b9e;
  font-size: 24px;
  line-height: 1.2;
}

.add-card h3,
.thanks-card h3 {
  margin: 0 0 10px;
  color: #2c5b9e;
  font-size: 18px;
  line-height: 1.3;
}

.add-card p,
.add-card li,
.add-card label,
.add-card .form-note,
.thankyou-card p,
.thankyou-card li,
.thanks-card p {
  color: #404040;
  font-size: 15px;
  line-height: 1.65;
}

.add-card ul,
.thankyou-card ul {
  margin: 0;
  padding-left: 20px;
}

.add-highlight,
.thankyou-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
}

.add-intro {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.add-intro img {
  width: 100%;
  max-width: 168px;
  height: auto;
  display: block;
}

.listing-form {
  display: grid;
  gap: 18px;
}

.listing-section {
  padding: 18px;
  border: 1px solid #d4e3f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.listing-field,
.listing-field-full {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.listing-field-full {
  grid-column: 1 / -1;
}

.listing-field label,
.listing-field-full label {
  margin: 0;
  color: #5a5a5a;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.listing-input,
.listing-select,
.listing-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c5d9eb;
  border-radius: 14px;
  background-color: #ffffff;
  color: #2f2f2f;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.listing-textarea {
  min-height: 120px;
  resize: vertical;
}

.listing-input:focus,
.listing-select:focus,
.listing-textarea:focus {
  outline: none;
  border-color: #2c5b9e;
  box-shadow: 0 0 0 4px rgba(44, 91, 158, 0.12);
}

.listing-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.listing-service-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d4e3f2;
  border-radius: 14px;
  background: #fff;
  margin: 0;
  cursor: pointer;
}

.listing-service-option input {
  margin-top: 4px;
  accent-color: #2c5b9e;
}

.listing-service-option span {
  color: #434343;
  font-size: 14px;
  line-height: 1.5;
}

.listing-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.listing-button {
  min-width: 180px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e4678 0%, #2c5b9e 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 8px 18px rgba(44, 91, 158, 0.22);
  cursor: pointer;
}

.listing-button:hover,
.listing-button:focus {
  filter: brightness(1.05);
}

.add-steps {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.add-step {
  padding: 14px 16px;
  border: 1px solid #d4e3f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.add-step strong {
  display: block;
  margin-bottom: 4px;
  color: #2c5b9e;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.add-support {
  display: grid;
  gap: 16px;
}

.add-contact-link {
  color: #2c5b9e;
  font-weight: bold;
  text-decoration: none;
}

.add-contact-link:hover,
.add-contact-link:focus {
  text-decoration: underline;
}

/* Thank you — listing submission */
#ThankYouHero {
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid #c5d9eb;
  border-radius: 18px;
  text-align: left;
  background:
    radial-gradient(circle at top right, rgba(44, 91, 158, 0.09), transparent 26%),
    linear-gradient(160deg, #ffffff 0%, #eef5fb 100%);
  box-shadow: 0 12px 28px rgba(44, 91, 158, 0.08);
}

#ThankYouHero .thankyou-kicker {
  background-color: #d4e3f2;
  color: #2c5b9e;
}

#ThankYouHero h1 {
  color: #2c5b9e;
}

#ThankYouHero p {
  color: #4d4d4d;
}

.thankyou-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background-color: #eef5fb;
  color: #2c5b9e;
  font-weight: bold;
}

.thankyou-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3bb273;
  box-shadow: 0 0 0 6px rgba(59, 178, 115, 0.14);
}

.thankyou-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.thankyou-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
}

.thankyou-link-primary {
  background: linear-gradient(135deg, #4a9e44 0%, #6EC166 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(74, 158, 68, 0.22);
}

.thankyou-link-secondary {
  border: 1px solid #c5d9eb;
  color: #2c5b9e;
  background-color: #ffffff;
}

#ThanksContent {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.thanks-card {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.thanks-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e4678;
  border-left: 4px solid #2c5b9e;
  padding-left: 0.7rem;
  margin-bottom: 1rem;
}

.thanks-card p {
  color: #444;
  line-height: 1.7;
  margin: 0;
}

@media screen and (max-width: 900px) {
  #AddListingPage,
  #ThankYouPage,
  #ThanksPage {
    padding: 0 0 24px;
  }

  #AddListingHero,
  #ThanksHero {
    padding: 34px 16px 28px;
  }

  #AddListingContent,
  #ThankYouContent,
  .listing-grid,
  .listing-services,
  .add-intro {
    grid-template-columns: 1fr;
  }

  .add-card,
  .thankyou-card,
  .listing-section,
  .thanks-card {
    padding: 16px;
    border-radius: 14px;
  }

  .add-intro img {
    max-width: 140px;
  }
}

@media screen and (max-width: 520px) {
  #AddListingHero h1,
  #ThanksHero h1,
  #ThankYouHero h1 {
    font-size: 24px;
  }

  .add-card h2,
  .thankyou-card h2 {
    font-size: 21px;
  }

  .listing-submit {
    align-items: stretch;
  }

  .listing-button {
    width: 100%;
  }
}
