.contact ::selection {
  background: white;
  color: black;
}

.contact ::-moz-selection {
  background: white;
  color: black;
}

.contact {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: black;
  padding: clamp(6vh, 10vh, 12vh) 0 0;
  gap: clamp(30px, 5vh, 60px);
}


.contact::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: white;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 5;
}

.contact::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: black;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 5;
}

/* --- Header Text --- */
.contact-text {
  text-align: center;
  z-index: 10;
  width: 100%;
  padding-left: clamp(1rem, 5%, 5rem);
  padding-right: clamp(1rem, 5%, 5rem);
}

.contact-text h5 {
  color: white;
}

.contact-text h2 {
  color: white;
}

.contact-text p {
  color: white;
  margin-top: clamp(2rem, 4vw, 4rem);
  text-align: center;
}

@media (max-width: 600px) {
  .contact-text p {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* --- Email wrapper --- */
.email-wrapper {
  position: relative;
  text-align: center;
  width: 100%;
}

#email-measure {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  font-family: "sohne-bold", sans-serif;
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  pointer-events: none;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#email {
  font-family: "sohne-medium";
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  background: transparent;
  border: none;
  color: white;
  text-align: center;
  outline: none;
  width: auto;
  min-width: min(280px, 90vw);
  max-width: none;
  transition:
    border-color 0.4s ease,
    opacity 0.4s ease,
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.4s ease;
}

.underline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px;
  height: 2px;
  width: 0px;
  border-radius: 4px;
  background-color: white;
  will-change: width, background-color, transform;
  pointer-events: none;
  box-shadow: none;
}

#email::placeholder {
  color: white;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#email:focus::placeholder {
  opacity: 0.4;
}

#email:focus {
  border-color: #ccc;
}

/* --- Contact Form --- */
.contact-form {
  width: min(90%, 520px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.contact-form label {
  font-family: "sohne-medium", sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.contact-form textarea {
  width: 100%;
  padding: clamp(10px, 1.5vw, 14px) 16px;
  border: none;
  border-bottom: 2px solid white;
  background: transparent;
  color: white;
  font-family: "sohne-regular", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.5;
  outline: none;
  border-radius: 0;
  min-height: 120px;
  max-height: 200px;
  resize: vertical;
  text-align: center;
  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    color 0.4s ease;
}

.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s ease;
}

.contact-form textarea:focus::placeholder {
  opacity: 0.3;
}

.contact-form textarea:focus {
  border-color: #666;
}

/* --- Form feedback --- */
.contact .button-me,
.contact .button-me-code-visible,
.contact .button-me-code-animated {
  color: white;
}

#form-feedback {
  font-family: "sohne", sans-serif;
  font-size: clamp(12px, 1vw, 14px);
  text-align: center;
  margin-top: 4px;
  padding-bottom: clamp(20px, 4vh, 40px);
  opacity: 0;
  transition: opacity 0.35s ease;
  min-height: 1.4em;
  color: white;
}

#form-feedback.feedback-success {
  color: #2a9d2a;
}

#form-feedback.feedback-error {
  color: #d9342a;
}

/* --- Testimonial --- */
.testimonial-card {
  width: min(90%, 680px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 40px);
  padding-bottom: clamp(20px, 4vh, 40px);
  text-align: center;
}

.testimonial__stars {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  align-items: center;
}

.testimonial__stars svg {
  width: clamp(22px, 2.2vw, 32px);
  height: clamp(22px, 2.2vw, 32px);
}

.testimonial__quote {
  font-family: "sohne";
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.8;
  color: white;
  text-align: center;
  font-style: italic;
  border: none;
  margin: 0;
  padding: 0;
}

.testimonial__author {
  font-family: "sohne";
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  text-align: center;
  margin-top: 1rem;
}

/* â”€â”€ Contact Section Wrapper â”€â”€ */
.contact-section ::selection {
  background: #0f0f0f;
  color: white;
}

.contact-section ::-moz-selection {
  background: #0f0f0f;
  color: white;
}

.contact-section {
  position: relative;
  width: 100%;
  background: #fff;
  padding: clamp(12vh, 19vh, 24vh) 0 clamp(4vh, 6vh, 8vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, 5vh, 60px);
  z-index: 10;
}

@media (max-width: 600px) {
  .contact-section {
    padding-top: 120px;
  }
}

.contact-section .contact-text {
  text-align: center;
  width: 100%;
  padding-left: clamp(1rem, 5%, 5rem);
  padding-right: clamp(1rem, 5%, 5rem);
}

.contact-section .contact-text h5,
.contact-section .contact-text h2 {
  color: #0f0f0f;
}

.contact-section .cf-card {
  width: calc(100% - clamp(2rem, 6vw, 4rem));
  margin: 0;
}

/* â”€â”€ Contact Form Card â”€â”€ */
.cf-card {
  margin: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  padding: 2em;
  background: #fff;
  border: 2px dashed #0f0f0f;
  border-radius: 1em;
  display: flex;
  flex-direction: column;
  gap: 4em;
}

