/* Hero Section */

#hero{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 40px 0px;
background: var(--hero-gradient);
}

#hero h1{
font-weight: 700;
font-size: 48px;
margin-bottom: 16px;
color: var(--text-light);
animation: onload 0.6s ease-in-out forwards;
}

#hero p{
max-width: 672px;
font-size: 20px;
color: var(--text-light);
animation: onload 0.7s ease-in-out forwards;
}

/* Enrollment Section */

#enrollment {
padding: 64px 20px;
display: flex;
justify-content: center;
background-color: #f7f5f2;
}

.enroll-grid {
max-width: 864px;
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}

.block-a {
position: relative;
grid-column: span 1;

}

.block-b {
grid-column: span 2;
animation: onload 0.9s ease-in-out forwards;
}

/* Card styling */
.info-card {
background-color: #ffffff;
padding: 24px;
border-radius: 12px;
transition: transform 0.25s ease, box-shadow 0.25s ease;
transform: scale(1);
box-shadow: 0 6px 18px hsla(165, 75%, 25%, 0.25);
animation: onload 1.0s ease-in-out forwards;
}

.info-card:hover{
    transform: scale(1.05);
    box-shadow: 0 12px 32px hsla(165, 75%, 25%, 0.35);
}

.card .info-list{
width: 100%;
}

.card .info-list h3{
color: var(--primary-color);
font-weight: 600;
font-size: 24px;
margin-bottom: 24px;
animation: onload 1.1s ease-in-out forwards !important;
}

.card .info-list ul{
padding: 0;
gap: 10px;
display: flex;
flex-direction: column;
margin-bottom: 0;
}

.card .info-list ul li{
display: flex;
gap: 10px;
list-style: none;
font-size: 14px;
animation: onload 1.2s ease-in-out forwards !important;
}

.card svg{
color: var(--secondary-color);
animation: onload 1.3s ease-in-out forwards !important;
}

/* Form styling */

.enroll-form {
background-color: #ffffff;
padding: 32px;
border-radius: 14px;
display: flex;
flex-direction: column;
gap: 24px;
border: 0.1px solid #ccc;
}

.enroll-form h3 {
font-size: 24px;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 8px;
}

.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

.form-row label{
font-size: 14px;
font-weight: 500;
color: var(--text-color);
}

.form-group label{
font-size: 14px;
font-weight: 500;
color: var(--text-color);
}

.enroll-form input,
.enroll-form select,
.enroll-form textarea {
width: 100%;
padding: 10px 16px;
border-radius: 10px;
border: 1px solid var(--border-color, #ccc);
background-color: #f7f5f2;
color: var(--text-color);
font-size: 15px;
outline: none;
}

.enroll-form textarea {
height: 120px;
resize: vertical;
}

.form-check {
display: flex;
align-items: flex-start;
gap: 10px;
padding-left: 0;
}

.form-check input[type="checkbox"] {
width: 18px;
height: 18px;
margin-top: 3px;
}

.form-check label {
font-size: 14px;
color: hsl(160 10% 40%);
line-height: 1.4;
}

.enroll-form button {
width: 100%;
padding: 10px 16px;
border: none;
border-radius: 10px;
background-color: var(--primary-color);
color: #fff;
font-weight: 600;
font-size: 15px;
cursor: pointer;
}

.enroll-form button:hover{
background-color: var(--primary-dark);
}

.form-note {
text-align: center;
font-size: 14px;
color: hsl(160 10% 40%);
margin-top: -10px;
margin-bottom: 0;
}

/* Media Query */

@media (max-width: 1024px) {
.enroll-grid {
grid-template-columns: 1fr;
}

.block-a,
.block-b {
grid-column: span 1;
}
}

@media (max-width: 768px) {
.form-row {
grid-template-columns: 1fr;
gap: 16px;
}
}


/*--------------------*/
/* seperate css to make the card card float*/
/*--------------------*/

.info-card.fixed {
position: fixed;
top: 20px;
z-index: 50;
width: var(--fixed-card-width);
}

.info-card-spacer {
width: 100%;
height: 0;
display: none;
}

.info-card-spacer.active {
display: block;
}

.info-card.stuck {
position: absolute;
bottom: 0;
top: auto;
width: 100%;
}

@media (max-width: 1024px) {
.info-card.fixed,
.info-card.stuck {
position: static !important;
width: auto !important;
top: auto !important;
}
.info-card-spacer {
display: none !important;
height: 0 !important;
}
}
