@font-face {
  font-family: 'Nanum Pen Script';
  src: url('../fonts/NanumPenScript-Regular.ttf') format('truetype');
}

#header {
  position: relative;  /* NOT static */
  z-index: 9999;
}

.login_form {
  padding:100px 0px;
  width:90%;
  margin:0 auto;
}

.nav-wrapper {
  position: relative;
  z-index: 9999;
}

.nav-container {
  position: relative;
}

.nav-item-group {
  position: relative;
  display: inline-block;
}

.nav-item-group .nav-dropdown {
  display: none;
  position: fixed;
  background: #fff;
  z-index: 99999;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  border-top:4px solid #f26a56;
  FONT-SIZE: 14px;
  padding: 5px;
}

.nav-item-group:hover .nav-dropdown {
  display: block;
}

/* Neutralize Elementor stacking */
.elementor-section,
.elementor-top-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap,
.elementor-element {
  z-index: auto !important;
  isolation: auto !important;
}

html body #page_content .elementor-section,
html body #page_content .elementor-top-section,
html body #page_content .elementor-element {
  position: static !important;
}
html body {
 background-color: #fcf9f5;
}
.opnshop {
  margin-right: 50px;
}

.lang-select {
  background-color: transparent;
  width: auto;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid #c7bdb0;
  padding: 4px 8px;
}
.social-btn span {
  padding-left:10px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.field-hint {
  position: absolute;
  bottom:22px;
  left: 10px;
  font-size: 12px;
  color: #000;
  pointer-events: none;
  font-weight:600;
  text-transform:uppercase;

}

.account-main-container h3 {text-align:center;}

.log-container {
  width: 60%;
  margin: 0 auto;          /* centers the container */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;         /* top & bottom padding */
}

.log-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid black;
  height: 40px;
}

.log-column:first-child {
  border-left: none;       /* no border on the very left */
}

.log-column svg {
  display: block;
  margin: 0 auto;
}

.log-terms {
  width: 100%;
  text-align: center;
  padding: 15px 0; /* top & bottom spacing */
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  color: #000;
  margin-top:40px;
}

.log-terms a {
  color: #CE0212;          /* black links */
  text-decoration: underline;
  margin: 0 4px;        /* small spacing between links */
}


.nav-dropdown-item {  color: #000 !important;}
.account-btn-wrapper {
    position: relative;
}

.account-dropdown {
    display: none;
    background: #fff;
    border: 1px solid #eee;
    min-width: 150px;
    z-index: 999999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.account-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #554F4F;
    text-decoration: none;
}

.account-dropdown a:hover {
    background: #E4DFDC;
}


.account-dropdown {
    display: none;
    background: #fff !important;
    min-width: 200px;
    z-index: 999999 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    padding: 0px !important;
}

.account-dropdown a {
    display: block !important;
    padding: 7px 12px !important;
    color: #554F4F !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px;
}

.lang-select select {
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    background-color: #dddddd;
}

.lang-select select option {
    border: none;
    outline: none;
}

  .ab-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 1.5rem 0;
  }
  .ab-card {
    background: #f0efed;
    border-radius: 10px;
    padding: 28px 24px 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.10);
  }
  .ab-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #3a3a38;
    line-height: 1.5;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  @media (max-width: 640px) {
    .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

    .os-card {
    background: #e9e9e9;
    border-radius: 16px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.5);
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2rem 2rem;
    margin: 60px 0px;
      font-family: 'Work Sans', sans-serif;
  }

  .os-heading-wrap {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .os-heading {
    font-size: 28px;
    font-weight: 400;
    margin: 0;
  }

  .os-footer {
    display: flex;
    justify-content: center;
  }

  .os-btn {
    background: #e03131;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
  }

  .os-btn:hover {
    background: #c92a2a;
  }


.ms-fields .form-group { padding-bottom:0px;}

  .ms-step {
  display: none;
}

.ms-step.active {
  display: block;
}

.ms-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ms-controls {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.ms-nav {
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 6px;
  user-select: none;
  font-weight:400;
  color: #e03131;
  font-size: 20px; 
}

.ms-nav--submit {
  background: #e03131;
  color: #fff;
  border-color: #e03131;
  font-style: normal;
  border-radius: 0px;
  height: 50px;
}


#ms-back,
#ms-submit {
  display: none;
}

.ms-step-desc {
  text-align:center;
  margin-bottom:20px;
}

.light_header h1 {
  text-align:center;
  font-weight:500;
  font-size: 30px;
  margin-top: 30px;
  border-bottom:2px solid #888888; }

.ms-step-desc span {
  color: #ED1C24;
}

.ms-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.ms-spacer {
  flex: 1;
}

#ms-submit {
  margin-left: auto;
}

#ms-form { margin-bottom: 60px; }

.ms-steps {
  text-align: right;
  margin-top:-20px; 
  margin-bottom:20px;
  text-transform:uppercase;
}

.field-hint-owner {
    position: absolute;
    bottom: 5px;
    left: 10px;
    font-size: 12px;
    color: #000;
    pointer-events: none;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Work Sans', sans-serif;
}

.ms-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.ms-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
}

