/* Motherwell Distilling - Tour Request Widget */

@font-face {
  font-family: 'Godfrey';
  src: url('./fonts/Godfrey.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poster Gothic';
  src: url('./fonts/PosterGothic.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Adelle Sans';
  src: url('./fonts/AdelleSans.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --mw-brown: #744d31;
  --mw-green: #334721;
  --mw-sage: #8e987c;
  --mw-cream: #e3e0c4;
  --mw-form-field-bg: #f3f2e7;
  --mw-font-header: 'Godfrey', 'Times New Roman', serif;
  --mw-font-subheader: 'Poster Gothic', 'Arial Narrow', sans-serif;
  --mw-font-body: 'Adelle Sans', 'Helvetica Neue', Arial, sans-serif;
  --mw-border-emphasis: 2px solid var(--mw-brown);
}

* {
  box-sizing: border-box;
}

#tour-request-widget,
#distillery-tour-request {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  font-family: var(--mw-font-body);
  color: var(--mw-green);
}

.tour-request-card {
  border: var(--mw-border-emphasis);
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}

.tour-request-header {
  background: var(--mw-brown);
  padding: 24px 28px;
  color: var(--mw-cream);
}

.tour-request-header h2 {
  margin: 0 0 4px;
  font-family: var(--mw-font-header);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--mw-cream);
}

.tour-request-header p {
  margin: 0;
  font-family: var(--mw-font-subheader);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mw-cream);
}

.tour-request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 28px 18px;
  background: transparent;
}

.tour-request-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--mw-green);
  font-family: var(--mw-font-subheader);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tour-request-form input,
.tour-request-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mw-sage);
  border-radius: 14px !important;
  background: var(--mw-form-field-bg) !important;
  background-color: var(--mw-form-field-bg) !important;
  color: var(--mw-green);
  font-family: var(--mw-font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, border-width 0.2s ease;
}

#tour-request-widget .tour-request-form input,
#tour-request-widget .tour-request-form textarea,
#distillery-tour-request .tour-request-form input,
#distillery-tour-request .tour-request-form textarea {
  background: var(--mw-form-field-bg) !important;
  background-color: var(--mw-form-field-bg) !important;
  border-radius: 14px !important;
}

.tour-request-form input::placeholder,
.tour-request-form textarea::placeholder {
  color: var(--mw-sage);
}

.tour-request-form input:focus,
.tour-request-form textarea:focus {
  outline: none;
  border-color: var(--mw-brown);
  border-width: 2px;
  padding: 11px 15px;
}

.tour-request-form textarea {
  resize: vertical;
}

.tour-request-dates {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tour-request-form label.tour-inline-field {
  display: grid !important;
  grid-template-columns: max-content 132px;
  align-items: center;
  justify-content: start;
  width: 100%;
  gap: 8px;
}

.tour-request-form label.tour-inline-field span {
  min-width: 0;
  text-align: left !important;
  white-space: nowrap;
}

.tour-request-form label.tour-inline-field input {
  width: 132px;
  max-width: 132px;
  margin: 0;
  text-align: left !important;
}

.tour-request-submit {
  width: 100%;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--mw-brown);
  color: var(--mw-cream);
  font-family: var(--mw-font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tour-request-submit:hover {
  opacity: 0.9;
}

.tour-request-status {
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
  color: var(--mw-green);
}

.tour-request-status:empty {
  display: none;
}

.tour-request-status.success {
  color: #2e7d32;
}

.tour-request-status.error {
  color: #c62828;
}

.tour-request-success {
  border: 2px solid #2e7d32;
  border-radius: 14px;
  background: #ecf7ee;
  color: #1f5f26;
  text-align: center;
  padding: 18px 16px;
}

.tour-request-success h3 {
  margin: 0 0 8px;
  font-family: var(--mw-font-subheader);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f5f26;
}

.tour-request-success p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
}

.tour-request-secondary {
  background: #2e7d32;
}

.tour-request-secondary:hover {
  opacity: 0.92;
}

@media (max-width: 540px) {
  #tour-request-widget,
  #distillery-tour-request {
    max-width: 100%;
  }

  .tour-request-card {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .tour-request-header,
  .tour-request-form {
    padding: 20px;
  }

  .tour-request-header h2 {
    font-size: 22px;
  }
}
