
.application-form-page {
  background: #fff;
  padding: 0px 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.header-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 20px;
  background: #a8a8a8;
  border-top: 2px solid #b71c1c;
  margin-top: 0px;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-item {
  margin: 5px 0;
  font-size: 14px;
}

.label {
  font-weight: bold;
}

.logo-section {
  margin: 20px 0;
}

.college-logo {
  width: 100px;
  height: auto;
}

.email-address, .address {
  margin: 5px 0;
  font-size: 12px;
  word-wrap: break-word;
  word-break: break-all;
}

.admissions-banner {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 15px;
  justify-content: center;
  text-align: center;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 5px;
}

.form-section {
  background: #818181;
  padding: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-row {
  margin-bottom: 2px;
  display: flex;
  gap: 3px;
}

.form-group {
  flex: 1;
}

.form-row .form-group:first-child {
  flex: 0.6;
}

.form-row .form-group:nth-child(2) {
  flex: 1.4;
}

.name-input, .email-input, .mobile-input {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 6px 6px 6px 6px;
  font-size: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input {
  padding-left: 30px;
}

.name-input:focus, .email-input:focus, .mobile-input:focus {
  border-color: #b71c1c;
  box-shadow: 0 0 5px rgba(183, 28, 28, 0.3);
  outline: none;
}

.name-input::placeholder, .email-input::placeholder, .mobile-input::placeholder {
  color: black;
}

label {
  display: block;
  margin-bottom: 0px;
  font-weight: bold;
  color: #333;
}

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon i {
  position: absolute;
  left: 10px;
  color: #b71c1c;
  font-size: 13px;
}

.input-icon input,
.input-icon select {
  padding-left: 24px;
  box-sizing: border-box;
  font-size: 14px;
}

.mobile-container {
  display: flex;
  align-items: center;
  width: 70%;
}

.country-code-select {
  width: 150px;
  padding: 10px 10px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  border-right: none;
  font-size: 16px;
  background: #fff;
  color: #000;
}

.mobile-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 0 5px 5px 0;
  font-size: 14px;
  border-left: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-weight: normal;
  line-height: 1.4;
}

.captcha-input-wrapper {
  position: relative;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-btn {
  background: #b71c1c;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.refresh-btn:hover {
  background: #a01515;
}

.login-link {
  text-align: center;
  justify-content: center;
}

.login-link a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

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

.submit-btn {
  background: #1671bc;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  display: block;
  margin: 20px auto 0;
  margin-bottom: 10px;
}

.submit-btn:hover {
 border: 2px solid #ffffff;
}

.error {
  color: #ff0000;
  font-size: 14px;
  margin-top: 5px;
}

.instructions-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  text-align: center;
}

.instructions-section h3 {
  color: #b71c1c;
  margin-bottom: 15px;
}

.instructions-section p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.meritto-branding {
  text-align: center;
  margin: 20px 0;
  font-size: 12px;
  color: #666;
}

/* Overlay Container */
.overlay-container {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 20px 0;
  border-radius: 10px;
}

.form-overlay {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 55%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #818181;
  border-radius: 10px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.banner-overlay {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 10px;
  
}

/* Swiper Styles */
.swiper-container {
  width: 100%;
  height: 600px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  touch-action: pan-x;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  height: 600px;
}

.swiper-pagination {
  bottom: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #b71c1c;
}

@media (max-width: 1200px) {
  .form-overlay {
    width: 35%;
    right: 8%;
  }
}

@media (max-width: 1024px) {
  .form-overlay {
    width: 40%;
    right: 5%;
  }

  .overlay-container {
    height: 550px;
  }

  .swiper-container {
    height: 550px;
  }

  .swiper-slide {
    height: 550px;
  }
}

/* ===========================================
   APPLICATION FORM FULL MOBILE RESPONSIVE FIX
   =========================================== */

@media (max-width: 768px) {
    /* Make overlay full width */
    .form-overlay {
        position: relative !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        justify-content: center;
    }

    /* Container */
    .form-overlay .container {
        width: 100% !important;
        padding: 10px !important;
        margin: 0 auto !important;
    }

    /* Main form wrapper */
    .form-section {
        width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        background: rgba(0, 0, 0, 0.65);
        border-radius: 10px;
    }

    /* Convert two-column rows to one column */
    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .form-group {
        width: 100% !important;
    }

    .form-group input,
    .form-group select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 14px !important;
        padding: 10px !important;
    }

    /* Fix for country-code + mobile input */
    .mobile-container {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .country-code-select {
        width: 100% !important;
    }
    .mobile-input {
        width: 100% !important;
    }

    /* CAPTCHA FIX */
    #captchaCanvas {
        width: 100% !important;
        height: 50px !important;
    }

    .captcha-input-wrapper {
        position: relative !important;
        width: 100% !important;
    }

    /* Checkbox text */
    .checkbox-group label {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    /* Submit button */
    .submit-btn {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px !important;
        text-align: center !important;
    }

    /* Login link */
    .login-link {
        text-align: center !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
}

@media (max-width: 600px) {
  .header-section {
    padding: 10px;
  }

  .contact-item {
    font-size: 14px;
  }

  .admissions-banner {
    font-size: 20px;
  }

  .form-section {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .captcha-row {
    flex-direction: column;
    align-items: stretch;
  }

  .refresh-btn {
    align-self: flex-start;
  }

  .overlay-container {
    height: auto;
  }

  .swiper-container {
    position: relative;
    height: 300px;
  }

  .swiper-slide {
    height: 300px;
  }

  .form-overlay {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 20px;
    right: auto;
    top: auto;
    transform: none;
  }

  .checkbox-group label {
    font-size: 14px;
  }

  .name-input, .email-input, .mobile-input {
    min-height: 44px;
    font-size: 16px;
  }

  .input-icon input,
  .input-icon select {
    min-height: 44px;
    font-size: 16px;
  }

  .mobile-container {
    width: 100%;
  }

  .country-code-select {
    width: 100px;
    min-height: 44px;
    font-size: 16px;
  }

  .submit-btn {
    min-height: 44px;
    font-size: 16px;
  }
}



@media (max-width: 360px) {
  .header-section {
    padding: 5px;
  }

  .contact-item {
    font-size: 10px;
  }

  .college-logo {
    width: 70px;
  }

  .admissions-banner {
    font-size: 18px;
  }

  .form-section {
    padding: 10px;
  }

  .form-row {
    margin-bottom: 10px;
  }

  .name-input, .email-input, .mobile-input {
    padding: 5px 5px 5px 15px;
    font-size: 12px;
  }

  .input-icon i {
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 16px;
  }

  .checkbox-group label {
    font-size: 12px;
  }

  .overlay-container {
    height: auto;
  }

  .swiper-container {
    height: 250px;
  }

  .swiper-slide {
    height: 250px;
  }
}

@media (min-width: 1440px) {
  .form-overlay {
    width: 35%;
    right: 12%;
  }

  .overlay-container {
    height: 700px;
  }

  .swiper-container {
    height: 700px;
  }

  .swiper-slide {
    height: 700px;
  }
}