
/* ==========================================================
   ELEGANT DRIVING ACADEMY
   PRODUCT PAGES & DRIVING PROGRAMS
   Source: existing assets/css/style.css

   Prepared for CSS separation.
   Do not enqueue until the old rules are removed.
   ========================================================== */

/* ----------------------------------------------------------
   1. WOOCOMMERCE PRODUCT DEFAULTS
   ---------------------------------------------------------- */

.product .cart .quantity {
    display: none !important;
}

.product .product_meta {
    display: none !important;
}

.course-elegant-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----------------------------------------------------------
   2. PRODUCT PAGE LAYOUT
   ---------------------------------------------------------- */

.elegant-main-section {
    position: relative;
    padding: 130px 0 0;
}

.elegant-product-section {
    position: relative;
    padding: 50px 0;
}

.product-body {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    width: 75vw;
}

.product-body .product-image {
    width: 30%;
}

.product-body .product-image .product-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 70%;
    height: 100%;
}

.product-body .product-content h2 {
    color: #234084;
    font-size: 30px;
    font-weight: 700;
}

.product-body .product-content p {
    color: #000000;
    font-size: 16px;
}

.product-content h2 {
    font-family: "Oswald", sans-serif;
}

/* ----------------------------------------------------------
   3. PRODUCT IMAGE SLIDER
   ---------------------------------------------------------- */

.product-slider .slick-next {
    position: absolute;
    right: 10px;
}

.product-slider .slick-next::before {
    content: "→";
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 25px;
    font-weight: 700;
    transform: translateY(-50%);
}

.product-slider .slick-prev {
    position: absolute;
    left: 15px;
    z-index: 999;
}

.product-slider .slick-prev::before {
    content: "←";
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 25px;
    font-weight: 700;
    transform: translateY(-50%);
}

/* ----------------------------------------------------------
   4. PRODUCT DETAILS
   ---------------------------------------------------------- */

.elegant-details-section {
    position: relative;
    height: 440px;
    background-repeat: repeat;
    background-size: cover;
    background-position: 3rem 0;
}

.course-details-body {
    position: absolute;
    top: 10%;
    width: 75vw;
}

