/* Stay Connected Section */
.stay-connected {
  padding: 80px 20px;
  /* background-color: #f8f9fa; */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  justify-content: center;
}

.stay-connected__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1400px;
  width: 100%;
}

.stay-connected__content {
  flex: 1;
  max-width: 600px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stay-connected__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 60px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  /* background: #274472; */
  color: #274472;
  margin: 0 0 0px 0;
  width: 509px;
  height: 77px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.stay-connected__subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 22px;
  /* line-height: 100%; */
  /* letter-spacing: 0%; */
  text-align: center;
  vertical-align: middle;
  /* background: #333333; */
  color: #333333;
  margin: 0;
  width: 500px;
  /* height: 132px; */
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}

.stay-connected__form-container {
  flex: 0 0 auto;
  width: 698px;
  height: 512px;
  background: rgba(255, 255, 255, 0.78); /* FFFFFFC7 */
  border-radius: 10px;
  box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.25); /* 00000040 */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 1;
}

.stay-connected__form {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.stay-connected__input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.stay-connected__label {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: left;
  color: #000000;
  /* margin-bottom: 4px; */
  margin-left: 0;
  display: block;
}

.stay-connected__input {
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 275; /* ExtraLight */
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: left;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #27447212;
 /* 274472 with 7% opacity */
  color: #333333;
  transition: border-color 0.3s ease;
  width: 65%;
  box-sizing: border-box;
  margin: 0;
}

.stay-connected__input:focus {
  outline: none;
  border-color: #274472;
  box-shadow: 0 0 0 2px rgba(39, 68, 114, 0.1);
}

.stay-connected__input::placeholder {
  color: #666666;
  font-weight: 275;
  font-style: normal;
}

.stay-connected__submit {
  /* width: 297px; */
  max-width: 370px;
  height: 51px;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 22px;
  background: transparent;
  color: #274472;
  border: 3px solid #274472;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 12px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.stay-connected__submit:hover {
  background: #274472;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 68, 114, 0.3);
}

.stay-connected__submit:active {
  transform: translateY(0);
}

/* Checkbox Styling */
.stay-connected__checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 12px;
  width: 100%;
  align-items: start;
}

.stay-connected__checkbox-row {
  display: contents;
}

.stay-connected__checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* Position items in proper 2-column layout */
.stay-connected__checkbox-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.stay-connected__checkbox-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.stay-connected__checkbox-item:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.stay-connected__checkbox-item:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.stay-connected__checkbox-item:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

.stay-connected__checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid #274472;
  border-radius: 3px;
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}

.stay-connected__checkbox-item input[type="checkbox"]:checked {
  background-color: #274472;
  border-color: #274472;
}

.stay-connected__checkbox-item input[type="checkbox"]:checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}

