@import './opus-animazione.css';
@import './opus-membership-application.css';
@import './opus-membership-page.css';
@import './opus-product.css';
@import './opus-membership-checkout.css';

/* OPUS: overlay for full-width message bar above header */
.opus-message-overlay {
  z-index: 9999 !important;
}

/* OPUS: message card fixed below login debug banner */
.opus-message-fixed {
  position: fixed;
  top: 140px;
  left: 20px;
  z-index: 9990;
  max-width: 420px;
}

.opus-message-card {
  background: linear-gradient(135deg, var(--opus-color-primary) 0%, var(--opus-color-secondary) 100%);
  color: var(--opus-color-white);
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.opus-message-card--success {
  background: linear-gradient(135deg, #1F7A4E 0%, #1F282E 100%);
}

.opus-message-card--danger {
  background: linear-gradient(135deg, #B00020 0%, #1F282E 100%);
}

.opus-message-card--warning {
  background: linear-gradient(135deg, #B58900 0%, #1F282E 100%);
}

.opus-message-card--info {
  background: linear-gradient(135deg, #2E383F 0%, #1F282E 100%);
}

@media (max-width: 768px) {
  .opus-message-fixed {
    top: 120px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

:root {

  /* Primary Colors */
  --opus-color-primary: #1F282E;
  --opus-color-secondary: #2E383F;
  --opus-color-white: #FFFFFF;
  --opus-color-black: #000000;

  /* Grey Scale */
  --opus-color-grey: #acacac;
  --opus-color-grey-light: #F3F5F6;
  --opus-color-grey-border: #B3C1CA;
  --opus-color-grey-input: #D3DBE0;
  --opus-color-grey-placeholder: #92A7B4;
  --opus-color-grey-text: #597181;

  /* Semantic Colors */
  --opus-color-text-secondary: #2E383F;
  /* OPUS Product header primary (from Figma) */
  --color-primary-600-b: #415564;
  --opus-color-primary-600-b: #415564;
  --opus-color-primary-800-b: #1F282E;
  /* alias */
  --opus-color-required: #D60021;
  --opus-color-disabled-bg: #F3F5F6;
  --opus-color-disabled-text: #C6C6C6;

  /* Legacy Support */
  --opus-color-trasparent: #ffffff00;

  /* Typography */
  --opus-font-primary: 'Concrette XL TRIAL', 'ConcretteXL', Arial, sans-serif;
  --opus-font-secondary: 'Manrope', Arial, sans-serif;

  /* Spacing System */
  --opus-spacing-xs: 4px;
  --opus-spacing-sm: 8px;
  --opus-spacing-md: 12px;
  --opus-spacing-lg: 16px;
  --opus-spacing-xl: 24px;
  --opus-spacing-2xl: 32px;

  /* Sizing System */
  --opus-size-button-height: 48px;
  --opus-size-input-height: 48px;
  --opus-size-icon: 20px;
  --opus-size-icon-sm: 16px;
  --opus-size-progress-circle: 38px;

  /* Layout System */
  --opus-width-card-sm: 358px;
  --opus-width-card-lg: 549px;
  --opus-width-button-xl: 237px;
  --opus-height-header-simple: 80px;
  --opus-height-header-progress: 120px;

  /* Effects System */
  --opus-shadow-default: 0px 1.14px 5.72px -3px rgba(0, 0, 0, 0.04), 0px 0.3px 1.51px -1.5px rgba(0, 0, 0, 0.08);
  --opus-shadow-hover: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --opus-border-radius: 2px;
  --opus-transition-default: all 200ms ease;

  /* Memberships page */
  --opus-bg-primary: #F3F5F6;
  --opus-text-primary: #1F282E;
  --opus-text-secondary: #415564;
  --opus-text-muted: #718C9F;
  --opus-card-white: #FFFFFF;
  --opus-card-beige: #C5BFAD;
  --opus-card-dark: #1F282E;
  --opus-card-white-text: #FFFFF6;
  --opus-accent-gold: #B2AB94;
  --opus-accent-dark: #2E383F;
  --opus-border-light: #D3DBE0;
  --opus-border-medium: #B3C1CA;
  --opus-shadow-color: rgba(0, 0, 0, 0.04);
}

/* ============================
   FONT FACE DECLARATIONS
   ============================ */

@font-face {
  font-family: 'Concrette XL TRIAL';
  src: url('../../skins/opus/font/ConcretteXL-Regular.woff2') format('woff2');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ConcretteXL';
  src: url('../../skins/opus/font/ConcretteXL-Regular.woff2') format('woff2');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

/* Manrope Font Family */
@font-face {
  font-family: 'Manrope';
  src: url('../../fonts/manrope/Manrope-Regular.woff2') format('woff2'),
    url('../../fonts/manrope/Manrope-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../../fonts/manrope/Manrope-Medium.woff2') format('woff2'),
    url('../../fonts/manrope/Manrope-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../../fonts/manrope/Manrope-Bold.woff2') format('woff2'),
    url('../../fonts/manrope/Manrope-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================
   MODAL SYSTEM
   ============================ */

.opus-login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--opus-transition-default);
  background: rgba(0, 0, 0, 0.5);
}

.opus-login-modal.active {
  opacity: 1;
  visibility: visible;
}

.opus-login-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.opus-login-modal-content {
  position: relative;
  background-color: var(--opus-color-white);
  border: 1px solid var(--opus-color-grey-border);
  border-radius: var(--opus-border-radius);
  padding: var(--opus-spacing-2xl);
  width: 100%;
  max-width: 400px;
  margin: 0 var(--opus-spacing-lg);
  box-shadow: var(--opus-shadow-default);
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.opus-login-modal.active .opus-login-modal-content {
  transform: translateY(0);
}

.opus-login-modal-close {
  position: absolute;
  top: var(--opus-spacing-lg);
  right: var(--opus-spacing-lg);
  background: none;
  border: none;
  font-size: 20px;
  color: var(--opus-color-grey-text);
  cursor: pointer;
  padding: var(--opus-spacing-xs);
  line-height: 1;
}

.opus-login-modal-close:hover {
  color: var(--opus-color-black);
}

.opus-login-modal h2 {
  font-family: var(--opus-font-primary);
  font-weight: 350;
  font-size: 24px;
  line-height: 1.2em;
  color: var(--opus-color-black);
  text-align: center;
  margin: 0 0 var(--opus-spacing-xl) 0;
}

.opus-login-modal .signup-link {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.opus-login-modal .signup-link a {
  color: var(--opus-color-black);
  font-weight: 600;
  text-decoration: none;
}

.opus-login-modal .signup-link a:hover {
  text-decoration: underline;
}

.opus-login-modal .signup-link .signup-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--opus-color-black);
  font-weight: 600;
  text-decoration: none;
}

.opus-login-modal .signup-link .signup-link-btn:hover {
  text-decoration: underline;
}

.opus-forgot-password {
  text-align: right;
  margin: var(--opus-spacing-sm) 0;
}

.opus-forgot-password a {
  color: var(--opus-color-grey-text);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.opus-forgot-password a:hover {
  color: var(--opus-color-primary);
  text-decoration: underline;
}

.opus-reset-password-btn {
  background: none;
  border: none;
  color: var(--opus-color-grey-text);
  font-family: var(--opus-font-secondary);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.opus-reset-password-btn:hover {
  color: var(--opus-color-primary);
}

.opus-login-error {
  color: var(--opus-color-required);
  font-family: var(--opus-font-secondary);
  font-size: 12px;
  text-align: center;
  margin: var(--opus-spacing-sm) 0;
}

.opus-login-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--opus-spacing-sm);
  width: 100%;
  height: var(--opus-size-button-height);
  background-color: var(--opus-color-primary);
  color: var(--opus-color-white);
  border: none;
  border-radius: var(--opus-border-radius);
  font-family: var(--opus-font-secondary);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 200ms ease;
  box-shadow: var(--opus-shadow-default);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.opus-login-submit:hover {
  background-color: var(--opus-color-secondary);
  transform: translateY(-2px);
}

.opus-login-submit:disabled {
  background-color: var(--opus-color-disabled-bg);
  color: var(--opus-color-disabled-text);
  cursor: not-allowed;
}

.opus-login-submit--loading {
  cursor: not-allowed;
  background: #666 !important;
}

.opus-login-submit--loading:hover {
  background: #666 !important;
  transform: none !important;
}

/* ============================
   PRODUCT CARDS & HOME COMPONENTS
   ============================ */

/* General home layout */
.hero_home {
  background-color: var(--opus-color-black);
}

/* Product Cards */
.opus-product-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: var(--opus-color-white);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Blur effect for non-logged users */
.blur-card img {
  filter: blur(10px);
  transition: filter 0.3s ease;
}

.blur-card .title,
.blur-card .price-red,
.blur-card .text-sm,
.blur-card .text-lg {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.blur-card .badge-new {
  filter: none !important;
}

.opus-product-card .badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #22c55e;
  color: var(--opus-color-white);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 10;
}

.opus-product-card img {
  display: block;
  margin: 0 auto 16px auto;
  height: 300px;
  object-fit: contain;
}

.opus-product-card .title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 30px;
}

.opus-product-card .price-red {
  color: #e53935;
  font-weight: bold;
}

/* Logged in product cards */
.opus-product-card-logged {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.opus-product-card-logged:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.opus-product-card-logged .badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #22c55e;
  color: var(--opus-color-white);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 10;
}

.opus-product-card-logged .badge-closing {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff6b35;
  color: var(--opus-color-white);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 10;
}

.opus-product-card-logged img {
  display: block;
  margin: 0 auto 16px auto;
  height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.opus-product-card-logged:hover img {
  transform: scale(1.05);
}

.opus-product-card-logged .title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 30px;
}

.opus-product-card-logged .price-red {
  color: #e53935;
  font-weight: bold;
}

.opus-product-card-logged .time-remaining {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.opus-product-card-logged .last-bid {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.opus-product-card-logged .heart-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.opus-product-card-logged:hover .heart-icon {
  opacity: 1;
  transform: translateX(0);
}

.opus-product-card-logged .heart-icon:hover {
  transform: translateX(0) scale(1.1);
}

.opus-product-card-logged .heart-icon img {
  filter: contrast(1.3) brightness(0.7);
  transition: filter 0.3s ease;
}

.opus-product-card-logged .heart-icon:hover img {
  filter: contrast(1.5) brightness(0.6) drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

/* CTA Band hover animation */
.opus-product-card-logged .cta-band {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: var(--opus-color-white);
  padding: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  z-index: 5;
}

.opus-product-card-logged:hover .cta-band {
  opacity: 1;
  transform: translateY(0);
}

.opus-product-card-logged .cta-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Clock backgrounds */
.block-clock {
  background: url('../../skins/opus/img/clock-gp.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 580px;
  width: 100%;
}

.banner-newsletter {
  background: url('../../skins/opus/img/clock-gp.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 600px;
  width: 100%;
}

/* ============================
   CAROUSEL & SLIDER COMPONENTS
   ============================ */

/* Carousel sections */
.opus-section-left {
  flex-basis: 50%;
  flex-shrink: 0;
}

.opus-section-right {
  flex-basis: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  width: 60vw !important;
  right: 200px;
  overflow: hidden !important;
}

.opus-section-equal {
  flex-basis: 50%;
  flex-shrink: 0;
}

.opus-square-bor {
  width: 90%;
  height: 500px;
}

.space-text-carousel {
  width: 60%;
}

/* Card sizes */
.opus-card-large {
  width: 550px !important;
  height: 450px !important;
  object-fit: cover;
}

/* Experience slider */
.opus-experience-slider .splide__slide {
  width: 550px !important;
  max-width: 550px !important;
  min-width: 440px !important;
}

.opus-experience-slider {
  padding-left: 30px !important;
  overflow: hidden !important;
}

.opus-experience-slider .splide__track {
  padding-left: 0 !important;
  margin-left: 0 !important;
  position: relative !important;
}

.opus-experience-slider .splide__list {
  display: flex !important;
}

/* Home slider adjustments */
.opus-home-slider .splide__slide:first-child,
.opus-home-slider-foryou .splide__slide:first-child,
.opus-home-slider-wishlist .splide__slide:first-child {
  margin-left: 0 !important;
}

/* Private concierge slider */
.opus-private-concierge-slider {
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
}

.opus-private-concierge-slider .splide__track {
  padding-left: 0 !important;
  margin-left: 0 !important;
  position: relative !important;
  width: 100% !important;
}

.opus-private-concierge-slider .splide__list {
  display: flex !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}

.opus-private-concierge-slider .splide__slide {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: calc(50% - 0.125rem) !important;
  margin-right: 20px !important;
}

.opus-private-concierge-slider .splide__slide:first-child {
  margin-left: 0 !important;
}

/* ============================
   NEWSLETTER COMPONENT
   ============================ */

.newsletter-input-container {
  position: relative;
  display: inline-block;
  min-width: 400px;
}

.newsletter-input {
  border-radius: 0;
  background-color: transparent;
  border: 2px solid var(--opus-color-white);
  color: var(--opus-color-white);
  width: 100%;
  padding-right: 140px !important;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.newsletter-btn {
  border-radius: 0;
  background-color: var(--opus-color-white);
  color: var(--opus-color-black);
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
  height: calc(100% - 8px);
  position: absolute;
  top: 26px;
  right: 4px;
}

.newsletter-btn:hover {
  background-color: rgba(183, 183, 183, 0.9);
  color: var(--opus-color-white);
}

.img-footer-opus {
  object-fit: cover;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Mobile Base (≤480px) */
@media (max-width: 480px) {
  :root {
    --opus-spacing-xl: 20px;
    --opus-spacing-2xl: 20px;
    --opus-size-progress-circle: 24px;
    --opus-height-header-progress: 120px;
    /* Increased for vertical layout */
  }

  .opus-content {
    padding: var(--opus-spacing-lg);
  }

  .opus-membership-container {
    padding: var(--opus-spacing-xl) var(--opus-spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--opus-height-header-simple));
  }

  .opus-membership-content {
    padding: 20px;
  }

  .opus-membership-card {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .opus-title--large {
    font-size: 24px;
  }

  .opus-subtitle {
    font-size: 13px;
  }

  .opus-btn-xl {
    width: 100%;
    max-width: 280px;
  }

  .opus-login-modal-content {
    padding: var(--opus-spacing-xl);
    margin: 0 var(--opus-spacing-md);
  }

  .opus-header-progress-container {
    gap: 1px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 var(--opus-spacing-xs);
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-behavior: smooth;
    max-width: 100%;
  }

  /* Hide scrollbar for Chrome, Safari and Opera */
  .opus-header-progress-container::-webkit-scrollbar {
    display: none;
  }

  .opus-header-progress-step {
    gap: 4px;
    min-width: 40px;
  }

  .opus-header-progress-label {
    font-size: 8px;
    max-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    font-weight: 400;
  }

  .opus-header-progress-circle {
    font-size: 10px;
    width: 28px;
    height: 28px;
  }

  .opus-header-progress-line {
    width: 12px;
    margin-top: 14px;
  }

  /* Responsive logo sizing for tablet */
  header img.h-16,
  header img[alt="Opus"] {
    height: 48px !important;
    /* Reduced from 64px */
  }

  /* Interest cards responsive */
  .opus-interests-grid {
    gap: 12px;
  }

  .opus-interests-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .opus-interests-row .opus-interest-card {
    flex: 0 0 calc(50% - 6px);
    /* 2 card per riga */
  }

  .opus-interest-card {
    padding: var(--opus-spacing-md);
    min-height: 70px;
  }

  .opus-interest-icon {
    width: 20px;
    height: 20px;
  }

  .opus-interest-svg {
    width: 16px;
    height: 16px;
  }

  .opus-interest-label {
    font-size: 12px;
  }

  /* Checkbox responsive */
  .opus-checkbox-container {
    gap: var(--opus-spacing-sm);
  }

  .opus-checkbox-label {
    font-size: 9px;
  }

  .opus-radio-label {
    font-size: 9px;
  }

  /* Form layout for mobile - single column */
  .opus-form-row {
    flex-direction: column !important;
    gap: var(--opus-spacing-md);
  }

  .opus-form-row--three-columns {
    flex-direction: column !important;
    gap: var(--opus-spacing-md);
  }

  .opus-confirmation-wrapper {
    width: 100%;
    max-width: 327px;
    margin: 0 auto;
    padding: 24px;
    gap: 32px;
    border-radius: 2px;
  }

  .opus-confirmation-header {
    gap: 8px;
  }

  /* Remove duplicate styles - already defined above */
  .opus-confirmation-subtitle {
    max-width: 100%;
  }

  .opus-confirmation-resend {
    gap: 16px;
  }

  .opus-confirmation-resend-content {
    gap: 8px;
  }

  .opus-confirmation-resend-title {
    font-size: 24px;
    line-height: 1.5em;
  }

  .opus-confirmation-resend .opus-btn {
    width: 100%;
    height: 48px;
    padding: 12px;
    gap: 8px;
    background-color: var(--opus-color-primary);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .opus-confirmation-resend .opus-btn span {
    font-family: var(--opus-font-secondary);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.6em;
    text-transform: uppercase;
    color: var(--opus-color-white);
  }
}

/* Fix for MembershipConfirmation - remove double border on tablet+ */
@media (min-width: 481px) {
  .opus-confirmation-wrapper {
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: none;
    padding: var(--opus-spacing-2xl);
  }

  .opus-membership-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--opus-height-header-simple));
  }

  .opus-membership-card {
    width: 549px;
    max-width: calc(100% - 2rem);
    margin: 0 auto;
  }
}

/* Tablet/iPad (769px-1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
  :root {
    --opus-size-progress-circle: 32px;
    --opus-height-header-progress: 110px;
  }

  /* Responsive logo sizing for tablet/iPad vertical layout */
  header img.h-12 {
    height: 56px !important;
    /* Larger than mobile but smaller than desktop */
  }

  header img.h-16,
  header img[alt="Opus"] {
    height: 48px !important;
    /* Fallback for horizontal layout */
  }

  /* Tablet/iPad progress bar styling */
  .opus-header-progress-container {
    gap: 3px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 var(--opus-spacing-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    max-width: 100%;
  }

  .opus-header-progress-container::-webkit-scrollbar {
    display: none;
  }

  .opus-header-progress-step {
    gap: 6px;
    min-width: 50px;
  }

  .opus-header-progress-label {
    font-size: 10px;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    font-weight: 400;
  }

  .opus-header-progress-circle {
    font-size: 12px;
    width: 32px;
    height: 32px;
  }

  .opus-header-progress-line {
    width: 16px;
    margin-top: 16px;
  }

  /* Extra padding for Step 6 on tablet/iPad */
  .opus-membership-step6 {
    padding-top: 30px;
  }

  .opus-membership-container {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--opus-spacing-2xl) + var(--opus-spacing-xl));
    /* Increased spacing for header clearance: 48px + 40px = 88px */
    min-height: calc(100vh - var(--opus-height-header-simple));
  }
}

/* Desktop with vertical layout (1200px-1279px) */
@media (min-width: 769px) and (max-width: 1279px) {
  :root {
    --opus-height-header-progress: 110px;
  }

  /* Extra padding for all membership steps using vertical layout */
  .opus-membership-step6 {
    padding-top: 50px;
  }

  /* Extra padding for Step 1 container - increased for iPad Air 820px */
  .opus-membership-container--with-progress {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--opus-height-header-progress) + 60px);
    min-height: calc(100vh - var(--opus-spacing-lg));
  }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
  :root {
    --opus-size-progress-circle: 28px;
    --opus-height-header-progress: 100px;
  }

  /* Membership step cards for tablet */
  .opus-content--lg {
    width: 492px;
    max-width: calc(100% - var(--opus-spacing-2xl));
  }

  /* Position Welcome container at top with sufficient header clearance */
  .opus-membership-container {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--opus-spacing-2xl) + var(--opus-spacing-xl));
    /* Increased spacing for header clearance: 48px + 40px = 88px */
    min-height: calc(100vh - var(--opus-height-header-simple));
  }

  .opus-membership-container--with-progress {
    padding: var(--opus-height-header-progress) var(--opus-spacing-md) var(--opus-spacing-lg) var(--opus-spacing-md);
    align-items: flex-start;
    min-height: calc(100vh - var(--opus-spacing-lg));
  }

  /* Keep form rows horizontal on tablet to match Figma design */
  .opus-form-row {
    flex-direction: row;
    gap: var(--opus-spacing-md);
  }

  .opus-form-row--three-columns {
    flex-direction: row;
    gap: var(--opus-spacing-sm);
  }

  .opus-date-inputs {
    flex-direction: row;
    gap: var(--opus-spacing-3xs);
    padding: 0 var(--opus-spacing-2xs);
    margin-top: -8px;
  }

  .opus-radio-options {
    gap: var(--opus-spacing-md);
  }

  .opus-submit-button-container {
    /* Auto width to fit content and allow proper space-between layout */
    width: auto;
  }

  .opus-form-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--opus-spacing-lg);
  }

  .opus-header-progress-container {
    gap: 2px;
    max-width: 100%;
    padding: 0 var(--opus-spacing-sm);
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }

  /* Hide scrollbar for Chrome, Safari and Opera on mobile */
  .opus-header-progress-container::-webkit-scrollbar {
    display: none;
  }

  .opus-header-progress-step {
    gap: 3px;
    min-width: 35px;
  }

  .opus-header-progress-circle {
    font-size: 9px;
    width: 24px;
    height: 24px;
  }

  .opus-header-progress-label {
    font-size: 7px;
    font-weight: 400;
    max-width: 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  .opus-header-progress-line {
    width: 10px;
    margin-top: 12px;
  }

  /* Responsive logo sizing for mobile - can be larger in vertical layout */
  header img.h-12 {
    height: 48px !important;
    /* Larger logo for mobile vertical layout */
  }

  header img.h-16,
  header img[alt="Opus"] {
    height: 36px !important;
    /* Keep small for horizontal layout fallback */
  }

  /* Extra padding for Step 6 on mobile due to vertical header layout */
  .opus-membership-step6 {
    padding-top: 50px;
  }

  /* Extra padding for Step 1 container on mobile */
  .opus-membership-container--with-progress {
    padding-top: calc(var(--opus-height-header-progress) + 30px);
  }

  /* Center text alignment for main content on mobile (exclude form elements) */
  .opus-title,
  .opus-subtitle {
    text-align: center !important;
  }

  /* Ensure form elements stay left-aligned */
  .opus-form-field,
  .opus-form-label,
  .opus-form-label-text,
  .opus-radio-label,
  .opus-checkbox-label {
    text-align: left !important;
  }

  /* Interest cards on tablet */
  .opus-interests-grid {
    gap: var(--opus-spacing-md);
  }

  .opus-interests-row {
    gap: var(--opus-spacing-md);
  }

  .opus-interest-card {
    padding: var(--opus-spacing-md);
    min-height: 75px;
  }

  .opus-interest-icon {
    width: 22px;
    height: 22px;
  }

  .opus-interest-svg {
    width: 18px;
    height: 18px;
  }

  .opus-interest-label {
    font-size: 13px;
  }

  .banner-newsletter {
    height: 600px !important;
    background-position: center;
  }

  .cont-text-newsletter {
    position: relative;
    top: 80px;
  }

  .newsletter-input-container {
    min-width: 100%;
    max-width: 100%;
  }

  .newsletter-input {
    width: 100%;
    padding-right: 120px !important;
  }

  .newsletter-btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  .opus-final-section h1,
  .opus-final-section h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .opus-final-text {
    font-size: 0.875rem;
    text-align: center;
  }

  .opus-final-button {
    width: 100%;
    max-width: 280px;
  }

  .opus-final-content {
    gap: 1.25rem;
  }

  /* MembershipStepFinal with sufficient header clearance on mobile */
  .opus-membership-container {
    padding-top: calc(var(--opus-spacing-lg) + var(--opus-spacing-xl));
    /* Increased spacing for header clearance: 32px + 40px = 72px */
  }

}

/* Medium screens (≤600px) */
@media (max-width: 600px) {

  .opus-content--lg,
  .opus-content--sm {
    width: 100%;
    margin: 0 var(--opus-spacing-lg);
    max-width: calc(100% - var(--opus-spacing-2xl));
    padding: var(--opus-spacing-xl);
    gap: var(--opus-spacing-xl);
  }

  .opus-title--large {
    font-size: 26px;
  }

  .opus-title--medium {
    font-size: 20px;
  }

  .opus-btn-xl {
    width: 100%;
    max-width: 280px;
  }
}

/* Large screens responsive adjustments */
@media (max-width: 1023px) {
  .opus-section-left {
    flex-basis: 100% !important;
    width: 100% !important;
    margin-bottom: 2rem;
  }

  .opus-section-right {
    flex-basis: 100% !important;
    width: 100% !important;
    right: 0;
  }

  .opus-concierge-container {
    flex-direction: column !important;
  }

  .opus-square-bor {
    width: 100% !important;
    height: 350px !important;
  }

  .opus-btn-black-carousel {
    position: relative !important;
    float: right !important;
    font-size: 13px;
    bottom: 80px;
  }

  .space-text-carousel {
    width: 80% !important;
  }

  .space-text-carousel h1 {
    width: 80% !important;
  }

  .space-text-carousel p {
    width: 70% !important;
  }

  .opus-section-left h2 {
    font-size: 2.0rem !important;
  }

  .opus-section-left p {
    font-size: 1.0rem !important;
  }
}

/* ================================
   MEMBERSHIP STEP FINAL STYLES
   ================================ */

/* Final Step Container */
.opus-membership-step-final {
  padding-top: var(--opus-spacing-lg);
}

.opus-membership-step-final .opus-card {
  margin-bottom: 0;
  border-radius: 2px;
}

.opus-final-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0;
}

.opus-final-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.opus-final-section h1,
.opus-final-section h2 {
  font-family: var(--opus-font-primary);
  font-weight: 350;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--opus-color-black);
  margin: 0;
  text-align: left;
}

.opus-final-text {
  font-family: var(--opus-font-secondary);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--opus-color-secondary);
  margin: 0;
  text-align: left !important;
}

.opus-final-text strong {
  font-weight: 700;
  color: var(--opus-color-black);
}

.opus-final-separator {
  width: 100%;
  height: 1px;
  background-color: var(--opus-color-grey-border);
  margin: 0.5rem 0;
}

.opus-final-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
}

.opus-final-button {
  width: 237px;
  font-family: var(--opus-font-secondary);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}