html {
    font-size: 100%; /* 1rem = 16px by default */
}
body {
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    height:100%;
    font-size: 1rem; /* Base font size */
}
.headers {
    color: #163057;
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    font-size: 2rem; /* Adjusted for responsiveness */
    text-align: center;
    align-items: center;
    margin-left: 2%;    
}
h3{
    color:orangered;
    font-size: 1.5rem; /* Responsive size */
}
.home-image{
    width:70%; 
    margin-left:15%;
}
.table{
    width: 80%;
}
td,th{
    border:1px solid #dddddd;
    text-align:left;
    padding: 0.5rem; /* Responsive padding */
}
.Eligibility , .docs{
    margin: 2.5% 10% 2.5% 10%;
    background:white;
    padding:2%;
    width:80%;
    font-size: 1rem; /* Use base font size */

}
.docs {
    margin: 2.5% 5% 2.5% 5%;
    background:white;
    margin-left: 10%;
    padding: 1%;
}
.doc-flexbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-left:5%;
    margin-right:5%;
}

.doc-box {
    flex: 1 1 calc(50% - 20px); /* Two boxes per row with space between */
    -ms-flex: 1 1 calc(50% - 20px); /* Two boxes per row with space between */
    max-width: calc(50% - 20px);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.doc-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem; 
}

.doc-box ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1rem;

}

.doc-box p {
    margin-top: 10px;
    font-weight: bold;
}

/* Make it responsive */
@media (max-width: 768px) {
    .doc-box {
        flex: 1 1 100%; /* Full-width on smaller screens */
        -ms-flex: 1 1 100%; /* Full-width on smaller screens */
        max-width: 100%;
        width:90%
    }
}


.result-amounts{
    display: flex;
    flex-direction: row;
    -ms-flex-direction: row;
    width:100%;
    margin:5px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */

}
.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-group span {
    background-color: #e0e0e0;
    padding: 2%;
    border-radius: 4px 0 0 4px;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    outline: none;
}
.result {
    text-align: center;
    margin-bottom: 15px;
    background:#F0DEDE;
    margin:5px;
}
.Emibutton{
    display: flex; /* Enables flexbox layout */
    justify-content: center; /* Horizontally centers the button */
    align-items: center; /* Vertically centers the button */
}

.container1 {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center child elements horizontally */
    align-items: stretch; /* Stretch children to match container height */
    margin: 4%;
    gap: 20px; /* Space between child elements */
    max-width: 80%; /* Constrain container width */
    height: 100%; /* Fill the height of the parent */
}

.calculator-container,
.results-container {
    flex: 1 1 calc(45% - 20px); /* Adjust size and space between children */
    max-width: 45%; /* Limit maximum width */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: auto; /* Remove fixed height for flexibility */
}



.inputs label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

.inputs input {
    width: 90%;
    padding: 2%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#calculateBtn {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#calculateBtn:hover {
    background: #0056b3;
}

.results p {
    font-size: 18px;
    margin: 5px 0;
    color:white;
}

.chart {
    margin: 20px auto;
    max-width: 80%;
}
  
.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.62;
    overflow: hidden; /* Hide excess parts of the image */
    background-attachment: fixed; /* Key property for parallax */
    background-position: center;
    background-repeat: no-repeat;
    
}

.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 0.62;
    transform: translateZ(0); /* Enable GPU rendering for better performance */
    will-change: transform;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay with 40% opacity */
    color: white;
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay h2 {
    font-size: 2rem;
    margin: 0;
}

.overlay p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .container1 {
        flex-direction: column; /* Stack containers vertically */
        -ms-flex-direction: column; /* Stack containers vertically */
        gap: 30px; /* Add spacing between stacked containers */
    }

    .calculator-container,
.results-container {
    flex: 1 1 100%; /* Full-width on smaller screens */
    max-width: 100%; /* Constrain to container's width */
}
}
.animation{
    margin-top:10%;
    margin-left:10%;
    margin-right:10%;
    width:80%;
    height:20%;
}
.credit-card-carousel {
    position: relative;
    max-width:70%;
    width:100%;
    aspect-ratio: 1 / 0.64;
    margin-top:10%;
    margin-left:20%;
    margin-right:20%;
    transform-style: preserve-3d;
    animation: spin 10s infinite linear;

}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    backface-visibility: hidden; /* Prevent back from showing */
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.card img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
}

#card1 {
    transform: rotateY(0deg) translateZ(150px);
}

#card2 {
    transform: rotateY(120deg) translateZ(150px);
}

#card3 {
    transform: rotateY(240deg) translateZ(150px);
}

/* Rotating animation */
@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

 
.bg1{
    display: flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 2.5% 10%;
    flex-direction: row; /* Default layout: image and content side by side */
    flex-wrap: wrap;   
}
.bg1{
    background: #224062;
}
.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.contact-item {
    flex: 1 1 ;
    padding: 10px;
    color: #444;
}

.icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

/* Contact Form and Image */
#Contact-id {
    position: relative;
    overflow: hidden; /* Ensures content doesn't spill outside the div */
    height: auto; /* Adjust this based on your desired height */
}
.contact-container {
    display: flex;
    flex-direction: row;
    justify-items: center;
    align-items: center;
    justify-content: space-around;
    width:100%;

}
.contact-image img {
    max-width: 100%;
    height: auto;
    width:100%;
    margin:2.5% 5% 2.5% 5%;
    border-radius: 1%;
}
.contact-image{
    width:80%;
}
.contact-form {
    margin:2.5% 5% 2.5% 5%;
    width:80%;
}
.contact-form label{
    color: white;
}
.form-group {
    margin-bottom: 2%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn {
    background-image: radial-gradient( circle farthest-corner at 10% 20%,  rgba(176,229,208,1) 42%, rgba(92,202,238,0.41) 93.6% );
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    margin-left: 40%;
    margin-right: 0%;
}

.btn:hover {
    background: linear-gradient(to right, #feb47b, #ff7e5f);
}
.contact-item p{
    color: white;
}
/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    .headers {
        color: #163057;
        font-size: 1.5rem; /* Smaller headers on small screens */
        text-align: center;
        align-items: center;
        margin-left: 2%;    
    }
    .overlay p{
        font-size: 0.9rem; /* Adjust overlay text */
    }
    .doc-box h3 {
        font-size: 1.1rem;
    }
    .contact-info {
        flex-direction: column;
        text-align: center;
    }
    .doc-box p, .doc-box ul {
        font-size: 0.9rem; /* Slightly smaller text */
    }
    .home-image{
        width:90%; 
        margin-left:5%;
    }
}
