.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: auto;
}
.customform.block .form-modal-overlay {
    position: unset!important;
    background: unset;
}


.form-modal-overlay.show {
    opacity: 1;
}

.form-modal-overlay fieldset {
    display: flex;
}

.form-modal {
    background: white;
    border-radius: 12px;
    max-width: 1200px;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    padding: 20px 30px;
    /* padding-top: 0; */
    /* max-height: 700px; */
    height: auto;
    /* margin-top: 21%;
    margin-bottom: 10px; */
    position: relative;
    background: linear-gradient(0deg, rgba(78, 0, 4, 0.8) 0%, rgba(142, 0, 6, 0.8) 100%), linear-gradient(0deg, rgba(252, 236, 228, 1) 0%, rgba(252, 236, 228, 1) 100%);
}
.customform.block .form-modal {
    width: 100%;
    transform: unset;
    border: unset;
}

.form-modal-overlay.show .form-modal {
    transform: scale(1) translateY(0);
}
.customform.block  .form-modal-overlay.show .form-modal {
    transform: unset;
}

.form-modal .form-modal-header {
    padding-bottom: 10px;
}

.form-modal .form-modal-title {
    color: #ffffff;
    /* font-weight: 600; */
    /* font-size: 24px; */
}

.form-modal .form-modal-close::before {
    content: url("../../icons/white-cross-icon.svg");
    /* margin-right: 15px;
    margin-top: 10px; */
    cursor: pointer;
}

.form-modal .errorMsg {
    color: #fff;
    margin-top: 2px;
    font-size: 12px;
}

.form-modal .checkbox-wrapper .errorMsg{
    position: absolute;
    bottom: -23px;
    color: #fff;
    font-size: 12px;
    left: 30px;
}

.form-modal .form-modal-close {
    background: transparent;
    border: none;
    font-size: 25px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 12px;
}

.customform.block .form-modal .form-modal-close {
    display: none;
}
/* .form-modal .form-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
} */

.form-modal .form-modal-content {
    /* padding: 18px 24px;
    background: #fef2ed;
    border-radius: 12px;
    overflow: hidden; */
    display: flex;
}

/* Base form styles only inside modal */
.form-modal form {
    width: 65%;
    margin-left: 20px;
    color: #fff !important;
}
.customform.block .form-modal form {
    width: 100%;
}

.form-modal fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-modal .fieldset-wrapper {
    margin-bottom: 0;
}

.form-modal .field-flex {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.form-modal .field-flex fieldset {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-modal .field-flex .field-wrapper {
    flex: 1;
    margin-bottom: 0;
}

.form-modal label {
    display: block;
    font-size: 14px;
    /* font-weight: 600; */
    /* color: #333; */
    /* margin-bottom: 4px; */
}

.form-modal .mandatory-true::after {
    content: "*";
    color: #ff6b35;
    margin-left: 3px;
}

/* .full-name-input label::after,
/* .email-wrapper label::after, */
.pan-number label::after {
    content: "" !important;
}

.form-modal .checkbox-wrapper .mandatory-true::before{
    content: "*";
    color: #ff6b35;
    margin-right: 3px;
}

.form-modal .checkbox-wrapper .mandatory-true::after{
    content: "";
}
/* 
.form-modal .checkbox-wrapper .mandatory-true::after{
    content: "";
} */

.form-modal input[type="number"],
.form-modal input[type="date"],
.form-modal input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
}
.form-modal input[type="date"]
{
    text-transform: uppercase;
}
.form-modal .button.field-wrapper.submit-wrapper {
    margin-top: 20px;
}
#graduation-year:disabled{
    opacity: 0.9;
    cursor: not-allowed;
}
#post-graduation-year:disabled{
        opacity: 0.9;
    cursor: not-allowed;
}

.form-modal input[type="text"],
.form-modal input[type="tel"],
.form-modal input[type="file"],
.form-modal select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.form-modal input[type="file"]{
  border: 2px dashed #ccc;
  transition: 0.2s ease;
  padding: 8.5px 20px;
  cursor: pointer;
}

.form-modal input[type="file"]::-webkit-file-upload-button {
    /* display: none; */
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    color: #616161;
}

.form-modal input[type="text"]:focus,
.form-modal input[type="tel"]:focus,
.form-modal select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-modal input::placeholder {
    color: #999;
}

.form-modal select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
    color: #999;
    background-color: #fff;
    background-size: 12px 8px;
    /* arrow size */
}

.form-modal select:focus {
    color: #333;
}

.form-modal .checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* margin-right: 30px; */
    flex-direction: row-reverse;
    position: relative;
}

.form-modal .checkbox-wrapper label {
    margin-top: 10px;
    font-size: 10px;
    line-height: 16px;
    cursor: pointer;
    /* font-weight: 600; */
}

.form-modal input[type="checkbox"] {
    appearance: none;
    width: 30px;
    height: 17px;
    border: 2px solid #ffffff;
    background-color: #ffffff;
    border-radius: 20%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
}

.form-modal input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='%23F05A22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

.form-modal button[type="submit"],
.form-modal .submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-modal .error {
    color: #d21111;
    border: 1px solid rgb(93, 20, 218);
}

