/* Contact page only — scoped form & layout (no global form/input/label rules) */

.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  min-width: 0;
  max-width: 100%;
}

.contact-section .contact-content {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  max-width: calc(100% - 550px);
}

.contact-form-wrapper {
  width: 500px;
  max-width: 500px;
  flex-shrink: 0;
  background: var(--white);
  padding: 2rem 1.75rem 2.25rem;
  box-shadow: var(--shadow-md);
  margin-top: -7.5rem;
  position: relative;
  z-index: 1;
}

.contact-form-wrapper__title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-form-wrapper__intro {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-form-wrapper__intro a {
  color: var(--blue);
  text-decoration: none;
}

.contact-form-wrapper__intro a:hover {
  color: var(--blue-hover);
}

/* ── sv-contact-form (fully isolated) ── */

.sv-contact-form {
  display: block;
  width: 100%;
}

.sv-contact-form input,
.sv-contact-form textarea,
.sv-contact-form button {
  font: inherit;
}

.sv-form-group {
  margin-bottom: 20px;
}

.sv-contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}

.sv-contact-form input[type="text"],
.sv-contact-form input[type="email"],
.sv-contact-form input[type="tel"],
.sv-contact-form input[type="number"] {
  width: 100%;
  height: 45px;
  padding: 10px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}

.sv-contact-form textarea {
  height: 150px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  resize: none;
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}

.sv-contact-form input:focus,
.sv-contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.sv-contact-form__submit {
  margin-top: 0.25rem;
  min-width: 10rem;
}

.sv-contact-form__submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.sv-contact-form__feedback {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  line-height: 1.5;
  border-radius: 2px;
  margin-top: 1rem;
}

.sv-contact-form__feedback[hidden] {
  display: none;
}

.sv-contact-form__feedback--success {
  color: #1b5e20;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.sv-contact-form__feedback--error {
  color: #b71c1c;
  background: #ffebee;
  border: 1px solid #ef9a9a;
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-section .contact-content {
    width: 100%;
    max-width: 100%;
  }

  .contact-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }
}