.course-details-body h2 {
    margin-bottom: 1rem;
    color: #234084;
    font-family: "Oswald", sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.course-details-body .course-details-note {
    padding: 10px 0 30px;
    color: red;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.course-details-body .course-details-note span {
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
}

.course-table tbody {
    background: #ffffff5d;
    color: #234084;
}

.course-table tbody tr {
    border: 1px dashed #9d9d9d45;
    border-radius: 10px;
}

.course-table tbody tr td {
    padding: 10px 10px 10px 1rem;
}

.course-table tbody tr td:first-child {
    padding-right: 3rem;
}

.course-table tbody tr td:nth-child(2) {
    width: 350px;
    font-weight: 400;
}

/* ----------------------------------------------------------
   5. PRODUCT VIDEO
   ---------------------------------------------------------- */

.video-product-page {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: fill;
}

/* ----------------------------------------------------------
   6. PRODUCT AIM / BENEFITS
   ---------------------------------------------------------- */

.elegant-aim-section {
    position: relative;
    padding: 50px 0;
}

.elegant-aim-section .aim-top h2 {
    margin: 0 0 30px;
    color: #234084;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

.aim-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 75vw !important;
}

.aim-body .aim-card {
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgb(207, 205, 205);
}

.aim-body .aim-card h2 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.aim-body .aim-card p {
    color: grey;
    font-size: 16px;
}

/* ----------------------------------------------------------
   7. PRODUCT REGISTRATION TABLE
   ---------------------------------------------------------- */

.register-body {
    width: 75vw !important;
    padding-bottom: 35px;
}

.register-body h2 {
    padding: 12px;
    color: #234084;
    font-size: 30px;
    font-weight: 700;
}

.register-body table tbody {
    background-color: #2340842d;
}

.register-body table tr td {
    padding: 10px;
    color: #000000;
    font-size: 16px;
}

.register-body table tr td:nth-child(2) {
    color: #234084;
}

.register-body table tr td:nth-child(3) {
    color: #ffffff;
}

.register-body table tr td .register {
    text-transform: uppercase;
}

.register-body .register {
    padding: 5px 15px;
    background: #e02c1d;
}

.register-body .register:hover {
    background: #254286;
    color: #ffffff !important;
}

/* ----------------------------------------------------------
   8. PRODUCT REGISTRATION FORM
   ---------------------------------------------------------- */

.form__mainWrapper {
    margin-top: 10px;
}

.firstNameAndLast__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.firstName__wrapper,
.lastName__wrapper {
    flex: 1;
}

.firstName__wrapper input,
.lastName__wrapper input,
.firstName__wrapper textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #969696;
    border-radius: 5px;
    color: #969696;
    font-family: "AileronSemibold";
    font-weight: 300;
}

.btn__wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.submitNow__btn {
    padding: 10px 15px;
    border-radius: 5px;
    background: red;
    color: #ffffff;
    font-family: "AileronBold";
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ----------------------------------------------------------
   9. PRODUCT CTA
   ---------------------------------------------------------- */

.contect-btn {
    width: 70%;
    margin: 1rem auto;
    border-radius: 5px;
    background: #234084;
    color: #ffffff;
    text-align: center;
}

.contect-btn a {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.contect-btn a:hover {
    color: #ffffff;
}

.elegant-top-text {
    padding: 10px;
    background: #234084;
    color: #ffffff;
    font-weight: 500;
}

/* ----------------------------------------------------------
   10. MOVING CAR ANIMATION
   Preserve existing animation behaviour.
   ---------------------------------------------------------- */

.moving-car-div {
    position: absolute;
    top: 51%;
    left: 50%;
    z-index: 10;
}

.car-img-body {
    width: 500px;
}

.wheel1,
.wheel2,
.wheel3,
.wheel4 {
    position: absolute;
    animation: rotateWheel 800ms linear infinite;
}

.wheel1 {
    top: 55%;
    right: 15%;
    width: 71px;
}

.wheel2 {
    top: 55%;
    left: 14%;
    width: 71px;
}

@keyframes rotateWheel {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Existing product-specific vehicle positions */

.postid-710 .moving-car-div,
.postid-711 .moving-car-div,
.postid-712 .moving-car-div,
.postid-204 .moving-car-div,
.postid-713 .moving-car-div {
    position: absolute;
    top: 39%;
    left: 50%;
    z-index: 10;
}

.postid-710 .car-img-body,
.postid-711 .car-img-body,
.postid-712 .car-img-body,
.postid-204 .car-img-body,
.postid-713 .car-img-body {
    width: 600px;
}

.postid-710 .wheel2,
.postid-711 .wheel2,
.postid-712 .wheel2,
.postid-204 .wheel2,
.postid-713 .wheel2 {
    top: 78%;
    left: 7.8%;
    width: 46px;
}

.postid-710 .wheel1,
.postid-711 .wheel1,
.postid-712 .wheel1,
.postid-204 .wheel1,
.postid-713 .wheel1 {
    top: 78%;
    left: 76.7%;
    width: 46px;
}

.postid-710 .wheel3,
.postid-711 .wheel3,
.postid-712 .wheel3,
.postid-204 .wheel3,
.postid-713 .wheel3 {
    top: 78%;
    right: 23.8%;
    width: 46px;
}

/* ----------------------------------------------------------
   11. DRIVING PROGRAM SECTIONS
   ---------------------------------------------------------- */

#carMainSection {
    padding: 1rem 0;
    background-size: cover;
    background-repeat: no-repeat;
}

#carMainSection h2 {
    font-family: "Red Hat Display", sans-serif;
    font-size: 2rem;
    font-weight: 600;
}

#carMainSection .container {
    max-width: 1190px !important;
}

#carMainSection p {
    margin-bottom: 1rem;
    text-align: justify;
}

.our-program-img-div {
    position: relative;
    width: 400px;
    height: 400px;
    padding: 10px;
}

.our-program-img-div::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px dashed #254286;
    border-radius: 50%;
    animation: rotateAnime 2000ms linear infinite;
}

@keyframes rotateAnime {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.our-program-img-div img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.number-program {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(
        180deg,
        rgba(48, 62, 126, 1) 10%,
        rgba(131, 52, 79, 1) 92%
    );
    color: #ffffff;
}

.our-program-content-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.our-program-content-div h2 {
    color: #002357;
}

.our-program-btn {
    padding: 10px 30px;
    border-radius: 0;
    background: #E02C1D;
    color: #ffffff;
    text-decoration: none;
    transition: border-radius 300ms ease;
}

.our-program-btn:hover {
    border-radius: 50px;
    color: #ffffff;
}

.fly-aero-path {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fly-aero-path2 {
    transform: rotateY(180deg);
}

#commercial-training {
    margin-top: 3rem;
    padding: 2rem 0;
}

.elegant-extra-section {
    margin-bottom: 2rem;
}

/* ----------------------------------------------------------
   12. GLP AGREEMENT / REGISTRATION POPUP
   ---------------------------------------------------------- */

.popup-div {
    display: none;
    position: absolute;
    width: 80%;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 5px grey;
    transform: scale(0.6);
    transition: transform 200ms;
}

.popup-check:checked ~ .popup-div {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: fit-content;
    background: #ffffff;
    color: #000000;
    text-align: left;
    transform: scale(1);
}

.access-register {
    position: relative;
    display: inline-block;
}

.access-register::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 100;
    visibility: visible;
    background: transparent;
    transform: scale(1.4);
}

.access-register a {
    color: #ffffff;
}

#term-check {
    vertical-align: top;
}

