/* RoboCommerce email capture forms */

.rc-subscribe {
  display: block;
  width: 100%;
}
.rc-subscribe-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rc-subscribe .rc-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.rc-subscribe .rc-row > * { flex: 1 1 160px; min-width: 0; }

.rc-subscribe input[type="email"],
.rc-subscribe input[type="text"],
.rc-subscribe select {
  width: 100%;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  padding: 0 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: #111;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  align-self: center;
}
.rc-subscribe input:focus,
.rc-subscribe select:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(198,161,91,.18);
}

.rc-subscribe button[type="submit"] {
  height: 46px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.rc-subscribe button[type="submit"]:hover:not(:disabled) {
  background: #000;
}
.rc-subscribe button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: default;
}

.rc-subscribe-success {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: rgba(198,161,91,.08);
  border: 1px solid rgba(198,161,91,.35);
  color: #111;
  font-size: 0.95rem;
}
.rc-subscribe-success strong { color: #8a6a2b; }

.rc-subscribe-error {
  color: #a12b2b;
  font-size: 0.85rem;
  margin: 0;
}

.rc-subscribe .rc-privacy {
  color: #777;
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.5;
}

/* Inline card variant (used on calculator + homepage inline) */
.rc-capture-card {
  padding: 1.4rem 1.6rem;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.rc-capture-card .rc-capture-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  color: #111;
  margin: 0 0 0.25rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.rc-capture-card .rc-capture-sub {
  color: #555;
  font-size: 0.92rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* CTA button (replaces email form) */
.rc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 46px;
  padding: 0 1.15rem;
  background: #111;
  color: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.rc-cta-btn:hover { background: #000; transform: translateY(-1px); color: #fff; }
.rc-cta-btn svg { flex-shrink: 0; }

/* Sticky bar CTA button (replaces form) */
.rc-bar-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1.1rem;
  background: #c9a961;
  color: #111;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.rc-bar-cta:hover { background: #d4b876; color: #111; }

/* Horizontal single-line variant for calculator */
.rc-subscribe.rc-inline .rc-subscribe-fields {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}
.rc-subscribe.rc-inline input[type="email"] {
  flex: 1 1 240px;
  align-self: center;
}
.rc-subscribe.rc-inline button[type="submit"] { flex: 0 0 auto; align-self: center; }
@media (max-width: 540px) {
  .rc-subscribe.rc-inline .rc-subscribe-fields { flex-direction: column; align-items: stretch; }
  .rc-subscribe.rc-inline button { width: 100%; }
}

/* Sticky footer bar */
.rc-sticky-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.1rem 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.35);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .4s ease, opacity .3s;
  max-width: 640px;
  margin: 0 auto;
}
.rc-sticky-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.rc-sticky-bar .rc-bar-msg {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #f5f5f5;
}
.rc-sticky-bar .rc-bar-msg strong { color: #c6a15b; font-weight: 500; }
.rc-sticky-bar form.rc-subscribe { width: auto; }
.rc-sticky-bar .rc-subscribe-fields { flex-direction: row; gap: 0.5rem; }
.rc-sticky-bar input[type="email"] {
  height: 40px;
  min-width: 200px;
  background: #1e1e1e;
  border-color: #333;
  color: #fff;
}
.rc-sticky-bar input[type="email"]::placeholder { color: #999; }
.rc-sticky-bar button[type="submit"] {
  height: 40px;
  background: #c6a15b;
  color: #111;
  padding: 0 1rem;
}
.rc-sticky-bar button[type="submit"]:hover:not(:disabled) { background: #d4b06d; }
.rc-sticky-bar .rc-subscribe-success { background: transparent; border: 0; color: #c6a15b; padding: 0; }
.rc-sticky-bar .rc-bar-dismiss {
  background: transparent;
  border: 0;
  color: #999;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 .3rem;
}
.rc-sticky-bar .rc-bar-dismiss:hover { color: #fff; }

@media (max-width: 720px) {
  .rc-sticky-bar { flex-direction: column; align-items: stretch; padding: 1rem; gap: .7rem; }
  .rc-sticky-bar .rc-bar-msg { text-align: left; }
  .rc-sticky-bar .rc-subscribe-fields { flex-direction: column; }
  .rc-sticky-bar input[type="email"] { min-width: 0; }
  .rc-sticky-bar .rc-bar-dismiss { position: absolute; top: .4rem; right: .4rem; }
}

/* Dedicated page variants */
.rc-page-form {
  max-width: 520px;
  margin: 0 auto;
}
