/**
 * Brico Kitchen - page "Prendre rendez-vous" (formulaire de RDV / devis).
 */

.bk-appointment-page {
  font-family: "Segoe UI", Arial, sans-serif;
}

/* =========================================================
   HERO
========================================================= */
.bk-appointment-hero {
  background: linear-gradient(135deg, #172554 0%, #1e44bc 62%, #4e5fc6 100%);
  padding: 56px 24px 64px;
  color: #ffffff;
  text-align: center;
}

.bk-appointment-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.bk-appointment-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.bk-appointment-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #ffffff;
}

.bk-appointment-hero p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

/* =========================================================
   FORM SECTION
========================================================= */
.bk-appointment-form-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px 72px;
  margin-top: -32px;
}

.bk-appointment-form {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border: 1px solid rgba(30, 68, 188, 0.10);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bk-appointment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bk-appointment-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bk-appointment-field span,
.bk-appointment-field legend {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2937;
}

.bk-appointment-field--full {
  grid-column: 1 / -1;
}

.bk-appointment-field input[type="text"],
.bk-appointment-field input[type="tel"],
.bk-appointment-field input[type="email"],
.bk-appointment-field input[type="date"],
.bk-appointment-field input[type="number"],
.bk-appointment-field input[type="file"],
.bk-appointment-field select,
.bk-appointment-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid rgba(47, 59, 159, 0.16);
  border-radius: 14px;
  background: #f8fafc;
  color: #1f2937;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.bk-appointment-field textarea {
  min-height: 90px;
  padding: 12px 16px;
  resize: vertical;
}

.bk-appointment-field input[type="file"] {
  padding: 11px 16px;
  font-weight: 500;
  font-size: 13.5px;
}

.bk-appointment-field input:focus,
.bk-appointment-field select:focus,
.bk-appointment-field textarea:focus {
  outline: none;
  border-color: #1e44bc;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 68, 188, 0.10);
}

.bk-appointment-field input:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 38, 38, 0.4);
}

fieldset.bk-appointment-field {
  border: 0;
  padding: 0;
  margin: 0;
}

.bk-appointment-hint {
  margin: -8px 0 0;
  font-size: 12.5px;
  color: #6b7280;
}

/* Choice pills (radios) */
.bk-appointment-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bk-appointment-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid rgba(47, 59, 159, 0.16);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bk-appointment-choice input {
  accent-color: #1e44bc;
}

.bk-appointment-choice span {
  font-size: 14px;
  font-weight: 650;
  color: #1f2937;
}

.bk-appointment-choice:has(input:checked) {
  border-color: #1e44bc;
  background: #eef1ff;
}

.bk-appointment-conditional {
  animation: bk-appointment-fade-in 0.25s ease both;
}

@keyframes bk-appointment-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   NOTICE (erreurs / succès)
========================================================= */
.bk-appointment-notice {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.bk-appointment-notice.is-error {
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #b42318;
}

.bk-appointment-notice.is-success {
  border: 1px solid rgba(20, 145, 96, 0.32);
  background: #effaf5;
  color: #0b7650;
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */
.bk-appointment-submit {
  display: inline-grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;

  width: 100%;
  min-height: 62px;
  margin-top: 4px;
  padding: 9px 20px;

  border: 1px solid #1e44bc;
  border-radius: 18px;
  background: linear-gradient(135deg, #172554 0%, #1e44bc 62%, #4e5fc6 100%);
  color: #ffffff;

  font-family: inherit;
  font-size: 16px;
  font-weight: 750;
  text-align: left;

  cursor: pointer;
  box-shadow: 0 16px 34px rgba(30, 68, 188, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.bk-appointment-submit:hover,
.bk-appointment-submit:focus-visible {
  border-color: #5567cf;
  background: linear-gradient(135deg, #1e3a8a 0%, #3155c6 58%, #6679e2 100%);
  box-shadow: 0 19px 40px rgba(30, 68, 188, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.bk-appointment-submit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
}

.bk-appointment-submit__icon svg {
  width: 20px;
  height: 20px;
}

.bk-appointment-submit__label::after {
  content: "\2192";
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.bk-appointment-submit:hover .bk-appointment-submit__label::after {
  transform: translateX(3px);
}

.bk-appointment-submit:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  transform: none;
}

.bk-appointment-submit.is-loading .bk-appointment-submit__icon {
  animation: bk-appointment-pulse 0.75s ease-in-out infinite alternate;
}

.bk-appointment-submit.is-success {
  border-color: rgba(20, 145, 96, 0.5);
  background: linear-gradient(135deg, #0f5132 0%, #14915f 62%, #34c98c 100%);
}

@keyframes bk-appointment-pulse {
  from {
    transform: scale(0.9);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 640px) {
  .bk-appointment-form {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .bk-appointment-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bk-appointment-hero {
    padding: 44px 18px 56px;
  }
}
