
/* =========================================================
   INQUIRY.CSS
   BLUE SWAN BALI TOUR & TRAVEL
   PRODUCT SHOW + PRICE + VOUCHER + INQUIRY FORM

   DISESUAIKAN DENGAN BLADE AKTUAL

   DESKTOP:
   - Gambar produk 35%, deskripsi mengalir di sebelahnya
   - Price Box mengikuti grid Bootstrap
   - Form Inquiry 2 kolom

   TABLET:
   - Gambar produk 35%, deskripsi mengalir di sebelahnya
   - Form Inquiry 2 kolom jika ruang mencukupi

   MOBILE:
   - Gambar produk di atas deskripsi
   - Price Box satu kolom
   - Form Inquiry satu kolom

   Load AFTER Bootstrap dan CSS theme.
========================================================= */


/* =========================================================
   01. GLOBAL VARIABLES
========================================================= */

:root {
    --inquiry-text: #263445;
    --inquiry-muted: #667085;
    --inquiry-border: #dce3ec;
    --inquiry-primary: #286da8;
    --inquiry-primary-dark: #1f5687;
    --inquiry-surface: #ffffff;
    --inquiry-page: #f5f7fa;
    --inquiry-radius: 10px;
    --inquiry-shadow: 0 5px 18px rgba(27, 39, 56, .07);
}


/* =========================================================
   02. PAGE FOUNDATION
========================================================= */

.main-content {
    width: 100%;
    min-width: 0;
}

.main-content,
.main-content * {
    box-sizing: border-box;
}

.main-content img {
    max-width: 100%;
    height: auto;
}

.content-wrapper {
    width: 100%;
    min-width: 0;
    margin-bottom: 24px;
}

.content-wrapper > .card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--inquiry-border);
    border-radius: 12px;
    background: var(--inquiry-surface);
    box-shadow: var(--inquiry-shadow);
}

.content-wrapper > .card > .card-header {
    padding: 20px;
    background: var(--inquiry-surface);
    border-bottom: 1px solid var(--inquiry-border);
}


/* =========================================================
   03. BREADCRUMB
========================================================= */

.main-content > .col-md-12 {
    margin-bottom: 18px;
}

.breadcrumb-card {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--inquiry-border);
    border-radius: 9px;
}

.breadcrumb-card p {
    margin: 0;
    line-height: 1.6;
}

.breadcrumb-link {
    color: #52749b;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--inquiry-primary-dark);
    text-decoration: underline;
}


/* =========================================================
   04. NOTIFICATION AND ALERT
========================================================= */

#notification {
    display: none;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    border-radius: 8px;
}

#notification.success {
    color: #155724;
    background: #dff3e5;
    border-color: #b8e2c5;
}

#notification.error {
    color: #842029;
    background: #fce4e6;
    border-color: #f3c2c7;
}

.main-content .alert {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow-wrap: anywhere;
}


/* =========================================================
   05. COMMON HEADING
========================================================= */

