/* ==========================================================================
   SUBSCRIBE PAGE STYLES
   ========================================================================== */

/* Main Content
   No hero on this page, so the top padding is what clears the fixed header
   (whose logo overhangs the header box) at each breakpoint. */
.main-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 15rem 2rem 6rem;
}

/* Soft glow behind the card so the page doesn't read as empty */
.main-content::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 45%, rgba(55, 55, 255, 0.12) 0%, rgba(21, 20, 23, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   BREVO FORM
   Brevo's own stylesheet is intentionally not loaded — the markup below is
   Brevo's native embed structure (main.js needs these ids/classes) styled
   from scratch to match the site.
   ========================================================================== */
#sib-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-primary-darker);
  box-shadow: 0 0px 60px rgba(0, 0, 255, 0.2);
  padding: 2.5rem 2rem;
  text-align: left;
}

.sib-form-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-light);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.sib-form-intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Two fields side by side (first/last name, city/state) */
.sib-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.sib-input {
  margin-bottom: 1.25rem;
}

/* Field */
.entry__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.entry__label[data-required]::after {
  content: attr(data-required);
  color: var(--color-primary-light);
  margin-left: 0.25rem;
}

.form__entry .input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form__entry .input::placeholder {
  color: #7a7a7a;
}

/* Select — strip the native control and draw our own caret */
.form__entry select.input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23d0d0d0' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

/* The placeholder option should read as placeholder text, not as a value */
.form__entry select.input:has(option[value=""]:checked) {
  color: #7a7a7a;
}

.form__entry select.input option {
  background: var(--color-bg-card);
  color: var(--color-text);
}

.form__entry .input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(55, 55, 255, 0.35);
}

.form__entry.entry_errored .input {
  border-color: #ff4949;
}

/* Inline field error (main.js toggles display + text) */
.entry__error {
  display: none;
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #ffb3b3;
  background-color: rgba(255, 73, 73, 0.12);
  border-left: 3px solid #ff4949;
}

/* Honeypot */
.input--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Submit button — matches .btn-order on the home page */
.sib-form-block--button {
  margin-top: 1.75rem;
}

.sib-form-block__button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sib-form-block__button:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0px 40px rgba(0, 0, 255, 0.6);
}

.sib-form-block__button-disabled,
.sib-form-block__button[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

/* Loading spinner — main.js removes .sib-hide-loader-icon while submitting */
.progress-indicator__icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  animation: sib-spin 1s linear infinite;
}

.sib-hide-loader-icon {
  display: none;
}

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

/* Success / error panels — main.js adds .sib-form-message-panel--active */
.sib-form-message-panel {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  border-left: 3px solid;
}

.sib-form-message-panel--active {
  display: block;
}

.sib-form-message-panel__text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.sib-notification__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sib-form-message-panel--success {
  color: #b6f2cf;
  background-color: rgba(126, 184, 154, 0.12);
  border-color: var(--color-accent);
}

.sib-form-message-panel--error {
  color: #ffb3b3;
  background-color: rgba(255, 73, 73, 0.12);
  border-color: #ff4949;
}

/* Footnote under the form */
.subscribe-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ==========================================================================
   RESPONSIVE - Smaller Screen
   ========================================================================== */
@media (max-width: 1125px) {
  .main-content {
    padding-top: 13rem;
  }
}

/* Responsive - Tablet */
@media (max-width: 950px) {
  .main-content {
    padding-top: 10rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .main-content {
    padding: 7rem 1.25rem 4rem;
  }

  #sib-container {
    padding: 2rem 1.25rem;
  }

  .sib-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sib-form-block__button {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
}
