/* Google fonts import */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&family=Cascadia+Code:ital,wght@0,200..700;1,200..700&family=Intel+One+Mono:ital,wght@0,300..700;1,300..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Styling starts here */

/* Variables */
:root {
    --form-placeholder-color: #737865;

}

body {
    font-family: "Poppins", sans-serif;
}

#book-table-header {
    background-color: var(--primary-bg-color);
}

.table-book-section {
    background-color: var(--primary-bg-color);
    height: auto;
    padding: 40px 0px;

}

.table-book-content {
    width: var(--common-max-width);
    margin: 0px auto;
    padding: 2px 20px;
    text-align: center;
}

.common-user-form {
    max-width: 70vw;
    margin: 60px auto;
    height: auto;
    padding: 30px 35px;
    border-radius: 12px;
    background-color: var(--tertiary-text-color);
    box-shadow: 4px 4px 18px 2px var(--box-shadow);
}

.common-form-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-weight: bold;
    color: var(--heading-text-color);
    margin: 10px 2px;
}

.common-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: inherit;
    height: auto;
    grid-gap: 24px;
}

.select-label {
    grid-column: 1/3;
}

.form-btn-label {
    grid-column: 1/3;
}

.common-form-input {
    outline: 0;
    width: 100%;
    height: 60px;
    padding: 0px 24px;
    border-radius: 72px;
    border: 1px solid var(--tertiary-bg-color);
    font-size: 16px;
    font-weight: bold;
    transition: box-shadow 0.3s ease;
}

.common-form-input:focus {
    /* x-offset | y-offset | blur-radius | color */
    box-shadow: 0px 4px 12px #0000003f;
}

.common-form-input[placeholder] {
    color: var(--form-placeholder-color);
}


.label-text {
    margin-bottom: 8px;
    color: var(--heading-text-color);
}

.form-btn-label .common-form-btn {
    width: 100%;
    font-size: 1.15rem;
    padding: 20px 32px;
    font-weight: 500;
    background-color: var(--primary-btn-bg);
    color: white;
    cursor: pointer;
    outline: 0;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* --- Hover Effect --- */
.form-btn-label .common-form-btn:hover {
    background-color: #922b21;
    filter: brightness(90%);
}

/* --- Active Effect --- */
.form-btn-label .common-form-btn:active {
    background-color: #7b241c;
    transform: translateY(2px);
    filter: brightness(80%);
}


.map-section {
    width: var(--common-max-width);
    margin: 70px auto;
    text-align: center;
}

.map-heading {
    font-size: 5.5rem;
    margin: 25px auto;
}

#map-iframe {
    width: 100%;
    outline: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 4px 4px 32px 2px var(--box-shadow);
    aspect-ratio: 16 / 9;
    display: block;

    /* Height is now handled automatically */
    height: auto;
}




/* Responsive code for all devices */

/* ------------------ Mobile responsiveness ------------------- */

@media only screen and (max-width:580px) {

    :root {
        font-size: 15px;
    }

    .table-head {
        max-width: 95vw;
    }

    .table-book-section {
        padding: 35px 0px;
    }

    .table-book-content {
        max-width: 95vw;
        padding: 2px 5px;
    }

    .table-heading {
        font-size: 4rem;
    }

    .table-para {
        max-width: 95%;
    }

    .common-user-form {
        max-width: 92vw;
        padding: 30px 10px;
    }

    .common-form-input {
        height: 50px;
    }

    .common-form {
        grid-template-columns: 1fr;
    }

    .map-section {
        width: 95vw;
        margin: 50px auto;
    }

    .common-form-label {
        grid-column: 1/3;
    }

    .map-heading {
        font-size: 4.5rem;
    }


}

/* ------------------ Tablets and Laptops responsiveness ------------------- */

@media only screen and (min-width: 581px) and (max-width:1300px) {


    :root {
        font-size: 16px;
    }

    .table-para {
        max-width: 80%;
    }

    .table-book-content {
        max-width: 95vw;
    }

    .common-user-form {
        max-width: 90vw;
    }

    .common-form {
        grid-template-columns: 1fr 1fr;
        grid-gap: 22px 6px;
    }

    .map-section {
        width: 95vw;
        margin: 50px auto;
    }

}

/*------------------- Big Screen and 4K TV devices responsiveness --------------------------*/

@media only screen and (min-width: 2000px) {

    :root {
        font-size: 18px;
    }

    .table-book-content {
        max-width: 75vw;
    }

    .map-section {
        max-width: 75vw;
    }

    .common-user-form {
        max-width: 55vw;
    }

}


/* Responsive for common devices */

@media only screen and (max-width:1300px) {

    .table-head {
        max-width: 95vw;
    }

}