.blue-background-button {
    display: block;
    width: 100%;
    margin: 10px 0 16px;
    padding: 12px 16px;

    color: #244a78;
    background: linear-gradient(110deg, #e5edff, #f8faff);

    border: 1px solid #d9e5f8;
    border-radius: 8px;

    text-align: center;
    font-weight: 700;
    line-height: 1.5;

    overflow-wrap: break-word;
}

.product-heading {
    color: var(--inquiry-text);
}

.card-header > h4 {
    line-height: 1.4;
}


/* =========================================================
   06. PRODUCT DESCRIPTION
   ACTUAL BLADE:

   .content-wrapper
       .content-container
           .description-with-image
               .product-main-image
               .product-description
========================================================= */

.content-wrapper > .content-container {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.description-with-image {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    overflow: hidden;
    text-align: left;
}

/* Product image */

.description-with-image > .product-main-image {
    display: block;
    float: left;

    width: 35%;
    max-width: 400px;
    height: auto;
    max-height: 480px;

    margin: 0 24px 16px 0;
    padding: 0;

    border: 0;
    border-radius: 9px;

    object-fit: contain;
    box-sizing: border-box;
}

/* Product description */

.description-with-image > .product-description {
    display: block;

    width: auto;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: #3d4857;
    font-size: 15px;
    line-height: 1.8;

    text-align: justify;

    overflow: visible;
    overflow-wrap: break-word;
    word-break: normal;

    column-count: 1;
    columns: auto;
}

/* Description paragraphs */

.description-with-image > .product-description p {
    margin: 0 0 14px;
    padding: 0;

    line-height: 1.8;
    text-align: justify;

    overflow-wrap: break-word;
}

/* Description headings */

.description-with-image > .product-description h1,
.description-with-image > .product-description h2,
.description-with-image > .product-description h3,
.description-with-image > .product-description h4,
.description-with-image > .product-description h5,
.description-with-image > .product-description h6 {
    max-width: 100%;
    margin-top: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Description lists */

.description-with-image > .product-description ul,
.description-with-image > .product-description ol {
    max-width: 100%;
    padding-left: 24px;
    margin-bottom: 14px;
}

/* Description tables */

.description-with-image > .product-description table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

/* Images inside description */

.description-with-image > .product-description img {
    max-width: 100%;
    height: auto;
}

/* Clear float */

.description-with-image::after {
    content: "";
    display: table;
    clear: both;
}


/* =========================================================
   07. SCHEDULE AND ACCORDION
========================================================= */

.content-wrapper .accordion {
    width: 100%;
    min-width: 0;
}

.content-wrapper .accordion-item {
    overflow: hidden;
    border: 1px solid var(--inquiry-border);
    border-radius: 9px;
}

.content-wrapper .accordion-item > .card-header {
    padding: 18px;
}

.content-wrapper .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 15px;
}

.content-wrapper .nav-tabs .nav-link {
    cursor: pointer;
}

.schedule-description {
    width: 100%;
    min-width: 0;
    margin-bottom: 20px;
}

.schedule-description h3 {
    margin-bottom: 12px;
}

.schedule-card-body {
    width: 100%;
    min-width: 0;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.schedule-card-body img {
    max-width: 100%;
    height: auto;
}

.related-posts {
    width: 100%;
    margin-top: 20px;
}

.related-posts h3 {
    margin-bottom: 15px;
}

/* Schedule list */

.schedule-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
}

.schedule-item {
    display: flex;
    flex: 1 1 calc(25% - 16px);
    flex-direction: column;
    align-items: center;

    max-width: calc(25% - 12px);
    min-width: 0;

    padding: 14px;

    background: #fff;
    border: 1px solid var(--inquiry-border);
    border-radius: 9px;

    text-align: center;
}

.schedule-item .content-container {
    width: 100%;
    min-width: 0;
}

.schedule-link {
    display: block;
    width: 100%;
}

.schedule-item .post-image {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;

    margin: 0 auto 12px;

    border-radius: 8px;
    object-fit: cover;
}

.schedule-item .post-title {
    display: block;
    overflow-wrap: anywhere;
}


/* =========================================================
   08. SECOND CARD / PRODUCT TITLE
========================================================= */

.content-wrapper > .card > .card-header > h4 {
    margin-bottom: 14px;
}

#inquiry-form {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#inquiry-form > hr {
    margin: 18px 0;
    border-color: #e3e8ef;
    opacity: 1;
}


/* =========================================================
   09. PRICE BOX
   ACTUAL BLADE:

   #inquiry-form
       .col-lg-6.col-md-12
           .price-box
========================================================= */

#inquiry-form > .col-lg-6.col-md-12 {
    min-width: 0;
    max-width: 100%;
}

#inquiry-form .price-box {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 22px;
    margin: 0 0 22px;

    color: var(--inquiry-text);
    background: #fff;

    border: 1px solid var(--inquiry-border);
    border-radius: 12px;

    box-shadow: var(--inquiry-shadow);

    box-sizing: border-box;
}

#inquiry-form .price-box h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}

#inquiry-form .price-box hr {
    margin: 16px 0;
    border-color: #e6ebf1;
    opacity: 1;
}

#inquiry-form .price-box > p {
    line-height: 1.7;
}


/* =========================================================
   10. PRICE BOX PRODUCT INFORMATION
========================================================= */

#inquiry-form .price-box > .form-group {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
}

#inquiry-form .price-box .form-group > .blue-background-button {
    width: 100%;
    overflow-wrap: anywhere;
}

