/* ─── Recycom Container Configurator ─── */
:root {
  --recy-black: #010101;
  --recy-dark: #343434;
  --recy-yellow: #FFCB04;
  --recy-grey: #B3B3B3;
  --recy-light: #f5f5f5;
  --recy-white: #ffffff;
  --recy-red: #d32f2f;
  --recy-radius: 2px;
  --recy-font: inherit;
}

.recy-configurator {
  font-family: var(--recy-font);
  color: var(--recy-dark);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.recy-configurator *,
.recy-configurator *::before,
.recy-configurator *::after {
  box-sizing: border-box;
}

/* ─── Loading ─── */
.recy-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.recy-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--recy-light);
  border-top-color: var(--recy-yellow);
  border-radius: 50%;
  animation: recy-spin 0.6s linear infinite;
}

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

/* ─── Stepper ─── */
.recy-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 40px;
  gap: 0;
}

.recy-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.recy-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--recy-white);
  border: 2px solid var(--recy-grey);
  color: var(--recy-grey);
  transition: all 0.3s ease;
}

.recy-step-item.active .recy-step-circle {
  background: var(--recy-black);
  border-color: var(--recy-black);
  color: var(--recy-white);
}

.recy-step-item.completed .recy-step-circle {
  background: var(--recy-yellow);
  border-color: var(--recy-yellow);
  color: var(--recy-black);
}

.recy-step-label {
  font-size: 13px;
  color: var(--recy-grey);
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
}

.recy-step-item.active .recy-step-label {
  color: var(--recy-black);
  font-weight: 700;
}

.recy-step-item.completed .recy-step-label {
  color: var(--recy-dark);
}

.recy-step-line {
  flex: 1;
  height: 2px;
  background: var(--recy-grey);
  min-width: 40px;
  max-width: 120px;
  margin-top: -20px;
}

/* ─── Titles ─── */
.recy-title {
  font-family: var(--recy-font);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--recy-black);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.recy-subtitle {
  text-align: center;
  color: var(--recy-dark);
  font-size: 15px;
  margin: 0 0 28px;
}

/* ─── Grid ─── */
.recy-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.recy-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.recy-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ─── Cards ─── */
.recy-card {
  border: 2px solid #e5e5e5;
  border-radius: var(--recy-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease, filter 0.25s ease;
  background: var(--recy-white);
}

.recy-grid--has-selection .recy-card:not(.recy-card--selected) {
  opacity: 0.3;
  filter: grayscale(100%);
}

.recy-grid--has-selection .recy-card:not(.recy-card--selected):hover {
  opacity: 0.5;
  filter: grayscale(80%);
}

.recy-card:hover {
  border-color: var(--recy-dark);
}

.recy-card--selected {
  border-color: var(--recy-yellow);
  box-shadow: 0 0 0 2px var(--recy-yellow);
}

.recy-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--recy-light);
}

.recy-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recy-card__body {
  padding: 14px 16px;
}

.recy-card__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--recy-black);
  letter-spacing: -0.01em;
}

.recy-card__dim {
  font-size: 13px;
  color: var(--recy-grey);
  margin: 0 0 8px;
}

.recy-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--recy-black);
  margin: 6px 0 0;
}

.recy-card__btw {
  font-size: 12px;
  font-weight: 400;
  color: var(--recy-grey);
}

.recy-link,
.recy-criteria-btn {
  background: none;
  border: none;
  color: var(--recy-dark);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: 0.02em;
}

.recy-criteria-btn:hover {
  color: var(--recy-black);
}

/* ─── Postcode ─── */
.recy-postcode-wrap {
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ─── Form Elements ─── */
.recy-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: var(--recy-radius);
  font-size: 15px;
  font-family: var(--recy-font);
  color: var(--recy-dark);
  background: var(--recy-white);
  transition: border-color 0.2s;
  outline: none;
}

.recy-input:focus {
  border-color: var(--recy-dark);
}

.recy-input--small {
  max-width: 120px;
}

.recy-textarea {
  resize: vertical;
  min-height: 80px;
}

.recy-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--recy-dark);
}

.recy-fieldgroup {
  margin-bottom: 20px;
}

.recy-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.recy-row:last-child {
  margin-bottom: 0;
}

.recy-field {
  flex: 1;
}

.recy-field--grow {
  flex: 2;
}