.cf-meta {
  display: flex;
  gap: 1em;
  width: 100%;
}

.cf-meta-item {
  flex: 1;
  font-family: "sohne", sans-serif;
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 0.06em;
  color: #0f0f0f;
}

.cf-meta-item:nth-child(2) {
  text-align: center;
}

.cf-meta-item:nth-child(3) {
  text-align: right;
}

.cf-body {
  display: flex;
  gap: 2em;
}

.cf-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4em;
}

.cf-header {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.cf-header h3 {
  font-family: "sohne-bold", sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  color: #0f0f0f;
  text-transform: uppercase;
}

.cf-header p {
  font-family: "sohne", sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
  color: #0f0f0f;
  width: 75%;
}

.cf-availability {
  width: 75%;
  display: flex;
  justify-content: space-between;
  gap: 1em;
  border-top: 2px dashed #0f0f0f;
  padding: 0.5em 0;
}

.cf-availability p {
  font-family: "sohne", sans-serif;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.06em;
  color: #0f0f0f;
}

.cf-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cf-right form {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  width: 100%;
}

.cf-field {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.cf-card #email {
  font-family: "sohne-medium", sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: -0.01em;
  background: rgba(15, 15, 15, 0.06);
  border: none;
  color: #0f0f0f;
  text-align: left;
  outline: none;
  width: 100% !important;
  min-width: unset !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: clamp(10px, 1.3vw, 13px) 16px;
  border-radius: 0.4em;
  transition: background 0.3s ease;
}

.cf-card #email::placeholder {
  color: rgba(15, 15, 15, 0.5);
  opacity: 1;
}

.cf-card #email:focus {
  background: rgba(15, 15, 15, 0.1);
  border-color: unset;
}

.cf-card #email:focus::placeholder {
  opacity: 0.35;
}

.cf-card #email-measure {
  display: none;
}

.cf-card .underline {
  display: none;
}

.cf-card textarea#message {
  width: 100%;
  padding: clamp(10px, 1.3vw, 13px) 16px;
  border: none;
  border-radius: 0.4em;
  background: rgba(15, 15, 15, 0.06);
  color: #0f0f0f;
  font-family: "sohne", sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.6;
  outline: none;
  min-height: 140px;
  max-height: 240px;
  resize: vertical;
  text-align: left;
  transition: background 0.3s ease;
}

.cf-card textarea#message::placeholder {
  color: rgba(15, 15, 15, 0.5);
}

.cf-card textarea#message:focus {
  background: rgba(15, 15, 15, 0.1);
}

.cf-btn {
  width: 100%;
  padding: 0.9em 1.5em;
  background: #fff;
  color: #0f0f0f;
  font-family: "sohne-bold", sans-serif;
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px dashed #0f0f0f;
  border-radius: 0.4em;
  cursor: pointer;
  box-shadow: 4px 4px 0 0 #0f0f0f;
  transform: translate(-2px, -2px);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cf-btn:hover {
  background: #0f0f0f;
  color: #fff;
  border: 2px solid #0f0f0f;
  box-shadow: 1px 1px 0 0 #0f0f0f;
  transform: translate(1px, 1px);
}

.cf-card #form-feedback {
  font-family: "sohne", sans-serif;
  font-size: clamp(11px, 0.9vw, 13px);
  color: #0f0f0f;
  opacity: 0;
  transition: opacity 0.35s ease;
  height: 1.6em;
  line-height: 1.6;
  overflow: hidden;
  padding: 0;
  text-align: center;
  flex-shrink: 0;
}

/* --- Submit button loading state --- */
.cf-btn--loading {
  pointer-events: none;
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
}

.cf-btn--loading .cf-btn-text {
  opacity: 0.6;
}

.cf-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px dashed currentColor;
  border-radius: 50%;
  animation: cf-spin 0.9s linear infinite;
  flex-shrink: 0;
}

.cf-btn--loading .cf-spinner {
  display: inline-block;
}

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

.cf-card #form-feedback.feedback-success {
  color: #2a7a2a;
}

.cf-card #form-feedback.feedback-error {
  color: #c0392b;
}

@media (max-width: 900px) {
  .cf-card {
    margin: 1.25em;
    gap: 2.5rem;
  }

  .cf-meta {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .cf-meta-item:nth-child(1) {
    text-align: left;
    flex: unset;
  }

  .cf-meta-item:nth-child(2) {
    display: none;
  }

  .cf-meta-item:nth-child(3) {
    text-align: right;
    flex: unset;
  }

  .cf-body {
    flex-direction: column;
    gap: 3em;
  }

  .cf-left {
    gap: 2em;
  }

  .cf-header p,
  .cf-availability {
    width: 100%;
  }

  .cf-availability {
    text-align: center;
    gap: 0.25em;
  }

  .cf-header h3 {
    text-align: center;
  }

  .cf-header p {
    text-align: center;
  }
}