.stay-connected__checkbox-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 275; /* ExtraLight */
  font-size: 15px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #000000; /* Background: 000000 as specified */
  cursor: pointer;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .stay-connected__container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  
  .stay-connected__content {
    text-align: center;
    max-width: 100%;
  }
  
  .stay-connected__title {
    justify-content: center;
    width: auto;
    max-width: 100%;
  }
  
  .stay-connected__subtitle {
    text-align: center;
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .stay-connected {
    padding: 60px 15px;
  }
  
  .stay-connected__container {
    gap: 30px;
  }
  
  .stay-connected__title {
    font-size: 42px;
    max-width: 100%;
    height: auto;
  }
  
  .stay-connected__subtitle {
    font-size: 18px;
    max-width: 100%;
    height: auto;
    line-height: 130%;
  }
  
  .stay-connected__form-container {
    width: 100%;
    max-width: 500px;
    height: auto;
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .stay-connected__title {
    font-size: 36px;
  }
  
  .stay-connected__subtitle {
    font-size: 16px;
  }
  
  .stay-connected__form-container {
    padding: 30px 20px;
  }
  
  .stay-connected__input {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .stay-connected__submit {
    padding: 12px 30px;
    font-size: 16px;
  }
}

/* Ultra small mobile devices (350px and below) */
@media (max-width: 350px) {
  .stay-connected {
    padding: 40px 10px;
    min-height: auto;
  }
  
  .stay-connected__container {
    flex-direction: column;
    gap: 30px;
    max-width: 320px;
  }
  
  .stay-connected__content {
    max-width: 100%;
    text-align: center;
  }
  
  .stay-connected__title {
    font-size: 28px;
    width: 100%;
    max-width: 300px;
    height: auto;
    line-height: 1.2;
    margin: 0 auto 15px;
    padding: 0 10px;
  }
  
  .stay-connected__subtitle {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .stay-connected__form-container {
    width: 100%;
    max-width: 280px;
    padding: 20px 15px;
    margin: 0 auto;
  }
  
  .stay-connected__form {
    width: 100%;
  }
  
  .stay-connected__input-group {
    margin-bottom: 12px;
  }
  
  .stay-connected__input {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 4px;
  }
  
  .stay-connected__submit {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    display: block;
  }
}

/* Progressive scaling for stay-connected section on bigger screens */
@media (min-width: 1700px) {
  .stay-connected__container {
    max-width: 1600px;
    gap: 80px;
  }
  .stay-connected__title {
    font-size: 70px;
    width: 580px;
    height: 90px;
  }
  .stay-connected__subtitle {
    font-size: 28px;
    line-height: 42px;
  }
  .stay-connected__content {
    max-width: 700px;
  }
  .stay-connected__form-container {
    padding: 50px 40px;
  }
  .stay-connected__input {
    padding: 18px 22px;
    font-size: 18px;
  }
  .stay-connected__submit {
    padding: 18px 35px;
    font-size: 20px;
  }
}

@media (min-width: 2000px) {
  .stay-connected__container {
    max-width: 1800px;
    gap: 100px;
  }
  .stay-connected__title {
    font-size: 80px;
    width: 675px;
    height: 100px;
  }
  .stay-connected__subtitle {
    font-size: 32px;
    line-height: 48px;
    width: 716px;
  }
  .stay-connected__content {
    max-width: 800px;
  }
  .stay-connected__form-container {
    padding: 60px 50px;
  }
  .stay-connected__input {
    padding: 22px 28px;
    font-size: 20px;
  }
  .stay-connected__submit {
    padding: 22px 45px;
    font-size: 24px;
    max-width: 400px;
  }
}

@media (min-width: 2400px) {
  .stay-connected__container {
    max-width: 2000px;
    gap: 120px;
  }
  .stay-connected__title {
    font-size: 90px;
    width: 720px;
    height: 190px;
  }
  .stay-connected__subtitle {
    font-size: 36px;
    line-height: 52px;
  }
  .stay-connected__content {
    max-width: 900px;
  }
  .stay-connected__form-container {
    padding: 70px 60px;
    height: 590px;
  }
  .stay-connected__input {
    padding: 26px 32px;
    font-size: 22px;
  }
  .stay-connected__submit {
    padding: 26px 55px;
    font-size: 23px;
  }
}

/* Extra Ultra Large screens 2800px+ */
@media (min-width: 2800px) {
  .stay-connected {
    padding: 120px 40px;
  }
  .stay-connected__container {
    max-width: 2500px;
    gap: 160px;
  }
  .stay-connected__title {
    font-size: 110px;
    width: 900px;
    height: 140px;
  }
  .stay-connected__subtitle {
    font-size: 44px;
    line-height: 64px;
    width: 700px;
  }
  .stay-connected__content {
    max-width: 1100px;
  }
  .stay-connected__form-container {
    width: 950px;
    height: auto;
    min-height: 700px;
    padding: 90px 80px;
    border-radius: 16px;
  }
  .stay-connected__label {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .stay-connected__input {
    padding: 32px 40px;
    font-size: 26px;
    border-radius: 10px;
  }
  .stay-connected__submit {
    padding: 32px 70px;
    font-size: 34px;
    border-radius: 12px;
    margin-top: 30px;
  }
}