.custom-modal-contact {
    border-radius: 28px !important;
    overflow: visible !important;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: none;
}

.btn-close-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #C3C3C2;
    background: transparent;
    border: none;
    z-index: 20;
    outline: none !important;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-close-custom:hover {
    color: #7F7F7F;
}

.modal-body {
    padding: 3rem 2.2rem 2.2rem !important;
    position: relative;
}

.modal-icon-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background-color: #FA4D99;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.modal-icon-img {
    width: 42px;
    height: auto;
    filter: brightness(0) invert(1);
}

.modal-title {
    color: #FA4D99;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.modal-subtitle {
    color: #595959;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.modal-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #7F7F7F;
    margin-bottom: 1.8rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.modal-divider {
    width: 100%;
    margin: 0 auto 1.6rem;
    border-top: 1px solid #D9D9D9;
}

.form-label-custom {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #7F7F7F;
    margin-bottom: 6px;
    text-align: left;
}

.form-contact {
    border-radius: 14px;
    border: 1.5px solid #D9D9D9;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #353535;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-contact:focus {
    border-color: #FA4D99;
    box-shadow: 0 0 0 0.2rem rgba(250, 77, 153, 0.15);
    background-color: #ffffff;
}

.form-contact-textarea {
    min-height: 110px;
    resize: none;
}

.btn-contact-modal {
    background-color: #FA4D99 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-contact-modal:hover,
.btn-contact-modal:focus {
    background-color: #F01E89 !important;
    transform: translateY(-1px);
}

.modal .invalid-feedback {
    display: block;
    font-size: 0.8rem;
    text-align: left;
    color: #F01E89;
}

.institution-success-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 20, 50, 0.75);
    backdrop-filter: blur(3px);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.institution-success-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem 1.8rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.institution-success-icon {
    color: #e82574;
    font-size: 4.2rem;
}

.institution-success-title {
    color: #e82574;
    font-size: 1.6rem;
}

.institution-success-text {
    color: #4a4a68;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.institution-success-button,
.btn.institution-success-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e82574 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 170px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 12px rgba(232, 37, 116, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn.institution-success-button:hover,
.btn.institution-success-button:focus {
    background-color: #d81f5f !important;
    transform: translateY(-1px);
}

.custom-modal-contact select.form-contact {
    height: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 2.8rem 1.2rem 1.8rem !important;
    }

    .modal-icon-circle {
        width: 74px;
        height: 74px;
        top: -37px;
    }

    .modal-title {
        font-size: 1.45rem;
    }

    .modal-subtitle {
        font-size: 0.95rem;
    }
}