#sws-competition-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 9999; /* Ensure the modal sits above most elements */
  font-family: sans-serif;
}

.sws-competition-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000; /* Overlay below the content but above page elements */
}

.sws-competition-modal-content {
  position: absolute;
  background: #fff;
  width: 90%;
  max-width: 100%;
  width: 820px;
  height: 564px;
  text-align: center;
  box-sizing: border-box;

  /* Centering the modal content */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 10001; /* Above the overlay */
}

.sws-modal-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.sws-modal-confirm-btn,
.sws-modal-close-btn {
  margin: 10px;
  padding: 10px 20px;
  cursor: pointer;
  color: #ffffff;
  background-color: #36a1ff;
  text-transform: uppercase;
  border: 2px solid #1e73be;
  border-radius: 5px 5px 5px 5px;
}
.sws-modal-close-btn {
  background-color: #e1e4e6;
  color: black;
  border: 2px solid #7d7d7d;
}
.sws-competition-modal-text {
  font-family: "Satoshi", sans-serif;
  text-align: left;
  font-weight: normal;
  background: url("../img/sws-comp-back.png") no-repeat center center;
  background-size: 120%;
  background-position-y: 20%;
  /*padding: 32px 40px 24px;*/
  padding: 28px 30px 20px;
}
.sws-competition-modal-text h2 {
  font-size: 32px;
  line-height: 115%;
  margin-bottom: 39px;
}
.sws-competition-modal-text h2 .sws-delivery-info {
  font-size: 18px;
}
.sws-competition-modal-text h2 .highlight-text {
  font-weight: bold;
  line-height: 105%;
}
.sws-modal-subheading {
  font-family: Helvetica;
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  margin-bottom: 12px;
}
.sws-modal-guide {
  font-family: Helvetica;
  font-size: 12px;
  line-height: 14px;
  margin-bottom: 23px;
}
#sws-competition-modal input[type="email"],
#sws-competition-modal input[type="text"] {
  margin-bottom: 10px;
  padding: 7px 10px;
  font-size: 10px;
  min-width: 158px;
  border-radius: none;
  border: solid 1px #afafaf;
}
#sws-competition-modal .form-check {
  margin-bottom: 10px;
  min-height: 0px;
}
#sws-competition-modal .form-check input {
  margin-right: 0px;
  width: 14px;
  height: 14px;
  border-radius: 0px;
  border: solid 1px #afafaf;
  margin-top: 0px;
}
#sws-competition-modal .form-check label {
  font-size: 9px;
}
.sws-modal-confirm-btn {
  width: 158px;
  height: 40px;
  font-size: 16px;
  line-height: 16px;
  padding: 12px;
  text-align: center;
  text-transform: none;
  background-color: var(--color-sw-1);
  border: none;
  border-radius: 0px;
  font-weight: bold;
  margin: 0px;
  margin-bottom: 16px;
}
.sws-winner-announcement {
  font-family: "Helvetica" sans-serif;
  font-size: 9px;
}

/* Success/Error message styling */
.sws-competition-result-message {
  padding: 28px 30px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 564px; /* Match the modal content height */
  box-sizing: border-box;
  background: url("../img/sws-comp-back.png") no-repeat center center;
  background-size: 120%;
  background-position-y: 10%;
}

.sws-result-content {
  max-width: 262px;
  width: 100%;
  margin: auto;
}

.sws-result-title, .sws-result-title-mobile {
  font-family: "Satoshi", sans-serif;
  font-size: 32px;
  line-height: 115%;
  margin-bottom: 20px;
  font-weight: bold;
}

.sws-result-text, .sws-result-text-mobile {
  font-family: "Satoshi", sans-serif;
  font-size: 32px;
  line-height: 115%;
  margin-bottom: 30px;
  text-align: left;
}

.sws-competition-result-message .sws-result-title, .sws-competition-result-message .sws-result-title-mobile{
  color: #000000;
  font-size: 32px;
  font-weight: bold;
  text-align: left;
}

.sws-competition-result-message .sws-modal-close-btn {
  background-color: var(--color-sw-1);
  color: white;
  border: none;
  width: 160px;
  text-transform: capitalize;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 0px;
  cursor: pointer;
  margin: 0px;
  margin-bottom: 10px;
  font-family: "Satoshi", sans-serif;
}

.sws-competition-details {
  font-family: "Helvetica", sans-serif;
  font-size: 9px;
  line-height: 1.4;
  color: #000000;
  margin: 0;
  font-style: italic;
  text-align: left;
}

/* Required field highlighting */
#sws-competition-modal input.field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 5px rgba(220, 53, 69, 0.5) !important;
  background-color: rgba(220, 53, 69, 0.05) !important;
}

#sws-competition-modal input.checkbox-error {
  outline: 2px solid #dc3545 !important;
  outline-offset: 2px;
  box-shadow: 0 0 3px rgba(220, 53, 69, 0.3) !important;
}

/* Remove error styling when field gets focus */
#sws-competition-modal input.field-error:focus,
#sws-competition-modal input.checkbox-error:focus {
  border-color: #1e73be !important;
  box-shadow: 0 0 5px rgba(30, 115, 190, 0.3) !important;
  background-color: white !important;
  outline: none !important;
}