#term-check:checked ~ .access-register::before {
    visibility: hidden;
}

.popup-terms-text {
    display: inline-block;
    position: relative;
    top: -6px;
    width: 97%;
    margin-bottom: 10px;
}

.postid-212 .register-body tbody tr {
    position: relative;
}

.popup-check {
    display: inline-block;
    position: absolute;
    margin-top: 5px;
    margin-left: -57px;
    opacity: 0;
    transform: scaleX(9) scaleY(2.3);
}

/* ----------------------------------------------------------
   13. PRODUCT PACKAGE SELECTION
   ---------------------------------------------------------- */

.sl_boxt,
.sl_boxc {
    width: 100%;
    padding: 3px 10px;
}

.chkbox-div {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sl_hol {
    width: 50%;
    margin: auto;
    padding: 1rem;
    border-radius: 5px;
    background: #ffffff42;
}

.stust,
.pack {
    display: flex;
    position: relative;
    gap: 10px;
}

.stust {
    margin-bottom: 10px;
}

.stust span,
.pack span {
    display: inline-block;
    width: 150px;
    white-space: nowrap;
    font-weight: 700;
}

.stust::before,
.pack::before {
    content: "";
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    z-index: 1000;
    width: 1px;
    background: #8080808f;
}

/* ----------------------------------------------------------
   14. RESPONSIVE PRODUCT LAYOUT
   ---------------------------------------------------------- */

@media (max-width: 992px) {

    .elegant-main-section {
        padding: 0;
    }

    .product-body {
        flex-direction: column;
    }

    .product-image,
    .product-content {
        width: 100% !important;
    }

    .product-body .product-content h2 {
        font-size: 22px !important;
    }

    .product-content p {
        text-align: justify;
    }

    .course-details-body {
        width: 90vw;
    }

    .elegant-details-section {
        height: 550px;
    }

    .car-img-body {
        width: 300px !important;
        max-width: 300px !important;
    }

    .moving-car-div {
        position: absolute;
        top: 63%;
        left: 50%;
        transform: translateX(-50%);
    }

    .wheel1 {
        top: 55%;
        right: 15%;
        width: 43px;
    }

    .wheel2 {
        top: 55%;
        left: 14%;
        width: 43px;
    }

    .aim-body {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 90vw !important;
    }

    .aim-body .aim-card p {
        text-align: justify;
    }

    .elegant-aim-section .aim-top h2 {
        font-size: 25px;
    }

    .register-body {
        width: 95vw !important;
        padding-bottom: 35px;
    }

    .course-table tbody tr {
        height: 50px;
    }

    .course-table tbody tr td {
        padding: 0 0 0 9px !important;
    }

    .our-program-img-div {
        width: 220px;
        height: 220px;
        margin-top: 3rem;
    }

    .our-program-content-div {
        margin-top: 2rem;
    }

    .fly-aero-path {
        display: none;
    }

    #car-training .container .row:nth-child(even)
    .col-12.col-lg-7,
    #commercial-training .container .row:nth-child(even)
    .col-12.col-lg-7 {
        order: 2;
    }

    #car-training .container .row:nth-child(even)
    .col-12.col-lg-5.d-flex.justify-content-center,
    #commercial-training .container .row:nth-child(even)
    .col-12.col-lg-5.d-flex.justify-content-center {
        order: 1;
    }

    /* Product-specific moving car positions */

    .postid-710 .moving-car-div,
    .postid-711 .moving-car-div,
    .postid-712 .moving-car-div,
    .postid-204 .moving-car-div,
    .postid-713 .moving-car-div {
        top: 68%;
        left: 50%;
    }

    .postid-710 .wheel1,
    .postid-711 .wheel1,
    .postid-712 .wheel1,
    .postid-204 .wheel1,
    .postid-713 .wheel1,
    .postid-710 .wheel2,
    .postid-711 .wheel2,
    .postid-712 .wheel2,
    .postid-204 .wheel2,
    .postid-713 .wheel2,
    .postid-710 .wheel3,
    .postid-711 .wheel3,
    .postid-712 .wheel3,
    .postid-204 .wheel3,
    .postid-713 .wheel3 {
        width: 23px;
    }

    .postid-710 .moving-car-div .wheel4,
    .postid-711 .moving-car-div .wheel4,
    .postid-713 .moving-car-div .wheel4 {
        width: 23px !important;
    }

    .postid-204 .moving-car-div {
        top: 71% !important;
    }

    .postid-204 .moving-car-div .wheel1,
    .postid-204 .moving-car-div .wheel2 {
        width: 33px !important;
    }

    .postid-712 .moving-car-div {
        top: 66% !important;
    }

    .postid-712 .moving-car-div .wheel1,
    .postid-712 .moving-car-div .wheel2 {
        width: 41px !important;
    }
}

/* ==========================================================
   END OF PRODUCTS.CSS — FIRST EXTRACTION
   ========================================================== */
