/**
 * Contact page – Book a pickup: topic + form left, 4 cards right, map below
 */

.sbv2-contact-page {
  padding-bottom: 0;
}

/* Small screen: push page up 3 cm */
@media (max-width: 1023px) {
  main.sbv2-contact-page {
    padding-top: calc(3cm - 3cm) !important;
  }
}

/* Override main padding for contact page on big screens - same distance as Our Story */
@media (min-width: 1024px) {
  main.sbv2-contact-page {
    padding-top: 1.3cm !important;
  }
}

.sbv2-contact-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Big screen: ensure wrapper extends to full width for right-side cards */
@media (min-width: 1024px) {
  .sbv2-contact-wrap.contact-wrap {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 1.5rem !important;
    width: 100% !important;
  }
}

.sbv2-contact-notice {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 500;
}
.sbv2-contact-notice-success {
  background: rgba(37, 211, 102, 0.12);
  color: #0d5c2e;
}
.sbv2-contact-notice-error {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
}

.sbv2-contact-main {
  padding: 2.5rem 0 3rem;
  background: #fff;
}

/* Big screen: same distance from header as Our Story (60px below main) */
@media (min-width: 1024px) {
  .sbv2-contact-main {
    padding-top: 60px !important;
  }
  .contact-wrap {
    display: grid !important;
    grid-template-columns: 6.25cm auto !important; /* Form fixed width, cards auto width on right */
    gap: 1.5rem !important; /* Reduced gap - cards 3cm closer to form */
    font-size: 90%;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
  }
  .contact-main {
    padding-left: 24px;
    max-width: 6.25cm !important;
    width: 6.25cm !important;
    grid-column: 1;
  }
  .contact-aside {
    grid-column: 2;
    position: relative !important;
    top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    align-self: flex-start !important;
    justify-content: flex-start !important;
    width: 360px !important;
    max-width: 360px !important;
    margin-left: auto !important;
  }
  /* The aside IS the cards container, so style it directly */
  .contact-aside.sbv2-contact-cards {
    position: static !important;
    margin-left: 0 !important;
    top: auto !important;
    width: 100% !important;
  }
  .contact-wrap .sbv2-contact-heading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 400 !important;
    color: var(--color-dark, #1a1a1a) !important;
    margin: 0 0 20px 0 !important;
    white-space: nowrap !important;
  }
  .sbv2-contact-topic-label {
    white-space: nowrap !important;
  }
}

.sbv2-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

/* Big screen: override layout to use 2-column grid */
@media (min-width: 1024px) {
  .sbv2-contact-layout.contact-wrap {
    display: grid !important;
    grid-template-columns: 6.25cm 360px !important;
    gap: 48px !important;
  }
}

.sbv2-contact-hero-inline {
  margin-bottom: 2rem;
}

