/*
    File: styles/index.css
    Purpose: Styles for the landing (index) page hero and form layout.
*/

.main-section {
    padding: 90px 60px 160px;
    background: #f4f6fb;
    flex: 1; 
}

/* Layout: two-column hero */
.hero-wrapper {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Column: left content (branding) */
.left-content {
    flex: 1;
    text-align: center;
}

 
/* Circle Logo with Yellow Border */



/* ===== PERFECT DOUBLE RING CIRCLE ===== */

.hero-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    
    background: #FFFFFF;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 20px 50px rgba(7, 65, 113, 0.3);
    animation: shakeLogo 3s infinite ease-in-out;
    border: 3px solid #074171;
}

.hero-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #FFFFFF;
}


.left-content h1 {
    font-size: 48px;
    font-weight: 800;
    color:  #074171;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -1px;
}

.left-content h2 {
    font-size: 30px;
    font-weight: 700;
    color:#01a8a3;
    margin-bottom: 15px;
    text-align: center;
}

/* Center All Text */
.left-content h1,
.left-content h2,
.left-content h3,
.left-content p {
    text-align: center;
}


.highlight {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.tagline {
    letter-spacing: 4px;
    font-size: 14px;
    color:rgb(62, 61, 61);
    font-weight: 500;
}

/* Column: right content (registration form) */
.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.contact-form {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: fadeUp 1s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-title {
    font-weight: 700;
    margin-bottom: 25px;
    
    text-align: center;
}


.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    font-size: 14px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}
.course{
    color:#333;
}

.course:invalid{
    color:#9e9e9e; /* placeholder color */
}

.course option{
    color:#333; /* normal dropdown options */
} 

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #ffd91b;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 214, 10, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #074171 0%, #0a5a99 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(7, 65, 113, 0.3);
    cursor: pointer;
}

.contact-form button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #FFD60A 0%, #ffc800 100%);
    color: #074171;
    box-shadow: 0 10px 30px rgba(255, 214, 10, 0.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }
.hero-circle {
    width: 220px;
    height: 220px;
}
    .form-section {
        width: 100%;
    }

    .left-content h1 {
        font-size: 32px;
    }

    .left-content h2 {
        font-size: 26px;
    }
}
 
/* Shake Animation */
@keyframes shakeLogo {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}
 
/* Form Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 /* ===== FULL WIDTH MOBILE FIX ===== */
@media (max-width: 768px) {

    .main-section {
        padding: 40px 0;   /* remove left-right padding */
    }

    .hero-wrapper {
        padding: 0;
    }

    .form-section {
        width: 100%;
        padding: 0;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
        padding: 25px 15px;   /* small inner padding only */
        border-radius: 0;     /* optional: remove rounded corners */
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .contact-form button {
        width: 100%;
    }
}



/* POPUP OVERLAY */
.popup-box{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    z-index:9999;
}

/* ACTIVE POPUP */
.popup-box.active{
    opacity:1;
    visibility:visible;
}

/* POPUP CARD */
.popup-card{
    background:#15ad43; /* Green background */
    padding:45px 40px;
    border-radius:12px;
    text-align:center;
    width:420px;
    max-width:90%;
    color:#fff;
    box-shadow:0 15px 40px rgba(0,0,0,0.25);
}

/* TITLE */
.popup-card h2{
    margin-bottom:12px;
    color:#074171;
    font-size:28px;
    font-weight:600;
}

/* TEXT */
.popup-card p{
    color:#f1f1f1;
    font-size:16px;
    line-height:1.5;
}

/* BUTTON */
.popup-card button{
    margin-top:20px;
    padding:12px 28px;
    border:none;
    background:#074171;
    color:#fff;
    border-radius:6px;
    cursor:pointer;
    font-size:15px;
    transition:0.3s;
}

/* BUTTON HOVER */
.popup-card button:hover{
    background:#0a5a9c;
}

/* MOBILE RESPONSIVE */
@media (max-width:600px){

.popup-card{
    width:90%;
    padding:35px 25px;
}

.popup-card h2{
    font-size:24px;
}

.popup-card p{
    font-size:14px;
}

}