#inquiry-form .price-box input[type="hidden"] {
    display: none;
}


/* =========================================================
   11. TOTAL PERSON INPUT
========================================================= */

#inquiry-form #total-person {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;

    padding: 10px 12px;
    margin: 0;

    color: var(--inquiry-text);
    background: #fff;

    border: 1px solid #cfd8e3;
    border-radius: 7px;

    box-sizing: border-box;
    font: inherit;
}

#inquiry-form #total-person:focus {
    outline: 0;
    border-color: #6b9ed2;
    box-shadow: 0 0 0 3px rgba(40, 109, 168, .13);
}


/* =========================================================
   12. VOUCHER / DISCOUNT INPUT
========================================================= */

#inquiry-form .price-box .voucher-box {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0 0 20px;
    padding: 0;
}

#inquiry-form .price-box .voucher-box label {
    display: block;
    width: 100%;

    margin: 0 0 8px;

    color: #344054;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Voucher input */

#inquiry-form #voucher-code {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;

    margin: 0;
    padding: 10px 12px;

    color: var(--inquiry-text);
    background: #fff;

    border: 1px solid #cfd8e3;
    border-radius: 7px;

    box-sizing: border-box;
    font: inherit;
}

#inquiry-form #voucher-code:focus {
    outline: 0;
    border-color: #6b9ed2;
    box-shadow: 0 0 0 3px rgba(40, 109, 168, .13);
}

/* Apply voucher button */

#inquiry-form #apply-voucher {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    max-width: 100%;

    margin-top: 10px;
    padding: 9px 17px;

    color: #fff;
    background: var(--inquiry-primary);

    border: 1px solid var(--inquiry-primary);
    border-radius: 7px;

    font-weight: 600;
    cursor: pointer;
    white-space: normal;
}

#inquiry-form #apply-voucher:hover {
    color: #fff;
    background: var(--inquiry-primary-dark);
    border-color: var(--inquiry-primary-dark);
}

#inquiry-form #apply-voucher:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Voucher message */

#inquiry-form #voucher-message {
    display: block;
    width: 100%;
    min-width: 0;

    margin-top: 10px;

    font-size: 14px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* =========================================================
   13. PRICE CALCULATION
========================================================= */

#inquiry-form .price-section {
    display: block;
    width: 100%;
    min-width: 0;

    padding-top: 5px;
    margin: 0;
}

/* Each price row */

#inquiry-form .price-section .form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0 0 12px;
    padding: 0 0 11px;

    border-bottom: 1px solid #edf0f4;
}

/* Label */

#inquiry-form .price-section .form-group > span:first-child {
    flex: 1 1 auto;
    min-width: 0;

    color: #475467;
    font-weight: 500;

    text-align: left;
    overflow-wrap: anywhere;
}

/* Currency */

#inquiry-form .price-section .currency {
    flex: 0 0 auto;

    margin: 0;
    color: #475467;

    font-weight: 600;
    white-space: nowrap;
}

/* Numeric value */

#inquiry-form .price-section .price-value {
    flex: 0 0 auto;

    margin: 0;

    color: var(--inquiry-text);
    font-weight: 700;

    text-align: right;
    white-space: nowrap;
}

/* Total price */

#inquiry-form .price-section .total-price-wrapper {
    color: #245b96;
}

/* Discount */

#inquiry-form .price-section .discount-wrapper .price-value {
    color: #c0392b;
}

/* Final price */

#inquiry-form .price-section .final-price-wrapper {
    margin-bottom: 0;
    padding-top: 7px;

    border-bottom: 0;

    color: #197447;
    font-weight: 700;
}

#inquiry-form .price-section .final-price-wrapper .price-value {
    color: #197447;
    font-size: 17px;
}


/* =========================================================
   14. VOUCHER COUNTDOWN
========================================================= */

.digital-timer {
    display: block;

    width: 100%;
    max-width: 100%;

    padding: 10px;
    margin: 0 0 14px;

    color: #ff6262;
    background: #171717;

    border-radius: 7px;

    font-family: "Orbitron", sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    text-align: center;

    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.voucher-separator {
    border: 0;
    border-top: 2px dashed #d5dce5;
    margin: 18px 0;
}


/* =========================================================
   15. INQUIRY FORM
   ACTUAL BLADE:

   #inquiry-form
       .inquiry-form
           .row
               .col-md-6
                   .form-group
               .col-12
                   .form-group
========================================================= */

#inquiry-form .inquiry-form {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

/* Inquiry heading */

#inquiry-form .inquiry-form-title {
    width: 100%;
    margin: 10px 0 18px;
    text-align: center;
}