.ms-radio-label input[type="radio"] {
  display: none;
}

.ms-radio-custom {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.ms-radio-label input[type="radio"]:checked + .ms-radio-custom {
  background: #888888;
  border-color: #888888;
}

.ms-radio-desc {
  width: 100%;
  margin: -20px 0 0 0;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
      font-size: 12px;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    padding:0px; 
    margin:0px;
}
.ms-fields input, .ms-fields select {
  height:60px;
}
.ms-fields select {

  background-color: #e1e1e1;

}


.form-group input[type="url"] {
  background-color: #e1e1e1 !important;
  border:none;
}

/* ── Plan selector grid ── */
.ms-plan-grid {
  grid-column: 1 / -1;  /* span full width of parent grid */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.ms-plan-card {
  background: #e0e0e0;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.ms-plan-card:hover {
  background: #d4d4d4;
}

/* Selected state */
.ms-plan-card.selected {
  border-color: #555;
  background: #c8c8c8;
}

.ms-plan-card .plan-name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
}

.ms-plan-card .plan-price {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

/* Payment overlay */
#ms-payment-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#ms-payment-overlay.active { display: flex; }
#ms-payment-box {
  background: #fff;
  border-radius: 10px;
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}
#ms-payment-box h2 { margin: 0 0 8px; font-size: 20px; }
#ms-payment-box p  { color: #666; margin: 0 0 24px; font-size: 14px; }
#revolut-pay-btn {
  display: inline-block;
  background: #191C1F;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}
#revolut-pay-btn:hover    { background: #333; }
#revolut-pay-btn:disabled { background: #999; cursor: not-allowed; }
#ms-payment-cancel {
  display: block;
  margin-top: 14px;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ms-plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.us-container {
  display: flex;
  justify-content: center;
  gap: 10px; /* spacing between blocks */
  border-bottom: 2px solid #ddd7d1; /* line under blocks */
}

.us-block {
  flex: 1;
  display: flex;              /* enable flexbox inside block */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering */
  padding: 20px;
  background-color: #eae8e5;
  text-align: center;
  box-sizing: border-box; 
  border-bottom: 2px solid transparent; /* reserve space */
}

.us-block a {
  text-decoration: none;
  font-size: 12px;
  color: #211A15;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-family: 'Work Sans', sans-serif;
  text-align:center;
  letter-spacing:1.2px;
}

.us-block:hover {
  background-color: #efdadc; /* subtle hover effect */
  cursor:pointer;
  color: #CE0212;
  border-bottom:2px solid #CE0212;
}
.us-block:hover a {
color: #CE0212;
}
   .us-header {
      display: flex;
      justify-content: space-between; /* h1 left, blocks right */
      align-items: flex-start;        /* align top edges */
      margin-bottom: 20px;
      margin:30px 60px 80px 60px;
    }

    .us-heading {
      font-size: 36px;
      font-weight: 500;
      font-family: 'Work Sans', sans-serif;
      color: #000;
    }

    .us-right {
      display: flex;
      flex-direction: column; /* button above, line below */
      align-items: flex-end;  /* align to right edge */
    }

    .us-button {
      background-color: #edd0d3;
      color: #CE0212 !important;
      font-family: 'Work Sans', sans-serif;
      font-weight: 500;
      text-transform: uppercase;
      padding: 16px 36px;
      text-decoration: none;
      border-radius: 0px;
      margin-bottom: 5px;
      font-size:18px;
      font-family: 'Work Sans', sans-serif;
      display:block;
    }

    #winery-registration-form {width: 90%; 
    margin: 0 auto; }
    .us-back-button{
      background-color: transparent;
      color: #211A15 !important;
      font-family: 'Work Sans', sans-serif;
      font-weight: 600;
      text-transform: uppercase;
      padding: 16px 36px;
      text-decoration: none;
      border-radius: 0px;
      margin-bottom: 5px;
      font-size:18px;
      font-family: 'Work Sans', sans-serif;
      border: 1px solid #e3e2e2; 
    }
    .us-back-button:hover{
      background-color: #211A15;
      color: #FFF !important;
    }

    .us-button:hover {
      background-color: #d94a56;
      color: #FFF !important;
    }
    .openshop:hover {
      background-color: #eae8e5;
    }

    .us-line {
      font-size: 12px;
      font-family: 'Work Sans', sans-serif;
      color: #CE0212;
      text-align: right;
      margin-top:10px;
    }

    .us-line span {
      margin: 0 5px;
      color: #211A15;
    }

