/* =========================
   CONTACT PAGE - FIXED FULL CSS
   (only the 2nd row is flex, nothing breaks)
   ========================= */

/* Background image */
body{
    background-image: url('{{asset('images/pexels-karolina-grabowska-5239913.webp')}}');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* If any overlay exists from old CSS, remove it */
body::before{ content: none !important; }

/* Page spacing */
.container[style*="padding-bottom:100px"]{
    padding-top: 40px;
}

/* Title */
.container h3[style*="text-align:center"]{
    color: #a10056;
    font-weight: 800;
    margin-bottom: 18px !important;
}

/* =========================================
   IMPORTANT: Only the 2nd .row becomes flex
   (the one that contains col-md-8 + col-md-4)
   ========================================= */
.container[style*="padding-bottom:100px"] > .row:nth-of-type(2){
    display: flex;
    align-items: stretch;
    gap: 18px;
}

/* Keep left column NORMAL (not flex) */
.container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-8{
    flex: 1 1 auto;
}

/* Make right column flex so form can stretch height */
.container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-4{
    flex: 0 0 420px;      /* right column width */
    display: flex;
    justify-content: flex-end;
}

/* LEFT info box (card) */
.container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-8{
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 16px;
    padding: 26px 26px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-8 h4{
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1.12rem;
    line-height: 1.35;
}

.container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-8 p{
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* left links */
.container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-8 a{
    color: #073b63 !important;
    text-decoration: none;
    font-weight: 700;
}
.container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-8 a:hover{
    text-decoration: underline;
}

/* RIGHT form card */
.course-enquiry{
    width: 100%;
    max-width: 420px;
    background: rgba(7,59,99,0.95);
    color: #fff;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    padding: 22px 22px;

    /* stretch to match left height */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* form stretch */
.enquiry-form{
    height: 100%;
    display: flex;
    flex-direction: column;
}
.enquiry-form .container-fluid{
    padding-left: 0;
    padding-right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* form heading */
.course-enquiry h3{
    margin: 0 0 14px !important;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

/* labels */
.course-enquiry label{
    width: 100%;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.02em;
}
.course-enquiry label span{
    color: #ffb4d8;
    font-weight: 900;
}

/* inputs */
.course-enquiry .form-control,
.course-enquiry input,
.course-enquiry textarea{
    width: 100%;
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.10);
    color: #fff;
    outline: none;
    transition: 0.15s ease;
}

.course-enquiry .form-control:focus,
.course-enquiry input:focus,
.course-enquiry textarea:focus{
    border-color: rgba(255,255,255,0.55);
    box-shadow: 0 0 0 3px rgba(255,47,146,0.22);
    background: rgba(255,255,255,0.14);
}

/* submit button bottom */
.enquiry-form button[type="submit"]{
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 800;
    background: #ff2f92;
    box-shadow: 0 14px 30px rgba(255,47,146,0.35);
    transition: 0.15s ease;
    margin-top: auto;
}
.enquiry-form button[type="submit"]:hover{
    transform: translateY(-1px);
    background: #e7008a;
}

/* Desktop optional sticky */
@media (min-width: 992px){
    .course-enquiry{
        position: sticky;
        top: 110px;
    }
}

/* Mobile: normal stacking */
@media (max-width: 767px){
    body{ background-attachment: scroll; }

    .container[style*="padding-bottom:100px"] > .row:nth-of-type(2){
        display: block;
    }

    .container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-8{
        margin-bottom: 16px;
        padding: 18px 16px;
        border-radius: 14px;
    }

    .container[style*="padding-bottom:100px"] > .row:nth-of-type(2) > .col-md-4{
        display: block;
    }

    .course-enquiry{
        max-width: 100%;
        padding: 18px 16px;
        border-radius: 14px;
        height: auto;
        position: static;
    }
}
