/**
 * Berlin Contact page — scoped to body.pk-contact-berlin only.
 * Source: werkstatt-wp/briefs/Contact/contact-page-berlin-v1.html (main + form + aside; no header/footer).
 */

body.pk-contact-berlin {
  --green-primary: #17A24C;
  --green-hover: #2A6C4C;
  --green-light: #D6F0DC;
  --green-lighter: #EAF7EE;
  --red: #D83351;
  --red-soft: #F8DCE2;
  --warning: #E89030;
  --text: #202A37;
  --text-soft: #525252;
  --text-faint: #737373;
  --white: #FFFFFF;
  --surface-warm: #FAFAF8;
  --border: #E5E5E5;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-brand-sm: 0 1px 3px rgba(23, 162, 76, 0.4);
  --shadow-brand-md: 0 12px 28px rgba(23, 162, 76, 0.28);
  --focus-ring: 0 0 0 3px rgba(23, 162, 76, 0.15);
  --focus-ring-error: 0 0 0 3px rgba(216, 51, 81, 0.15);
  --sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  font-family: var(--sans);
  background: var(--surface-warm) !important;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.pk-contact-berlin .pk-contact-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

body.pk-contact-berlin .page-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

body.pk-contact-berlin .kicker {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

body.pk-contact-berlin .kicker .rule {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-primary);
}

body.pk-contact-berlin .kicker .label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green-primary);
}

body.pk-contact-berlin .page-head h1 {
  font-size: clamp(36px, 4.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

body.pk-contact-berlin .page-head p {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.6;
}

body.pk-contact-berlin .contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

body.pk-contact-berlin .card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

body.pk-contact-berlin .form-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.pk-contact-berlin .field {
  display: flex;
  flex-direction: column;
}

body.pk-contact-berlin .field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

body.pk-contact-berlin .field-label .required {
  color: var(--red);
  margin-left: 2px;
}

body.pk-contact-berlin input[type="text"],
body.pk-contact-berlin input[type="email"],
body.pk-contact-berlin input[type="url"],
body.pk-contact-berlin input[type="tel"],
body.pk-contact-berlin select,
body.pk-contact-berlin textarea,
body.pk-contact-berlin .wpcf7-form-control:not([type="submit"]) {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

body.pk-contact-berlin input:focus-visible,
body.pk-contact-berlin select:focus-visible,
body.pk-contact-berlin textarea:focus-visible,
body.pk-contact-berlin .wpcf7-form-control:focus-visible {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: var(--focus-ring);
}

body.pk-contact-berlin input::placeholder,
body.pk-contact-berlin textarea::placeholder {
  color: var(--text-faint);
}

body.pk-contact-berlin select,
body.pk-contact-berlin .wpcf7-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

body.pk-contact-berlin textarea,
body.pk-contact-berlin .wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

body.pk-contact-berlin .field-help {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 6px;
}

body.pk-contact-berlin .char-counter {
  font-size: 13px;
  color: var(--text-faint);
  text-align: right;
  margin-top: 6px;
}

body.pk-contact-berlin .char-counter.warn {
  color: var(--warning);
}

body.pk-contact-berlin .char-counter.max {
  color: var(--red);
}

body.pk-contact-berlin .form-actions {
  margin-top: 28px;
}

/* Center the Turnstile widget above the full-width submit button. */
body.pk-contact-berlin .form-actions .cf7-cf-turnstile,
body.pk-contact-berlin .form-actions .cf-turnstile {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

body.pk-contact-berlin .form-actions .cf7-cf-turnstile {
  margin-bottom: 12px !important;
}

body.pk-contact-berlin .form-actions .cf-turnstile > div,
body.pk-contact-berlin .form-actions .cf-turnstile iframe {
  margin-left: auto;
  margin-right: auto;
}

body.pk-contact-berlin .form-actions .cf-turnstile-br {
  display: none;
}

body.pk-contact-berlin .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.pk-contact-berlin .btn-primary,
body.pk-contact-berlin input[type="submit"].btn-primary {
  background: var(--green-primary);
  color: var(--white) !important;
  border-color: var(--green-primary);
  box-shadow: var(--shadow-brand-sm);
  width: 100%;
  height: auto;
  padding: 18px 36px;
  font-size: 17px;
}

body.pk-contact-berlin .btn-primary:hover,
body.pk-contact-berlin input[type="submit"].btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand-md);
}

body.pk-contact-berlin .btn-primary:focus-visible,
body.pk-contact-berlin input[type="submit"].btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-brand-md), var(--focus-ring);
}