.register-main-container {
    margin-top: 20px;
}
.register-main-container h3 {text-align:center;}
.light__header h1 {
    text-align: center;
    font-weight: 500;
    font-size: 36px;
    margin-top: 30px;
    font-family: 'Work Sans', sans-serif;
    line-height: 32px;
    letter-spacing: 0%;
    margin-bottom:20px;
}
.required_text { font-size:14px; margin: 0px; text-align:right;margin-top:-10px;}
#login-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #CE0212;
    font-family: 'Work Sans', sans-serif;
    color: #FFF;
    text-transform: uppercase;
    border: none !important;
    border-radius: 0px !important;
    font-weight: 600 !important;
    width: 275px;
    margin-left: 60px;
    height: 48px;
    text-decoration:none;
    display:block;
    margin:0 auto;
}
#login-button:hover,#account-login-button:hover {
  background: #000;
}

.account_register .log-terms { margin-top:0px;}
.account_register .field-hint { bottom:5px; }
.account_register .ms-controls { margin-top:0px; margin:0 auto; }

  .log-column.selected {
    border-color: #111;
    background: #e4e4e4;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
  }
  .log-column:hover {
    cursor:pointer;
  }
  .ms-fields {margin-bottom:40px;}

  #login-button:hover {
    background: #333;
    transform: translateY(-1px);
    cursor:pointer;
  }

  #login-button:active {
    transform: translateY(0);
  }

  /* Dimmed until a provider is chosen */
  #login-button.dimmed {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
  }

  #login-button.dimmed:hover {
    background: #ccc;
    transform: none;
  }

  /* Provider label badge */
  .provider-badge {
    display: inline-block;
  }
  .sign-in-box h3 {
    text-align:center;
    text-transform: none;
    font-family: 'Work Sans', sans-serif;
  }

  .account-btn-wrapper .account-toggle:hover { background: #e4e4e4; cursor:pointer; }

   .account-btn-wrapper:hover .account-dropdown { background: #FFF !important; }


   .promote_quize h3 {
    font-size: 20px;
    text-transform:none; 
   }

  .promote_quize .ms-radio-label {
font-size: 14px;
   text-transform:none; 
   font-weight:500;
   }
   
   .have_account {
    width: 100%;
    text-align: center;
    padding: 0px 0 15px 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 22px;
    color: #000;
    margin-top: 40px;
   }
   .have_account a { color: #CE0212;}
   
  .account_register input[type=date], 
  .account_register input[type=email], 
  .account_register input[type=number], 
  .account_register input[type=password], 
  .account_register input[type=search], 
  .account_register input[type=tel], 
  .account_register input[type=text], 
  .account_register input[type=url], 
  .account_register select, .account_register textarea,
  .account-login-form input[type=date], 
  .account-login-form input[type=email], 
  .account-login-form input[type=number], 
  .account-login-form input[type=password], 
  .account-login-form input[type=search], 
  .account-login-form input[type=tel], 
  .account-login-form input[type=text], 
  .account-login-form input[type=url], 
  .account-login-form select, .account-login-form textarea {
    border-bottom: 4px solid #c7bdb0 !important;
    border-radius: 3px;
    padding: 0.3rem 1rem 1rem 1rem;
    transition: all .3s;
    width: 100%;
    background: #eceae9;
}
  .account_register input[type=date], 
  .account_register input[type=email], 
  .account_register input[type=number], 
  .account_register input[type=password], 
  .account_register input[type=search], 
  .account_register input[type=tel], 
  .account_register input[type=text], 
  .account_register input[type=url], 
  .account-login-form input[type=date], 
  .account-login-form input[type=email], 
  .account-login-form input[type=number], 
  .account-login-form input[type=password], 
  .account-login-form input[type=search], 
  .account-login-form input[type=tel], 
  .account-login-form input[type=text], 
  .account-login-form input[type=url] {
    font-size: 36px;
    line-height: 30px;
    height: 56px;
}
 .account-login-form select, .account-login-form textarea,
.account_register select, .account_register textarea {
    font-size: 22px;
    line-height: 24px;
 }

 .account_register select#canton {
  overflow-y: auto;
  max-height: 150px;
}



.ms-step-header {
  display: flex;
  align-items: center;
  justify-content: center; /* centers the heading */
  position: relative;      /* needed for absolute steps label */
  margin:0 auto;
}

.ms-step-header .light__header {
  text-align: center;
}

.ms-step-header .ms-steps {
  position: absolute;
  right: 0;
}
#winery-registration-form .select2-container--default .select2-selection--single {
    background-color: #eceae9!important;
    border: none!important;
    border-radius: 4px!important;
    height: 60px !important;
        border-bottom: 4px solid #c7bdb0 !important;
}

#winery-registration-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 30px;
    font-size: 30px;
    height: 60px;
    padding: 0.2em 0.4em;
}
#winery-registration-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #c7bdb0 transparent transparent transparent;
    border-style: solid;
    border-width: 16px 14px 0 14px !important;
    height: 0;
    left: 50%;
    margin-left: -24px;
    margin-top: 8px;
    position: absolute;
    top: 50%;
    width: 0;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #c0392b !important;
  color: #fff;
}