/* Bootstrap rows */

#inquiry-form .inquiry-form > .row {
    width: auto;
    min-width: 0;
}

/* Bootstrap columns */

#inquiry-form .inquiry-form > .row > [class*="col-"] {
    min-width: 0;
}

/* Form groups */

#inquiry-form .inquiry-form .form-group {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0 0 18px;
    padding: 0;
}

/* Labels */

#inquiry-form .inquiry-form .form-group > label {
    display: block;

    width: 100%;

    margin: 0 0 7px;

    color: #344054;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

    text-align: left;
}

/* Text inputs */

#inquiry-form .inquiry-form input[type="text"],
#inquiry-form .inquiry-form input[type="email"],
#inquiry-form .inquiry-form input[type="tel"],
#inquiry-form .inquiry-form input[type="date"],
#inquiry-form .inquiry-form input[type="number"],
#inquiry-form .inquiry-form textarea,
#inquiry-form .inquiry-form select {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;

    margin: 0;
    padding: 10px 12px;

    color: var(--inquiry-text);
    background: #fff;

    border: 1px solid #cfd8e3;
    border-radius: 7px;

    box-sizing: border-box;
    font: inherit;

    float: none;
}

/* Textarea */

#inquiry-form .inquiry-form textarea {
    min-height: 110px;
    resize: vertical;
}

/* Focus */

#inquiry-form .inquiry-form input:focus,
#inquiry-form .inquiry-form textarea:focus,
#inquiry-form .inquiry-form select:focus {
    outline: 0;

    border-color: #6b9ed2;
    box-shadow: 0 0 0 3px rgba(40, 109, 168, .13);
}

/* Placeholder */

#inquiry-form .inquiry-form input::placeholder,
#inquiry-form .inquiry-form textarea::placeholder {
    color: #98a2b3;
    opacity: 1;
}

/* Hidden custom request */

#inquiry-form #custom-request.hidden {
    display: none !important;
}


/* =========================================================
   16. REMEMBER CHECKBOX AND SUBMIT BUTTON
========================================================= */

#inquiry-form .inquiry-form-actions {
    display: flex;

    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;

    width: 100%;
    min-width: 0;

    margin: 12px 0 8px;
    padding: 0;
}

/* Remember checkbox */

#inquiry-form .inquiry-form-actions .form-check {
    display: flex;

    align-items: center;
    gap: 9px;

    min-width: 0;

    margin: 0;
    padding: 0;
}

#inquiry-form .inquiry-form-actions .form-check-input {
    position: static;

    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 0;

    cursor: pointer;
}

#inquiry-form .inquiry-form-actions .form-check-label {
    margin: 0;

    color: #475467;
    font-size: 14px;
    font-weight: 400;

    cursor: pointer;
}

/* Submit button */

#inquiry-form #submitInquiry {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 150px;
    min-height: 44px;

    margin: 0;
    padding: 10px 22px;

    color: #fff;
    background: var(--inquiry-primary);

    border: 1px solid var(--inquiry-primary);
    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    text-align: center;
    cursor: pointer;

    transition: background .2s ease, border-color .2s ease;
}

#inquiry-form #submitInquiry:hover {
    color: #fff;
    background: var(--inquiry-primary-dark);
    border-color: var(--inquiry-primary-dark);
}

#inquiry-form #submitInquiry:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/* =========================================================
   17. RELATED PRODUCTS
========================================================= */

.custom-card {
    width: 100%;
    min-width: 0;

    margin: 22px 0;
    padding: 18px;

    background: #fff;

    border: 1px solid var(--inquiry-border);
    border-radius: 11px;

    box-shadow: var(--inquiry-shadow);
}

.custom-card-header {
    margin-bottom: 15px;

    color: var(--inquiry-text);
    font-size: 18px;
    font-weight: 700;

    text-align: center;
}

.custom-card-header p {
    margin-bottom: 0;
}