/* Image Slider Styles */
.sws-competition-modal-image {
  position: relative;
  height: 564px;
  overflow: hidden;
}

.sws-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}
.sws-browse-info {
  font-weight: bold;
  color: white;
  line-height: 18px;
  font-family: Helvetica;
  margin-bottom: 30px;
}
.sws-browse-info a{
  color:white;
  text-decoration:none;
}
.sws-browse-info a:hover {
  color:white;
}

/* Top Right Close Button */
.sws-modal-absolute-close {
  position: absolute;
  background:none;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  /*background: rgba(0, 0, 0, 0.8);*/
  color: rgb(17, 17, 17);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.sws-modal-absolute-close:hover {
  transform: scale(1.1);
}

.sws-modal-absolute-close:active {
  transform: scale(0.95);
}

/* Mobile styles for close button */
@media (max-width: 992px) {
  .sws-modal-absolute-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

/* Competition Terms Link */
.competition-terms-link {
  color: #000000;
  cursor: pointer;
  text-decoration: underline;
}

.competition-terms-link:hover {
  color: #0a5a96;
}

/* Terms and Conditions Modal */
#sws-terms-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 10010;
  font-family: sans-serif;
}

.sws-terms-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10011;
  backdrop-filter: blur(10px);
}

.sws-terms-modal-content {
    position: absolute;
    background: #fff;
    width: 90%;
    max-width: 410px;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
    border-radius: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10012;
}

.sws-terms-modal-close {
  position: absolute;
  background:none;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  /*background: rgba(0, 0, 0, 0.8);*/
  color: rgb(17, 17, 17);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.sws-terms-modal-close:hover {
  transform: scale(1.1);
}

.sws-terms-modal-body {
    padding: 15px;
    max-width: 410px;
}

.sws-terms-modal-body h3 {
    margin: 0px 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-sw-1);
    text-align: left;
}

.sws-terms-content p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--color-sw-1);
    font-size: 10px;
    font-weight: bold;
}

.sws-terms-content p strong {
  color: #333;
}

/* Mobile styles for terms modal */
@media (max-width: 992px) {
  .sws-terms-modal-content {
    width: 95%;
    max-height: 85vh;
    max-width:320px;
    top:200px;
  }
  
  .sws-terms-modal-body {
    padding: 30px 20px 20px;
  }
  
  .sws-terms-modal-body h3 {
    font-size: 18px;
  }
  
  .sws-terms-content p {
    font-size: 8px
  }
}

/* Additional modal styling */
.sws-competition-modal-overlay {
  backdrop-filter: blur(10px) !important;
}
/* Mobile Styles - 992px and below */
@media (max-width: 992px) {
  .sws-competition-modal-content {
    width: 95%;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 294px;
  }

  .sws-competition-modal-image {
    height: 194px !important;
  }

  .sws-competition-modal-text {
    padding: 20px 15px !important;
  }

  .sws-competition-modal-text h2 {
    font-size: 22px !important;
    line-height: 110% !important;
    margin-bottom: 5px !important;
  }

  .sws-modal-subheading {
    font-size: 12px !important;
    margin-bottom: 10px !important;
    line-height: 14px;
  }

  .sws-modal-guide {
    font-size: 11px !important;
    line-height: 11px !important;
    margin-bottom: 15px !important;
  }

  #sws-competition-modal input[type="email"],
  #sws-competition-modal input[type="text"] {
    width: 100%;
    margin-bottom: 8px;
    font-size: 12px;
    height: 22px;
    font-size: 9px;
    border-radius: 0px !important;
  }

  #sws-competition-modal .form-check {
    margin-bottom: 8px;
  }

  #sws-competition-modal .form-check label {
    font-size: 10px;
  }

  .sws-modal-confirm-btn {
    width: 100%;
    margin-bottom: 0px !important;
  }

  .sws-winner-announcement {
    font-size: 8px !important;
    text-align: center;
  }

  /* Success/Error message mobile styles */
  .sws-competition-result-message {
    height: auto !important;
    padding: 20px 15px !important;
  }

  .sws-result-title,   .sws-result-title-mobile {
    font-size: 24px !important;
    margin-bottom: 20px !important;
  }

  .sws-result-text,  .sws-result-text-mobile {
    font-size: 18px !important;
    margin-bottom: 20px !important;
    font-weight:bold;
  }

  .sws-competition-details {
    font-size: 8px !important;
  }
  .sws-competition-modal-text h2 .sws-delivery-info{
    font-size:13px;
  }
    .sws-competition-modal-text #sws-subscribe-form{
      margin-bottom: 0px;
    }
}

/* Top Right Close Button */
.sws-modal-absolute-close {
  position: absolute;
  
  top: 0px;
  right: 0px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  color: rgb(17, 17, 17);
  border: none;
  border-radius: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.sws-modal-absolute-close:hover {
  
  transform: scale(1.1);
}

.sws-modal-absolute-close:active {
  transform: scale(0.95);
}

/* Mobile styles for close button */
@media (max-width: 992px) {
  .sws-modal-absolute-close {
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}