.otpform__container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
    position: relative;
    width: 100%;
}

.otpform__content {
    background-color: #ffffff;
    /* border: 1px solid #cfcfcf; */
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header Section */
.otpform__header {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.otpform__title {
    font-family: "Mulish", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    line-height: normal;
}

.otpform__description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.otpform__description-text {
    font-family: "Mulish", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #111111;
    opacity: 0.8;
    margin: 0;
    line-height: 24px;
    letter-spacing: -0.16px;
}

.otpform__phone {
    font-family: "Mulish", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ea6024;
    opacity: 0.8;
    text-decoration: underline;
    line-height: 27px;
    letter-spacing: -0.18px;
}

/* OTP Input Section */
.otpform__otp-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.otpform__label {
    font-family: "Mulish", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    letter-spacing: -0.14px;
    line-height: 16.8px;
}

.otpform__inputs {
    display: flex;
    gap: 12px;
    width: 100%;
}

.otpform__input-wrapper {
    flex: 1;
    height: 40px;
}

.otpform__input {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: 16px;
    font-family: "Mulish", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    text-align: center;
    line-height: 21px;
    transition: border-color 0.2s ease;
}

.otpform__input:focus {
    outline: none;
    border-color: #ea6024;
}

.otpform__input:hover {
    border-color: #999999;
}

/* Resend Section */
.otpform__resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.otpform__resend-text {
    font-family: "Mulish", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #111111;
    opacity: 0.8;
    line-height: normal;
}

.otpform__resend-button {
    font-family: "Mulish", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #f36523;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: normal;
    transition: opacity 0.2s ease;
}

.otpform__resend-button:hover {
    opacity: 0.8;
}

.otpform__resend-button:active {
    transform: scale(0.98);
}

/* Verify Button */
.otpform__button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.otpform__button {
    width: 100%;
    padding: 16px;
    background-color: #ea6024;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: "Albert Sans", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    line-height: normal;
}

.otpform__button:hover {
    background-color: #d15520;
}

.otpform__button:active {
    transform: scale(0.98);
}

.otpform__button:focus {
    outline: 2px solid #ea6024;
    outline-offset: 2px;
}


.form-modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Edge, Safari */
}

.form-modal-content {
    max-height: 80vh;
    /* content scrollable area */
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
}

.customform.block .form-modal-content {
    max-height: unset;
}

.otpform__close-icon {
    position: absolute;
    top: 10px;
    right: 44px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.info-icon {
  margin-left: 6px;
  cursor: pointer;
  background: white;
  color: #333;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* .info-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
}

.info-icon:hover::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
} */



/* Tablet Styles (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .otpform__content {
        max-width: 400px;
        padding: 28px;
        gap: 28px;
    }


    .otpform__title {
        font-size: 22px;
    }

    .otpform__description-text {
        font-size: 15px;
        line-height: 22px;
    }

    .otpform__phone {
        font-size: 17px;
    }

    .otpform__button {
        font-size: 18px;
        padding: 14px;
    }
}

/* Mobile Styles (< 767px) */
@media (max-width: 767px) {
    .otpform__container {
        padding: 16px;
    }

    .otpform__close-icon{
        top: 20px;
        right: 22px;
    }

    .form-modal input[type="checkbox"] {
        width: 48px !important;
    }

    .form-modal .field-flex fieldset {
        flex-direction: column;
    }

    /* .form-modal .form-modal-header {
        padding: 16px;
    } */

    .form-modal {
        padding: 0;
    }

    .otpform__content {
        max-width: 100%;
        padding: 24px;
        gap: 8px;
    }

    .otpform__header {
        gap: 16px;
    }

    .otpform__title {
        font-size: 20px;
    }

    .otpform__description-text {
        font-size: 14px;
        line-height: 20px;
    }

    .otpform__phone {
        font-size: 16px;
        line-height: 24px;
    }

    .otpform__inputs {
        gap: 8px;
    }

    .otpform__input-wrapper {
        height: 36px;
    }

    .otpform__input {
        font-size: 16px;
        padding: 12px;
    }

    .otpform__resend {
        flex-direction: column;
        gap: 4px;
    }

    .otpform__resend-text,
    .otpform__resend-button {
        font-size: 14px;
    }

    .otpform__button {
        font-size: 18px;
        padding: 14px;
    }

    .form-modal .form-modal-content {
        flex-direction: column;
    }

    .form-modal form {
        width: 100%;
        margin: 0;
        padding: 16px;
        position: relative;
    }

    .customform.block  .form-modal form {
        width: 100%;
    }
    .form-modal .checkbox-wrapper {
        gap: 4pxpx;
    }

    .form-modal .field-flex .choose-file span{
        font-size: 14px;
    }
}

/* Desktop Styles (> 1200px) */
@media (min-width: 1200px) {
    .otpform__content {
        max-width: 440px;
    }
}

@media (max-width: 400px) {
    .form-modal {
        max-height: 640px;
    }
}


  .custom-alert {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background-color: #4BB543; /* green for success */
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
  }

  .custom-alert.show {
    opacity: 1;
    transform: translateY(0);
  }

  .custom-alert.error {
    background-color: #FF4C4C;
  }