.custom-card > .form-group {
    width: 100%;
    min-width: 0;
}

.custom-product-grid {
    display: flex;

    flex-wrap: wrap;
    justify-content: center;

    gap: 15px;

    width: 100%;
    min-width: 0;
}

.custom-content-container {
    display: flex;

    flex: 1 1 200px;
    flex-direction: column;

    max-width: 250px;
    min-width: 0;

    padding: 12px;

    background: #fff;

    border: 1px solid var(--inquiry-border);
    border-radius: 9px;

    box-sizing: border-box;
}

.custom-content-container > a {
    display: block;
    width: 100%;
}

.custom-content-container img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0 auto 10px;

    border-radius: 7px;
}

.custom-product-name {
    margin: 8px 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.custom-content-container .blue-background-button {
    margin-top: auto;
    font-size: 13px;
}


/* =========================================================
   18. CAPTCHA
========================================================= */

#inquiry-form .inquiry-captcha-input {
    display: block;

    width: 100%;
    max-width: 100%;
    min-height: 44px;

    padding: 10px 12px;

    border: 1px solid #cfd8e3;
    border-radius: 7px;

    box-sizing: border-box;
}


/* =========================================================
   19. TABLET RESPONSIVE
========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    /* Product */

    .description-with-image > .product-main-image {
        width: 35%;
        max-width: 340px;
        margin-right: 18px;
    }

    .description-with-image > .product-description {
        font-size: 14px;
    }

    /* Schedule */

    .schedule-item {
        flex-basis: calc(50% - 16px);
        max-width: calc(50% - 8px);
    }

    /* Price box */

    #inquiry-form .price-box {
        padding: 18px;
    }

    /* Related products */

    .custom-content-container {
        flex-basis: 200px;
    }
}


/* =========================================================
   20. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {

    /* General */

    .content-wrapper > .card > .card-header {
        padding: 15px;
    }

    /* Product image above description */

    .description-with-image {
        overflow: visible;
    }

    .description-with-image > .product-main-image {
        display: block;

        float: none;

        width: 100%;
        max-width: 100%;
        max-height: 400px;

        margin: 0 auto 18px;
    }

    .description-with-image > .product-description {
        width: 100%;
        max-width: 100%;

        font-size: 14px;
        line-height: 1.7;

        text-align: left;
    }

    .description-with-image > .product-description p {
        text-align: left;
    }

    /* Price box */

    #inquiry-form > .col-lg-6.col-md-12 {
        width: 100%;
    }

    #inquiry-form .price-box {
        padding: 16px;
    }

    /* Price calculation */

    #inquiry-form .price-section .form-group {
        gap: 6px;
        font-size: 13px;
    }

    #inquiry-form .price-section .final-price-wrapper .price-value {
        font-size: 15px;
    }

    /* Inquiry form */

    #inquiry-form .inquiry-form > .row > .col-md-6,
    #inquiry-form .inquiry-form > .row > .col-12 {
        width: 100%;
    }

    #inquiry-form .inquiry-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    #inquiry-form .inquiry-form-actions .form-check {
        align-self: flex-start;
    }

    #inquiry-form #submitInquiry {
        width: 100%;
        min-width: 0;
    }

    /* Schedule */

    .schedule-item {
        flex-basis: 100%;
        max-width: 100%;
    }

    /* Related products */

    .custom-content-container {
        flex-basis: calc(50% - 15px);
        max-width: calc(50% - 8px);
    }
}


/* =========================================================
   21. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    /* Product */

    .description-with-image > .product-description {
        font-size: 13px;
    }

    /* Price */

    #inquiry-form .price-box {
        padding: 13px;
    }

    #inquiry-form .price-section .form-group {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    #inquiry-form .price-section .form-group > span:first-child {
        flex: 1 1 100%;
    }

    /* Voucher */

    #inquiry-form #apply-voucher {
        width: 100%;
    }

    /* Timer */

    .digital-timer {
        font-size: 18px;
        letter-spacing: 1px;
    }

    /* Related products */

    .custom-content-container {
        flex-basis: 100%;
        max-width: 100%;
    }

    /* Breadcrumb */

    .breadcrumb-card {
        padding: 10px;
        font-size: 13px;
    }
}


/* =========================================================
   END OF INQUIRY.CSS
========================================================= */