.sbv2-contact-heading {
  font-family: 'Handlee', cursive !important;
  /* 15% smaller heading */
  font-size: clamp(2.125rem, 6.8vw, 3.825rem) !important;
  font-weight: 400 !important;
  color: var(--color-dark, #1a1a1a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.sbv2-contact-book {
  max-width: 42rem;
}

/* Big screen: squeeze form to 5cm width */
@media (min-width: 1024px) {
  .sbv2-contact-book {
    max-width: 6.25cm !important; /* Increased to accommodate 25% wider buttons */
    width: 6.25cm !important;
  }
}

.sbv2-contact-topic {
  margin-bottom: 2rem;
}

.sbv2-contact-topic-label {
  font-family: 'Handlee', cursive !important;
  font-size: clamp(1.25rem, 4vw, 2.25rem) !important;
  font-weight: 400 !important;
  color: var(--color-dark, #1a1a1a) !important;
  margin: 0 0 0.75rem !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sbv2-contact-topic-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Big screen: buttons in one line, half size */
@media (min-width: 1024px) {
  .sbv2-contact-topic-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .sbv2-contact-topic-btn {
    flex: 1 1 33.33%;
    padding: 0.65rem 1.6875rem !important; /* 25% wider than original 1.35rem */
    font-size: 0.9375rem !important;
    min-width: 0;
    box-sizing: border-box;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.sbv2-contact-topic-btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-dark, #1a1a1a);
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sbv2-contact-topic-btn:hover {
  border-color: var(--color-gold, #8B7355);
  color: var(--color-gold, #8B7355);
}

.sbv2-contact-topic-btn.sbv2-contact-btn-active {
  background: var(--color-dark, #1a1a1a);
  border-color: var(--color-dark, #1a1a1a);
  color: #fff;
}

.sbv2-contact-form-wrap {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sbv2-contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 0;
  max-width: 100%;
}

@media (min-width: 640px) {
  .sbv2-contact-form {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.25rem;
  }
  .sbv2-contact-form-row { grid-column: span 1; }
  .sbv2-contact-form-row-address,
  .sbv2-contact-form-row-time,
  .sbv2-contact-form-actions { grid-column: 1 / -1; }
}

.sbv2-contact-form-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

/* Big screen: make form rows stack vertically and allow text to wrap across 6 lines */
@media (min-width: 1024px) {
  .sbv2-contact-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .sbv2-contact-form-row .sbv2-contact-form-sentence {
    white-space: normal;
    flex-shrink: 1;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
    width: 100%;
  }
  .sbv2-contact-form-row .sbv2-contact-form-input,
  .sbv2-contact-form-row .sbv2-contact-form-select,
  .sbv2-contact-form-row .sbv2-contact-form-textarea {
    width: 100%;
    flex: none;
  }
  .sbv2-contact-form-row-address .sbv2-contact-form-textarea {
    width: 100% !important;
    min-width: 100% !important;
  }
}

.sbv2-contact-form-row .sbv2-contact-form-sentence {
  white-space: nowrap;
  flex-shrink: 0;
}

.sbv2-contact-form-row .sbv2-contact-form-input,
.sbv2-contact-form-row .sbv2-contact-form-select {
  flex: 1;
  min-width: 0;
}

.sbv2-contact-form-sentence {
  font-family: 'Handlee', cursive !important;
  font-size: clamp(1.125rem, 3.6vw, 2.025rem) !important; /* Reduced by 10% */
  font-weight: 400 !important;
  color: var(--color-dark, #1a1a1a) !important;
  flex-shrink: 0;
}

.sbv2-contact-form-row-time .sbv2-contact-form-slots {
  flex: 1;
  min-width: 0;
}

.sbv2-contact-form-input,
.sbv2-contact-form-select,
.sbv2-contact-form-textarea {
  min-width: 120px;
  padding: 0.35rem 0;
  font-size: 0.9rem; /* Reduced by 10% from 1rem */
  font-family: 'Handlee', cursive;
  font-weight: 400;
  color: var(--color-dark, #1a1a1a);
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  outline: none;
  transition: border-color 0.2s ease;
}

.sbv2-contact-form-textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 1.5em;
  resize: none;
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25) !important;
  border-radius: 0;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.sbv2-contact-form-row-address .sbv2-contact-form-textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Big screen: ensure address textarea spans full width like other fields */
@media (min-width: 1024px) {
  .sbv2-contact-form-row-address .sbv2-contact-form-textarea {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
}

.sbv2-contact-form-input::placeholder,
.sbv2-contact-form-textarea::placeholder {
  color: #888;
}

.sbv2-contact-form-input:focus,
.sbv2-contact-form-select:focus,
.sbv2-contact-form-textarea:focus {
  border-color: var(--color-gold, #8B7355);
}

.sbv2-contact-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

.sbv2-contact-form-slots {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  min-width: 0;
}

.sbv2-contact-form-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Handlee', cursive !important;
  font-size: clamp(1.125rem, 3.6vw, 2.025rem) !important; /* Reduced by 10% */
  font-weight: 400 !important;
  color: var(--color-dark, #1a1a1a) !important;
  cursor: pointer;
  white-space: nowrap;
}

.sbv2-contact-form-slot input {
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--color-gold, #8B7355);
}

.sbv2-contact-form-actions {
  margin-top: 0.5rem;
}

.sbv2-contact-form-submit {
  padding: 0.75rem 2rem;
  font-size: 0.9rem; /* Reduced by 10% from 1rem */
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--color-dark, #1a1a1a);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sbv2-contact-form-submit:hover {
  background: #333;
}

/* Form validation error messages */
.sbv2-form-error {
  display: block;
  color: #dc3545 !important;
  font-size: 0.7875rem; /* Reduced by 10% from 0.875rem */
  margin-top: 0.25rem;
  font-family: 'Handlee', cursive;
}

.sbv2-contact-form-input:invalid,
.sbv2-contact-form-select:invalid,
.sbv2-contact-form-textarea:invalid {
  border-bottom-color: #dc3545 !important;
}

/* Right column: 4 cards */
.sbv2-contact-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: calc(2.24cm + 1.5cm + 1rem);
  justify-content: flex-start;
}

/* Mobile: reduce cards by half, arrange in 2 rows, hide labels, show icon left and info right */
@media (max-width: 1023px) {
  .sbv2-contact-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    position: static !important;
    top: auto !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .sbv2-contact-card {
    width: 100% !important;
    height: 60px !important; /* Half of 120px - same size for all cards */
    padding: 0.5rem 1rem !important; /* Horizontal padding for spacing */
    max-width: none !important;
    flex-direction: row !important; /* Horizontal layout: icon left, text right */
    align-items: center !important;
    justify-content: space-between !important; /* Space between icon and text */
    gap: 0 !important;
  }
  .sbv2-contact-card-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
    flex-shrink: 0 !important;
  }
  .sbv2-contact-card:not(.sbv2-contact-card-location) .sbv2-contact-card-label {
    display: none !important; /* Hide labels (WhatsApp, Call us, Email) */
  }
  .sbv2-contact-card:not(.sbv2-contact-card-location) .sbv2-contact-card-value {
    display: block !important; /* Show contact info */
    font-size: 0.7rem !important;
    text-align: right !important;
    margin-left: auto !important; /* Push to right end */
  }
  /* Location card - same horizontal layout as other cards */
  .sbv2-contact-card-location {
    flex-direction: row !important; /* Horizontal layout: icon left, content right */
    justify-content: space-between !important; /* Space between icon and text */
    height: 60px !important; /* Same height as other cards */
    padding: 0.5rem 1rem !important; /* Same padding as other cards */
  }
  .sbv2-contact-card-location .sbv2-contact-card-label {
    display: none !important; /* Hide "Location" label like other cards */
  }
  .sbv2-contact-card-location .sbv2-contact-card-value,
  .sbv2-contact-card-location .sbv2-contact-card-link {
    display: block !important;
    font-size: 0.7rem !important; /* Same size as other cards */
    text-align: right !important;
    margin-left: auto !important; /* Push to right end */
    line-height: 1.2 !important;
  }
  .sbv2-contact-card-location .sbv2-contact-card-icon {
    width: 1.5rem !important; /* Same size as other icons */
    height: 1.5rem !important;
    margin-bottom: 0 !important;
  }
  .sbv2-contact-card-link {
    font-size: 0.7rem !important;
  }
}

/* Big screen: stack cards vertically on the side with different widths per diagram */
@media (min-width: 1024px) {
  .sbv2-contact-cards {
    position: static !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    top: auto !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  /* All cards same width (55% of container) */
  .sbv2-contact-card,
  .sbv2-contact-card-wa {
    width: 55% !important;
    max-width: 198px !important;
  }
  .sbv2-contact-card {
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .sbv2-contact-card-label,
  .sbv2-contact-card-value {
    text-align: center !important;
    width: 100%;
  }
}

.sbv2-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--color-cream, #F5F0EB);
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  width: 240px;
  height: 120px;
  text-align: center;
}

.sbv2-contact-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(139, 115, 85, 0.2);
}

.sbv2-contact-card-wa:hover {
  border-color: rgba(139, 115, 85, 0.2); /* Same as other cards */
}

.sbv2-contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: transparent !important;
  color: var(--color-dark, #1a1a1a);
}

.sbv2-contact-card-wa .sbv2-contact-card-icon {
  background: transparent !important;
  color: var(--color-dark, #1a1a1a);
}

.sbv2-contact-card-label {
  font-family: 'Playfair Display', Georgia, serif;
  /* 10% smaller label text */
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: var(--color-dark, #1a1a1a) !important;
  text-align: center;
}

.sbv2-contact-card-value {
  font-size: 0.75rem;
  color: #444;
  word-break: break-word;
  text-align: center;
}

.sbv2-contact-card-location {
  cursor: default;
}

.sbv2-contact-card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gold, #8B7355);
  text-decoration: none;
  margin-top: 0.25rem;
}

.sbv2-contact-card-link:hover {
  color: var(--color-dark, #1a1a1a);
}

/* Map section */
.sbv2-contact-map-section {
  background: var(--color-cream, #F5F0EB);
  padding: 2rem 0 0;
}

.sbv2-contact-map-header {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 1.25rem;
  text-align: center;
}

.sbv2-contact-map-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-dark, #1a1a1a);
  margin: 0 0 0.35rem;
}

.sbv2-contact-map-address {
  font-size: 0.9375rem;
  color: #555;
  margin: 0;
}

.sbv2-contact-map-block {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  min-height: 320px;
  background: #e8e4df;
  overflow: hidden;
}

.sbv2-contact-map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.sbv2-contact-map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: linear-gradient(135deg, #e8e4df 0%, #ddd8d2 100%);
  color: var(--color-dark, #1a1a1a);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.sbv2-contact-map-placeholder:hover {
  background: linear-gradient(135deg, #ddd8d2 0%, #d0cbc4 100%);
  color: var(--color-gold, #8B7355);
}

.sbv2-contact-map-placeholder-icon {
  color: var(--color-gold, #8B7355);
  opacity: 0.9;
}

.sbv2-contact-map-placeholder-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.sbv2-contact-map-placeholder-address {
  font-size: 0.9375rem;
  color: #555;
}

@media (min-width: 768px) {
  .sbv2-contact-map-block {
    padding-bottom: 42%;
    min-height: 400px;
  }
  .sbv2-contact-map-iframe,
  .sbv2-contact-map-placeholder {
    min-height: 400px;
  }
}
