.contact-form {
  padding: 2rem 10vw;
}

.contact-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.contact-form .form {
  width: 100%;
  padding-top: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
}

.contact-form .form .left {
  width: 50%;
}

.contact-form .form .left .row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ===== Variation 3 — Map with overlay ===== */
.v3-map-container {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(3, 169, 245, 0.2);
  box-shadow: 0 4px 20px rgba(3, 169, 245, 0.1), 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.v3-map-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(3, 169, 245, 0.18), 0 2px 8px rgba(0,0,0,0.08);
}
.v3-map-container img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.v3-map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(1, 30, 43, 0.95) 0%, rgba(1, 30, 43, 0.88) 50%, rgba(1, 30, 43, 0.5) 75%, rgba(1, 30, 43, 0.15) 90%, transparent 100%);
  padding: 3.5rem 1.4rem 1.4rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.v3-overlay-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.v3-overlay-row svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-color);
  fill: none;
  flex-shrink: 0;
}
.v3-overlay-row .metro-circles {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.v3-overlay-row .metro-circle {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}
.v3-overlay-row .metro-circle.mc-green-dark { background-color: rgb(67, 86, 67); }
.v3-overlay-row .metro-circle.mc-green-secondary { background-color: rgb(134, 193, 16); }
.v3-overlay-row .metro-circle.mc-green { background-color: green; }
.v3-overlay-row .metro-circle.mc-blue { background-color: rgb(17, 102, 199); }
.v3-overlay-row .metro-circle.mc-violet { background-color: rgb(44, 2, 74); }
.v3-overlay-row .rer-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin: 0 0.2rem;
}
.v3-overlay-row .metro-circle.mc-red {
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
}
.v3-overlay-row .metro-circle.mc-indigo {
  background: transparent;
  border: 2px solid #9b59b6;
  color: #9b59b6;
}

.v3-gmaps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: color 0.2s;
}
.v3-gmaps-link:hover { color: white; }
.v3-gmaps-link svg {
  stroke: var(--primary-color);
  fill: none;
}
.v3-gmaps-link:hover svg { stroke: white; }

/* Bottom row: phone + address + qualiopi */
.v3-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 0.5rem;
}

.v3-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}
.v3-info-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.03em;
}
.v3-info-value {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--title-color, #011e2b);
}

