* {
            font-family: "Bodoni Moda", serif;
            box-sizing: border-box;
        }


body {

    height: 100%;
    margin: 0;
    padding: 40px;
    background-size: cover;
    overflow: hidden;
    background-attachment: fixed;
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #f5f5f5;
    align-items: center;
    justify-content: center;
    display: flex;
    min-height: 100vh;
}

.bg-full {
    position: fixed;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
    top: 0;
    left: 0;

}

.form-container {

    width: 700px;
    max-width: 90vw;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    overflow: auto;


}

.question-container{

    background-color: rgba(255,255,255,1);
    margin-bottom: 1px;
    padding: 25px 30px;
    border: 1px solid #ebcdcd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;


}

.questions-text {

    flex: 1;
    font-size: 15px;
    color: #333;
    line-height: 1.4;

}

.dropdown {

    min-width: 180px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;

}

.dropdown:hover {

    border-color: #999;
}


.dropdown:focus{

    outline: none;
    border-color: #333;

}

#countryInput {

    min-width: 180px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;

}

#countryInput:hover {

    border-color: #999;

}
#countryInput:focus {

    outline: none;
    border-color: #333
}

.submit-btn {

    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background-color: #333;
    color: white;
    border: none;
    font-size: 14px;
    letter-spacing: 0.5px ;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
}

.submit-btn:hover{
    background-color: #555;


}

.title{

    text-align: center;
    color: #171616;
    font-size: 50px;
    font-weight: 300;
    margin-bottom: 40px ;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: fixed;
    top: 0;
}

.line{

    text-align: left;
    margin-bottom: 40px ;
}

.results-overlay {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity:0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.results-overlay.show {

    opacity: 1;
    visibility: visible;
}

.results-overlay.fade-out {

    opacity: 0;
    visibility: hidden;
}

.results-container {

    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);

    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {

    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.results-header h2 {
    font-size: 2.5rem;
    color: #2f2727;
    margin-bottom: 10px;
    font-weight: 600;
}

.results-header p{

    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.criteria-summary {

    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
} 

.criteria-summary span {
    background-color: rgba(255,255,255,0.8);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.close-results {
    position: absolute;
    top: -10px;
    right: 20px;
    background: none;
    border: none; 
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 10px
    ;
}

.close-results:hover {
    color: #333;
}

.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
    gap: 25px;
    margin-top: 30px;
}

.scholarship-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInCard 0.6s ease;
    animation-fill-mode: both;
}

.scholarship-card:hover {

    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #999;
}

@keyframes fadeInCard {
    from {
        opactiy: 0;
        transform: translateY(20px);
    }
    to {
        opacity:1;
        transform: translateY(0);
    }
}

.scholarship-card:nth-child(1) {animation-delay: 0.1s;}
.scholarship-card:nth-child(2) {animation-delay: 0.2s;}
.scholarship-card:nth-child(3) {animation-delay: 0.3s;}
.scholarship-card:nth-child(4) {animation-delay: 0.3s;}
.scholarship-card:nth-child(5) {animation-delay: 0.5s;}
.scholarship-card:nth-child(6) {animation-delay: 0.6s;}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg,#f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color:#2f2727;
    font-weight: 600;
    flex: 1;
    margin-right: 15px;
}

.amount {
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.card-body{
    padding: 20px;
}

.description {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.details {
    margin-bottom: 15px;
}

.detail-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.detail-item strong {
    color: #333;
}

.requirements {
    margin-top: 10px;
}

.requirements ul {
    margin: 5p 0 0 0; 
    padding-left: 20px;
}

.requirements li {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.apply-btn {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-btn:hover{
    background-color: #555;
}

.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    font-size:1.8rem;
    color:#333;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .criteria-summary {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .scholarships-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-header h2 {
        font-size: 2rem;
    }
    .close-results{
        top: 10px;
        right:10px;
    }
}