body.pk-contact-berlin .btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

body.pk-contact-berlin .btn:hover .btn-arrow {
  transform: translateX(3px);
}

body.pk-contact-berlin .aside-card {
  background: var(--green-lighter);
  border: 1px solid var(--green-light);
  border-radius: var(--r-lg);
  padding: 28px;
}

body.pk-contact-berlin .aside-card h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}

body.pk-contact-berlin .aside-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

body.pk-contact-berlin .aside-item:last-child {
  margin-bottom: 0;
}

body.pk-contact-berlin .aside-item .ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--white);
  color: var(--green-primary);
  box-shadow: var(--shadow-sm);
}

body.pk-contact-berlin .aside-item .ico svg {
  width: 17px;
  height: 17px;
}

body.pk-contact-berlin .aside-item .t {
  font-weight: 700;
  font-size: 15px;
}

body.pk-contact-berlin .aside-item .d {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

body.pk-contact-berlin .aside-item .d a {
  color: var(--green-primary);
  text-decoration: none;
  font-weight: 500;
}

body.pk-contact-berlin .aside-item .d a:hover {
  text-decoration: underline;
}

body.pk-contact-berlin .success {
  display: none;
  text-align: center;
  padding: 24px 8px;
}

body.pk-contact-berlin .success.show {
  display: block;
}

body.pk-contact-berlin .success .check {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-primary);
}

body.pk-contact-berlin .success .check svg {
  width: 28px;
  height: 28px;
}

body.pk-contact-berlin .success h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

body.pk-contact-berlin .success p {
  color: var(--text-soft);
  line-height: 1.6;
}

/* CF7 overrides */
body.pk-contact-berlin .wpcf7-form {
  max-width: none;
  margin: 0;
}

body.pk-contact-berlin .wpcf7-form .ajax-loader {
  display: none !important;
}

body.pk-contact-berlin .wpcf7-not-valid,
body.pk-contact-berlin .wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--red) !important;
}

body.pk-contact-berlin .wpcf7-not-valid:focus-visible,
body.pk-contact-berlin .wpcf7-form-control.wpcf7-not-valid:focus-visible {
  box-shadow: var(--focus-ring-error) !important;
}

body.pk-contact-berlin .wpcf7-not-valid-tip {
  font-size: 13px;
  color: var(--red);
  margin-top: 6px;
  border: none;
  background: transparent;
  padding: 0;
}

body.pk-contact-berlin .wpcf7-response-output {
  border-radius: var(--r-sm);
  border-width: 1.5px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 16px 0 0;
}

body.pk-contact-berlin form.invalid .wpcf7-response-output,
body.pk-contact-berlin form.unaccepted .wpcf7-response-output,
body.pk-contact-berlin form.payment-required .wpcf7-response-output {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--text);
}

body.pk-contact-berlin form.sent .wpcf7-response-output {
  display: none;
}

body.pk-contact-berlin .wpcf7-form-control-wrap {
  display: block;
}

body.pk-contact-berlin .wpcf7-spinner {
  display: none;
}

@media (max-width: 860px) {
  body.pk-contact-berlin .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body.pk-contact-berlin .pk-contact-wrap {
    padding: 44px 20px 72px;
  }

  body.pk-contact-berlin .card {
    padding: 24px;
  }
}