.v3-icon-circle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v3-icon-phone {
  background: linear-gradient(135deg, #e8f4fd, #d1ecf9);
}
.v3-icon-phone svg { stroke: var(--primary-color); }
.v3-icon-address {
  background: linear-gradient(135deg, #fef3e8, #fde5c8);
}
.v3-icon-address svg { stroke: #e67e22; }

.v3-qualiopi-badge img {
  height: 80px;
  object-fit: contain;
  opacity: 1;
}

@media only screen and (max-width: 876px) {
  .v3-map-container img {
    height: 320px;
  }
  .v3-bottom-row {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}

@media only screen and (max-width: 520px) {
  .v3-map-container img {
    height: 220px;
  }
  .v3-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .v3-qualiopi-badge {
    align-self: flex-end;
  }
}

.contact-form .form .right {
  width: 50%;
}

/* Qualiopi block — logo + description */
.qualiopi-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(31, 38, 135, 0.08);
}

.qualiopi-block img {
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.qualiopi-block__text p {
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--title-color);
  margin: 0;
}

.qualiopi-block__text p strong {
  color: var(--title-color);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

@media only screen and (max-width: 520px) {
  .qualiopi-block {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .qualiopi-block img {
    height: 60px;
  }
}

.contact-form .form .right p {
  max-width: 95%;
  font-size: 0.9rem;
}

.contact-form .form .right form {
  max-width: 100%;
  padding-top: 1.2rem;
}

.qualiopi {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.qualiopi img {
  width: 120px;
  height: 100%;
  object-fit: contain;
}

.input-field {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  border: 1.5px solid rgba(3, 169, 245, 0.15);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.04);
}

.input-field:hover {
  border-color: rgba(3, 169, 245, 0.3);
  box-shadow: 0 4px 16px rgba(3, 169, 245, 0.08);
}

.input-field:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(3, 169, 245, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.input-field svg {
  fill: #9ca3af;
  flex-shrink: 0;
  transition: fill 0.3s ease;
}

.input-field:focus-within svg {
  fill: var(--primary-color);
}

.input-field input,
.input-field textarea {
  border: none;
  outline: none;
  background: transparent;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--title-color);
  width: 100%;
}

.input-field input::placeholder,
.input-field textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.input-field textarea {
  resize: none;
  height: 80px;
}

.send-button {
  padding: 0.7rem 2rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  border: 1.5px solid var(--primary-color);
  transition: all 0.3s ease;
  outline: none;
  margin-top: 1rem;
  white-space: nowrap;
}

/* Loading state for send button */
.send-button.is-loading,
.send-button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.send-button.is-loading {
  pointer-events: none;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

.send-form {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.send-form > div:first-child {
  width: 100%;
}

.loader {
  display: none;
  position: absolute;
  top: 35%;
  left: 35%;
}

.loader.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.speeding-wheel {
  content: "";
  display: block;
  position: absolute;
  left: 48%;
  top: 40%;
  width: 63px;
  height: 63px;
  margin: 0 auto;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  border-left-color: transparent;
  border-right-color: transparent;
  animation: cssload-spin 500ms infinite linear;
  -o-animation: cssload-spin 500ms infinite linear;
  -ms-animation: cssload-spin 500ms infinite linear;
  -webkit-animation: cssload-spin 500ms infinite linear;
  -moz-animation: cssload-spin 500ms infinite linear;
}

.tip {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.g-recaptcha {
  margin-top: 1rem !important;
}

/* Hide reCAPTCHA v3 badge — required legal text is in footer */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Feedback messages */
.contact-feedback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 1rem;
  animation: feedbackSlideIn 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-feedback--success {
  background: rgba(240, 253, 244, 0.85);
  border: 1.5px solid #bbf7d0;
  color: #166534;
}

.contact-feedback--error {
  background: rgba(254, 242, 242, 0.85);
  border: 1.5px solid #fecaca;
  color: #991b1b;
}

@keyframes feedbackSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Spinner in send button */
.send-button__spinner {
  animation: button-spin 0.75s linear infinite;
  width: 1em;
  height: 1em;
}

.send-button.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.status {
  font-size: 0.8rem;
  color: crimson;
  font-weight: 500;
  margin: 0.5rem;
}

.handicap {
  text-align: center;
  font-weight: 400;
  padding-top: 2rem;
  font-size: 0.85rem;
  padding-bottom: 1.5rem;
  color: #6b7280;
  line-height: 1.6;
}

.handicap p:first-child {
  font-weight: 600;
  color: var(--title-color);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

@keyframes cssload-spin {
  100% {
    transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-o-keyframes cssload-spin {
  100% {
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-ms-keyframes cssload-spin {
  100% {
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes cssload-spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-moz-keyframes cssload-spin {
  100% {
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.send-button:hover {
  box-shadow: 0 4px 16px rgba(3, 169, 245, 0.3);
  transform: translateY(-2px);
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

@media only screen and (max-width: 1200px) {
  .contact-form .form .right form {
    max-width: 100%;
  }
}

@media only screen and (max-width: 876px) {
  .contact-form {
    padding: 2rem 5vw;
  }

  .contact-form .header {
    max-width: 90%;
  }

  .contact-form .header .section-title {
    font-size: 1.3rem;
  }

  .contact-form .form {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-form .form .left,
  .contact-form .form .right {
    width: 100%;
  }

  .contact-form .form .right {
    padding-left: 0;
  }

  .contact-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 2px;
  }

  .contact-form .form .right form {
    max-width: 100%;
  }

  .row .input-field {
    width: 50%;
  }
}

@media only screen and (max-width: 520px) {
  .contact-form {
    padding: 1.5rem 4vw;
  }

  .contact-form .header {
    max-width: 100%;
  }

  .row h3 {
    font-size: 1rem;
  }

  .contact-form .header .section-title {
    font-size: 1.1rem;
  }
  .contact-form .form .right form {
    max-width: 100%;
  }

  .contact-form .form .right p {
    font-size: 13px;
    max-width: 100%;
  }

  .wrap {
    flex-direction: column;
    gap: 0;
  }
  .wrap .input-field {
    width: 100%;
  }

  .row .input-field {
    width: 100%;
  }

  .send-button {
    width: 100%;
    text-align: center;
  }

  .handicap {
    text-align: center;
    font-weight: 500;
    padding-bottom: 1.5rem;
    font-size: 0.85rem;
  }
}

@media only screen and (max-width: 350px) {
  .contact-form .form .right form {
    max-width: 100%;
  }

  .row h3 {
    font-size: 0.9rem;
  }
}

#toast {
  visibility: hidden;
  width: 100%;
  max-width: 450px;
  max-height: 50px !important;
  background: #f8ffff;
  border: 1px solid #bedfe6;
  border-left: 5px solid #2185d0;
  border-radius: 5px;
  padding: 15px;

  position: absolute;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    transform: translateY(0px);
    opacity: 1;
  }

  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

#toast.top {
  top: 20px;
  bottom: auto;
}

#toast.right {
  left: auto;
  right: 20px;
  position: fixed;
  width: max-content;
}

#toast.left {
  left: 20px;
  right: auto;
}

#toast.success {
  background: #fbfff8;
  border: 1px solid #bee6bf;
  border-left: 5px solid green;
  height: 50px;
  bottom: 0;
}

#toast.error {
  background: #fff8f8;
  border: 1px solid #e6bebe;
  border-left: 5px solid #d02121;
}

#toast.warning {
  background: #fffbf8;
  border: 1px solid #e6d0be;
  border-left: 5px solid #d06421;
}

#toast.info {
  background: rgba(0, 0, 255, 0.696);
  border: 1px solid var(--primary-color);
  border-left: 5px solid var(--primary-color);
  color: white;
}


/* ===== Contact Drawer ===== */

.contact-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.contact-drawer-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.contact-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 480px;
  max-width: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.contact-drawer.open {
  transform: translateX(0);
}

.contact-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.contact-drawer__header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue, #3a526a);
  margin: 0;
}

.contact-drawer__close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0 0.3rem;
  transition: color 0.2s;
}

.contact-drawer__close:hover {
  color: #333;
  background: none;
  transform: none;
}

.contact-drawer__body {
  padding: 1.5rem;
}

.contact-drawer__body .send-form {
  background: none;
  backdrop-filter: none;
}

.contact-drawer__body .input-field {
  margin-bottom: 0.8rem;
}

.contact-drawer__prefilled {
  background: #f0f7ff;
  border-left: 3px solid var(--primary-color, #03a9f5);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333;
}

.contact-drawer__prefilled strong {
  color: var(--dark-blue, #3a526a);
}

@media only screen and (max-width: 520px) {
  .contact-drawer {
    width: 100%;
  }
}