.recy-field--small {
  flex: 0 0 100px;
}

/* ─── Radio cards ─── */
.recy-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.recy-radio-card {
  cursor: pointer;
  flex: 1;
  min-width: 140px;
}

.recy-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.recy-radio-card__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--recy-radius);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.recy-radio-card input:checked + .recy-radio-card__inner {
  border-color: var(--recy-yellow);
  background: rgba(255, 203, 4, 0.06);
}

.recy-radio-card__check {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}

.recy-radio-group--square .recy-radio-card__check {
  border-radius: 3px;
}

.recy-radio-card input:checked + .recy-radio-card__inner .recy-radio-card__check {
  border-color: var(--recy-yellow);
  background: var(--recy-yellow);
}

.recy-radio-card input:checked + .recy-radio-card__inner .recy-radio-card__check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--recy-black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.recy-radio-group--square .recy-radio-card input:checked + .recy-radio-card__inner .recy-radio-card__check::after {
  border-radius: 1px;
  width: 6px;
  height: 6px;
}

/* ─── Checkbox ─── */
.recy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.recy-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--recy-yellow);
}

.recy-checkbox-label a {
  color: var(--recy-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Upload zone ─── */
.recy-upload-zone {
  border: 2px dashed #d0d0d0;
  border-radius: var(--recy-radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: var(--recy-grey);
  font-size: 14px;
}

.recy-upload-zone:hover,
.recy-upload-zone--drag {
  border-color: var(--recy-dark);
  background: var(--recy-light);
}

.recy-upload-icon {
  margin-bottom: 8px;
}

.recy-file-list {
  margin-top: 8px;
}

.recy-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--recy-light);
  border-radius: var(--recy-radius);
  margin-bottom: 4px;
  font-size: 13px;
}

.recy-file-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--recy-grey);
  padding: 0 4px;
}

.recy-file-remove:hover {
  color: var(--recy-red);
}

/* ─── Materials ─── */
.recy-materials {
  margin-top: 12px;
  padding: 16px;
  background: var(--recy-light);
  border-radius: var(--recy-radius);
}

.recy-material-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.recy-material-row:last-child {
  margin-bottom: 0;
}

.recy-material-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.recy-material-qty {
  max-width: 100px !important;
}

.recy-material-unit {
  font-size: 13px;
  color: var(--recy-grey);
  min-width: 40px;
}

.recy-materials-toggle {
  font-weight: 600;
}

/* ─── Signage ─── */
.recy-signage-option {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--recy-light);
  border-radius: var(--recy-radius);
}

/* ─── Divider ─── */
.recy-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 28px 0;
}

/* ─── Layout (step 4) ─── */
.recy-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.recy-layout__form {
  background: var(--recy-white);
  border: 1px solid #e5e5e5;
  border-radius: var(--recy-radius);
  padding: 28px;
}

/* ─── Summary sidebar ─── */
.recy-layout__sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.recy-summary {
  background: var(--recy-black);
  color: var(--recy-white);
  border-radius: var(--recy-radius);
  padding: 28px;
}

.recy-summary__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  text-align: center;
  color: var(--recy-white) !important;
}

.recy-summary__line {
  font-size: 13px;
  text-align: center;
  margin: 0 0 20px;
  opacity: 0.85;
  line-height: 1.5;
}

.recy-summary__price {
  text-align: center;
  margin-bottom: 4px;
}

.recy-summary__price-label {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.recy-summary__price-value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--recy-yellow);
  letter-spacing: -0.02em;
}

.recy-summary__btw {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  margin: 0 0 24px;
}

.recy-summary__actions {
  margin-top: 20px;
}
.recy-summary__actions a {
  color: var(--recy-white) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recy-summary__privacy {
  margin-bottom: 16px;
  color: var(--recy-white);
  font-size: 12px;
}

.recy-summary__privacy a {
  color: var(--recy-yellow);
}

.recy-summary__privacy input[type="checkbox"] {
  accent-color: var(--recy-yellow);
}

/* ─── Buttons ─── */
.recy-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.recy-actions--right {
  justify-content: flex-end;
}

.recy-actions--left {
  justify-content: flex-start;
}

.recy-actions--between {
  justify-content: space-between;
}

.recy-actions--mobile-only {
  display: none;
}

.recy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--recy-font);
  border-radius: var(--recy-radius);
}

