/**
 * Fluxpress (FXP) Theme Overrides
 *
 * This stylesheet applies Fluxpress-specific branding and styling
 * on top of the main mCB Booking Laravel application styles.
 *
 * Based on legacy Fluxpress CSS from _fluxpress-legacy/application/assets/css/main.css
 */

/* ============================================
   TYPOGRAPHY - Chivo Font Family
   ============================================ */

/* Override primary font to use Chivo instead of Muli */
body {
    font-family: 'Chivo', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.modal-title {
    font-family: 'Chivo', sans-serif;
    letter-spacing: -0.5px;
}

/* Adjust heading sizes to match FXP style */
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }

.btn {
    font-weight: bold;
    letter-spacing: -0.5px;
}

label {
    font-weight: bold;
}

nav.navbar { display: none; }

    /* ============================================
       COLOR SCHEME - FXP Blues/Teals
       ============================================ */

/* Primary colors override */
.btn-primary {
    background-color: #0083bf!important;
    border-color: #0083bf!important;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #006aa0!important;
    border-color: #006aa0!important;
    color: #fff;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #005580!important;
    border-color: #005580!important;
}

.btn-outline-primary {
    color: #0083bf!important;
    border-color: #0083bf!important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #0083bf!important;
    border-color: #0083bf!important;
    color: #fff;
}

.bg-primary {
    background-color: #0083bf !important;
}

.text-primary {
    color: #0083bf !important;
}

.border-primary {
    border-color: #0083bf !important;
}

a {
    color: #0083bf;
}

a:hover {
    color: #006aa0;
}

/* Table label color from FXP */
table.details td.label {
    color: #079;
}


/* ============================================
   LAYOUT & STRUCTURE
   ============================================ */

/* Footer styling matching FXP */
.footer {
    margin-top: 50px;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background-color: #f7f7f7;
}

.footer p {
    margin-bottom: 0;
}

/* Container adjustments */
.container-main {
    padding: 0;
    position: relative;
}

/* Logo container */
#logoContainer {
    position: relative;
    height: 130px;
    background-color: transparent;
}

#logo {
    height: 68px;
    margin: 6px 0;
}

#logo img {
    max-height: 45px;
}

#main_header h1 {
    font-size: 22px;
    min-height: 68px;
    line-height: 68px;
    margin: 6px 0;
}


/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-group {
    margin-bottom: 15px;
}

/* Contact address confirmation box */
.contactAddressConfirm {
    font-weight: bolder;
    font-size: 18px;
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 15px;
}

/* Date of birth select styling */
.form-group-dob select {
    float: left;
    width: auto;
    padding: 6px 8px;
    margin-left: 2px;
}

/* Contact method containers */
.contactMethodContainer {
    margin-right: 5px;
}

.contactMethodContainer label {
    font-weight: 400;
    margin-left: 5px;
}

/* Mandatory field indicator */
.mandatoryIndicator {
    color: red;
    font-weight: strong;
}


/* ============================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================ */

