/* Scholarship Modal Reference Match */
.scholarship-modal .modal-dialog {
    max-width: 750px;
}

.scholarship-modal-content {
    border: 2px solid #var(--blue);
    border-radius: 0;
    /* Reference has sharp corners or very small radius */
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.scholarship-modal-header {
    background: var(--blue);
    height: 35px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.scholarship-modal-close {
    background: transparent;
    border: none;
    color: #000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.scholarship-split-container {
    display: flex;
    background: #fff;
}

.scholarship-modal-left {
    flex: 0 0 45%;
    max-height: 500px;
    overflow: hidden;
}

.scholarship-modal-left img {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    /* Match the reference look */
}

.scholarship-modal-right {
    flex: 1;
    padding: 20px 25px;
    background: #fff;
    max-height: 500px;
    overflow-y: auto;
}

.scholarship-form-header h2 {
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 5px;
    color: #333;
    font-weight: 800;
}

.scholarship-form-header h2 .price-green {
    color: #198754;
    font-weight: 900;
}

.scholarship-form-header h2 .time-limit {
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
}

.scholarship-form-header .deadline-red {
    color: #ff0000;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 15px;
    display: block;
}

/* Form Fields Styling to match Reference */
.popup-form-content .wpcf7-form p {
    margin-bottom: 10px;
}

.popup-form-content .wpcf7-form-control:not(.wpcf7-submit) {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 15px;
    border: 1px solid #000;
    border-radius: 5px;
    background: #fff;
    color: #333;
    transition: all 0.2s ease;
}

.popup-form-content .wpcf7-form-control::placeholder {
    color: #666;
}

.popup-form-content .wpcf7-submit {
    width: 100%;
    background: var(--blue) !important;
    color: #000 !important;
    border: none !important;
    padding: 12px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 5px !important;
}

.popup-form-content .wpcf7-submit:hover {
    background: var(--blue) !important;
}

.popup-form-content .wpcf7-submit.has-spinner {
    line-height: normal !important;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .scholarship-modal .modal-dialog {
        max-width: 95%;
    }

    .scholarship-modal-right {
        padding: 15px;
        max-height: 75vh;
    }
}