body.mobile-body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f0f4f7;
    margin: 0; padding: 0; color: #333;
}

#mobile-header {
    background: #fff;
    border-bottom: 4px solid #DFA925;
    padding: 10px;
    text-align: center;
}

.mobile-logo { max-width: 360px; height: auto; }

.header-call-actions {
    margin-top: 10px;
    display: flex; justify-content: space-around;
}

.call-link {
    color: #0078D7; font-weight: bold; text-decoration: none; font-size: 1.1em;
    background: #eef; padding: 5px 10px; border-radius: 15px;
}

.toggler {
    background: #DFA925;
    color: #fff;
    padding: 15px;
    margin: 5px 0 0 0;
    font-size: 18px;
    cursor: pointer;
    border-bottom: 1px solid #dfaa25db;
}

.toggler.active { background: #28a745; } /* Green feel for active section */

.element { background: #fff; overflow: hidden; }

.inner { padding: 20px; line-height: 1.5; }

/* Style existing CMS images for mobile */
.inner img { max-width: 100% !important; height: auto !important; }

.mobile-btn {
    display: block;
    background: #28a745;
    color: #fff;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 20px;
    font-size: 1.1em;
}

.payment-btn { background: #0078D7; }

.offer-grid { margin-top: 10px; }
.offer-item {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px dotted #ccc;
}
.offer-item span { color: #d9534f; font-weight: bold; }

#mobile-footer {
    text-align: center;
    padding: 30px 10px;
    font-size: 0.9em;
    color: #666;
}

#mobile-footer a { color: #0078D7; }

/* Form Styles */
.contact-info { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.contact-info p { margin: 5px 0; }

.mobile-form .form-group { margin-bottom: 15px; }
.mobile-form label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9em; }
.mobile-form input[type="text"],
.mobile-form input[type="email"],
.mobile-form input[type="tel"],
.mobile-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-size: 16px; /* Prevents iOS zoom on focus */
}
.mobile-form button { border: none; width: 100%; cursor: pointer; }

/* Ensure CAPTCHA doesn't overflow mobile width */
.captcha-wrap { overflow-x: auto; margin: 10px 0; }

/* Mobile-friendly overrides for the contact form in contact.cfm */
.contact fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.contact legend { display: none; } /* Hide legend as it often breaks mobile layouts */
.contact .label-top {
    display: block;
    margin: 15px 0 5px 0;
    font-weight: bold;
    font-size: 0.9em;
}
.contact .inputbox,
.contact textarea {
    width: 100% !important; /* Force full width regardless of 'size' attribute */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px; /* Crucial: Prevents iOS Safari from zooming in on focus */
    margin-bottom: 10px;
}
.contact textarea { height: 120px; font-family: inherit; }
.contact .button.validate {
    width: 100%;
    background: #28a745;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    -webkit-appearance: none; /* Removes default iOS button styling */
    margin-top: 10px;
}

/* Slideshow Styles */
ul.slideshow {
    list-style: none;
    width: 100%;
    height: 120px; /* Base height for mobile images */
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    padding: 0;
}

ul.slideshow li {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center; /* Center align images in the slideshow */
}

ul.slideshow li.show {
    z-index: 5;
}

ul.slideshow img {
    border: none;
    max-width: 100%;
    height: auto;
}