/* Button styling to match FXP appearance */
input.submit,
.button {
    min-width: 100px;
    text-align: center;
    text-decoration: none;
    padding: 5px 10px;
    background: #eee;
    background: linear-gradient(#fff, #ddd);
    border-radius: 5px;
    font-weight: bold;
    color: #555;
    border: 1px solid #999;
}

input[type=submit]:disabled {
    color: #999;
}


/* ============================================
   STATUS MESSAGES & ALERTS
   ============================================ */

p.statusMsg {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
}

.statusSuccess {
    color: green;
    margin-right: 5px;
    font-weight: bold;
}

.statusAlert {
    color: #df6600;
    margin-right: 5px;
    font-weight: bold;
}

.statusFailure {
    color: red;
    margin-right: 5px;
    font-weight: bold;
}

.statusConfirmed {
    color: #090;
    font-weight: bold;
}

.statusCancelled {
    color: #b00;
    font-weight: bold;
}


/* ============================================
   TABLES
   ============================================ */

/* Form field tables */
table.details {
    background-color: transparent;
    width: 100%;
    font-size: 1em;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.details tr {
    vertical-align: text-bottom;
    border-bottom: 1px solid #eee;
}

table.details td {
    padding: 11px 7px;
}

table.details td.label {
    color: #079;
    font-weight: bold;
    width: 33%;
    min-width: 150px;
    font-size: 14px;
}

table.details td.data {
    width: 66%;
}

table.details td.status {
    min-width: 48px;
}

table.details input {
    width: 100%;
}

table.details tr.semiHighlighted {
    background-color: #ddd;
    font-weight: bold;
}

table.details tr.semiHighlighted td.data {
    color: #888;
    text-shadow: 1px 1px 0px #eee;
}

table.details tr.highlighted {
    background-color: white;
    font-weight: bold;
}

/* Survey tables */
.survey-intro {
    font-size: 16px;
}

table.survey {
    width: 100%;
}

table.survey tr {
    background: #fff;
    border-bottom: 1px solid #eee;
}

table.survey .response textarea,
table.survey .response input[type=text],
table.survey .response select {
    width: 100%;
}

table.survey .question {
    font-size: 15px;
    font-weight: 500;
}

table.survey td {
    padding: 10px 15px;
}

.survey-table-row {
    cursor: pointer;
}

.survey-table-row-unopened {
    font-weight: bold;
}


/* ============================================
   JUMBOTRON / PAGE HEADERS
   ============================================ */

.jumbotron {
    margin-bottom: 30px;
    padding: 16px 0 12px 8px;
    color: #111;
    border-radius: 0;
}

.jumbotron h1 {
    font-size: 26px;
    font-weight: bold;
}


/* ============================================
   LOADING & MODAL STATES
   ============================================ */

.modal {
    position: absolute;
}

.modal-loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    background-image: url("../images/loading.gif");
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 99;
}


/* ============================================
   COOKIE CONFIRMATION DIALOG
   ============================================ */

#cookieConfirmationDialog {
    background: #333;
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding-top: 7px;
    padding-bottom: 7px;
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 99;
}

#cookieConfirmationDialog a {
    color: #fff;
    text-decoration: underline;
}

#cookieConfirmationDialog .dialog-container {
    margin: 0 auto;
    padding: 0 23px;
    position: relative;
}

#cookieConfirmationDialog .dialog-close {
    position: absolute;
    right: 7px;
    border-radius: 6px;
    background: #fff;
    color: #333;
    top: 0;
    width: 23px;
    height: 23px;
}


/* ============================================
   SERVICE SELECTION & CARDS
   ============================================ */

.service-box {
    cursor: pointer;
    width: 100%;
    background: #fff;
    font-size: 18px;
    border: 1px solid #b5bfd9;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    padding: 30px;
}

.service-box:hover {
    border-color: #2260ff;
}

.service-box.cursor-default {
    cursor: default;
}


/* ============================================
   LOCATION & CALENDAR
   ============================================ */

#locationList,
#calendarKey {
    margin-bottom: 30px;
}

#locationList a.locationEntry {
    cursor: pointer;
    display: block;
}

#calendarKey > div {
    padding-top: 10px;
}

#locationDetails {
    margin-bottom: 30px;
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

.autoWidth {
    width: auto;
}

.justify-between {
    display: flex;
    justify-content: space-between;
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media screen and (max-width: 768px) {
    #locationDetails {
        margin-top: 20px;
    }

    #logo {
        position: relative;
        top: 0;
        right: 0;
        max-width: 100%;
        height: auto;
        max-height: 60px;
    }

    .jumbotron h1 {
        font-size: 22px;
    }

    #locationList {
        margin-top: 30px;
    }

    table.survey td.response {
        width: 50%;
    }

    #main_header h1 {
        font-size: 18px;
        line-height: normal;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    #main_header > .container > .row {
        align-items: center;
        display: flex;
    }

    .d-sm-none {
        display: none;
    }
}

@media (max-width: 640px) {
    .d-flex .col-sm-6 {
        width: 100%;
        flex: 0 0 auto;
    }
}

@media (max-width: 750px) {
    div.calendarContainer.unpopulated {
        padding-left: 0;
    }
}

.page-title {
    background-color: #d6d7db!important;
}

table.appt-details td.label { width: 40%; }

@media (max-width: 480px) {
    table.appt-details td.label {
        width: 100%;
    }
}
table.appt-details tr { border-top: 1px solid #dddddda3; }
table.appt-details tr:first-child { border-top: none;}
table.appt-details td.data { padding: 7px 5px; }

@media (max-width: 480px) {
    table.appt-details td.data { padding: 0 5px 5px; font-size: 1.125rem; }
}

.toolbar .btn-light+.btn-primary { margin-left: 0.5rem; }

#main_header h1 { font-size: 1.5rem; }
@media (max-width: 480px) {
    #main_header h1 { margin-top: 0; text-align: center; border-top: 1px solid #ddd; padding: 10px 0;}
}