.recy-btn--primary {
  background: var(--recy-yellow);
  color: var(--recy-black);
  border-color: var(--recy-yellow);
}

.recy-btn--primary:hover {
  background: #e6b800;
  border-color: #e6b800;
}

.recy-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.recy-btn--outline {
  background: transparent;
  color: var(--recy-dark);
  border-color: var(--recy-dark);
}

.recy-btn--outline:hover {
  background: var(--recy-light);
}

.recy-btn--full {
  width: 100%;
  justify-content: center;
}

.recy-arrow {
  font-size: 16px;
}

.recy-loading-btn {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.recy-loading-btn::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--recy-black);
  border-radius: 50%;
  animation: recy-spin 0.6s linear infinite;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
}

/* ─── Error ─── */
.recy-error-msg {
  color: var(--recy-red);
  font-size: 13px;
  margin-top: 8px;
}

.recy-error-msg p {
  margin: 4px 0;
}

.recy-error {
  text-align: center;
  color: var(--recy-red);
  padding: 40px;
}

/* ─── Modal ─── */
.recy-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.recy-modal__content {
  position: relative;
  background: var(--recy-white);
  border-radius: var(--recy-radius);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.recy-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--recy-dark);
  line-height: 1;
}

.recy-modal__title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.recy-modal__body {
  font-size: 14px;
  line-height: 1.6;
}

.recy-modal__body ul,
.recy-modal__body ol {
  padding-left: 20px;
}

/* ─── Confirmation ─── */
.recy-confirm {
  text-align: center;
  padding: 60px 20px;
}

.recy-confirm__icon {
  margin-bottom: 20px;
}

.recy-confirm__message {
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
  margin: 16px auto 0;
  color: var(--recy-dark);
}

/* ─── Period selector ─── */
.recy-period-selector { margin-top: 8px; }

.recy-period-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.recy-period-option {
  flex: 1;
  min-width: 100px;
  cursor: pointer;
}

.recy-period-option input { position: absolute; opacity: 0; pointer-events: none; }

.recy-period-option__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border: 2px solid #e0e0e0;
  border-radius: var(--recy-radius);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.recy-period-option input:checked + .recy-period-option__inner {
  border-color: var(--recy-yellow);
  background: rgba(255, 203, 4, 0.06);
}

.recy-period-option__label { font-weight: 700; font-size: 14px; }
.recy-period-option__detail { font-size: 12px; color: var(--recy-grey); }

.recy-period-option__badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--recy-yellow);
  color: var(--recy-black);
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 4px;
}

.recy-period-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.recy-period-custom__unit { font-size: 14px; color: var(--recy-grey); }

.recy-field--full { width: 100%; }

/* ─── Price breakdown in sidebar ─── */
.recy-summary__breakdown {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
}

.recy-breakdown__line {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  opacity: 0.8;
  gap: 8px;
}

.recy-breakdown__line span:last-child { white-space: nowrap; }

.recy-breakdown__line--discount { color: var(--recy-yellow); opacity: 1; }

.recy-breakdown__line--total {
  font-weight: 700;
  font-size: 13px;
  opacity: 1;
}

.recy-breakdown__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 6px 0;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .recy-layout {
    grid-template-columns: 1fr;
  }

  .recy-layout__sidebar {
    position: static;
    order: -1;
  }

  .recy-actions--mobile-only {
    display: flex;
  }
}

@media (max-width: 768px) {
  .recy-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .recy-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .recy-stepper {
    padding: 20px 0 28px;
  }

  .recy-step-label {
    font-size: 11px;
  }

  .recy-step-line {
    min-width: 20px;
  }

  .recy-title {
    font-size: 24px;
  }

  .recy-row {
    flex-wrap: wrap;
  }

  .recy-field--small {
    flex: 1;
    min-width: 80px;
  }

  .recy-field--grow {
    flex-basis: 100%;
  }

  .recy-layout__form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .recy-grid--4,
  .recy-grid--3 {
    grid-template-columns: 1fr;
  }

  .recy-step-label {
    display: none;
  }

  .recy-stepper {
    justify-content: center;
  }

  .recy-radio-group {
    flex-direction: column;
  }

  .recy-period-options {
    flex-direction: column;
  }

  .recy-period-option {
    min-width: auto;
  }
}