label.checkbox_field {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 4px solid #c7bdb0 !important;
  border-radius: 3px;
  padding: 0.3rem 1rem 1rem 1rem;
  transition: all .3s;
  width: 100%;
  background: #eceae9;
  position: relative;
  cursor: pointer;
    font-family: 'Work Sans', sans-serif !important;
}

.form-group.checkbox_field:hover {
cursor: pointer;
}

label.checkbox_field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #c7bdb0 !important;
  border-radius: 3px;
  padding: 0.3rem 1rem;
  transition: all .3s;
  width: 100%;
  background: #eceae9;
  position: relative;
  cursor: pointer;
  height: 60px; /* match other fields */
  box-sizing: border-box;
}

label.checkbox_field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: #c7bdb0;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  position: absolute;
  top: 20px;
  right: 10px;
}

label.checkbox_field input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}
/* Field error state */
.form-group input.field-error,
.form-group select.field-error {
    border-color: #c0392b !important;
    background-color: #fff5f5 !important;
}

/* Error message under the field */
.field-error-msg {
    position: absolute;
    bottom: -15px; /* sits below the input, outside flow */
    left: 10px;
    font-size: 11px;
    color: red;
    white-space: nowrap;
}
/*
.form-group:has(.field-error-msg) .field-hint,.form-group:has(.field-error-msg) .field-hint-owner {
    bottom: 24px !important;
}*/
.form-group {
    min-height: 56px; /* enough for input + error msg */
}
.ui-datepicker .ui-datepicker-title {
    display: flex;
    width:80%;
}

.account [type=button], .account [type=submit], .account button {
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 3px;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    padding: .2rem .3rem;
}
