/**
* Manual styles for overwrite generated ones.
*/

/* Textarea - slightly smaller radius for better appearance */
textarea,
.wpcf7-form-control.wpcf7-textarea {
    border-radius: 25px !important;
}

/* Images in content blocks - rounded corners */
.mp-component-absolute-image img {
    border-radius: 35px;
}

.check-list-item {
    display: flex !important;
    gap: 10px;
}

div.wpcf7-mail-sent-ok {
    border: 2px solid rgba(255, 198, 82, 0.41) !important;
}
div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
    border: 2px solid #FFC652 !important;
}

/* CF7 Form Focus Styles - Orange theme */
.wpcf7 .form-control:focus,
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus {
    border-color: #FFC652 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 198, 82, 0.25) !important;
    outline: none !important;
}

/* Checkbox and Radio styles for CF7 */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    accent-color: #FFC652;
}

.wpcf7 input[type="checkbox"]:focus,
.wpcf7 input[type="radio"]:focus {
    outline: 2px solid #FFC652;
    outline-offset: 2px;
}

/* General form focus styles */
.form-control:focus {
    border-color: #FFC652 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 198, 82, 0.25) !important;
}

/* Form check inputs */
.form-check-input:focus {
    border-color: #FFC652 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 198, 82, 0.25) !important;
}

.form-check-input:checked {
    background-color: #FFC652;
    border-color: #FFC652;
}

/* ACF Map Styles */
.acf-map {
    width: 100%;
    height: 400px;
    border: #ccc solid 1px;
    margin: 20px 0;
    border-radius: 5px;
    overflow: hidden;
}

/* fixes potential theme css conflict */
.acf-map img {
    max-width: inherit !important;
}

/* Marker Info Window Styles */
.marker-info {
    padding: 10px;
    min-width: 200px;
}

.marker-info .marker-title {
    font-size: 16px;
    font-weight: 600;
    color: #4c5459;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.marker-info .marker-address {
    font-size: 14px;
    color: #797F82;
    margin: 0;
    line-height: 1.4;
}

/* Google Map Container Styling */
.google-maps-js {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.google-maps-js:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Custom Info Window Styling */
.gm-style .gm-style-iw {
    border-radius: 8px !important;
    padding: 0 !important;
    max-width: 300px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-c {
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

.gm-style .gm-style-iw-tc::after {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .acf-map {
        height: 300px;
        margin: 15px 0;
    }
    
    .marker-info {
        min-width: 180px;
        padding: 8px;
    }
    
    .marker-info .marker-title {
        font-size: 14px;
    }
    
    .marker-info .marker-address {
        font-size: 12px;
    }
}

.contact-block-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4c5459;
}

.footer-contact-item {
    margin-bottom: 8px;
    min-width: 280px;
}

.footer-contact-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.footer-contact-item a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.footer-contact-item .contact-value {
    color: #4c5459;
    font-size: 16px;
}

.footer-contact-item svg,
.footer-contact-item img {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
}

.footer-worktime {
    color: #6c757d;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Multiple contact blocks support */
.contacts .d-flex > .my-2 {
    margin-right: 30px;
}

.contacts .d-flex > .my-2:last-child {
    margin-right: 0;
}

@media (min-width: 992px) {
    .footer .contacts .my-2:first-child {
        min-width: 320px;
    }
}

@media (max-width: 1260px) {
    .footer .navigation.container .social-links {
        padding-left: 0;
    }
}

/* Contact Page Styles */
.contact-page-block {
    padding: 40px 0;
}

.contact-page-block .contact-block-title {
    font-size: 26px;
    font-weight: 900;
    color: #FFC652;
    margin-bottom: 25px;
    text-align: left;
}

.contact-page-block .contact-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.contact-page-block .contact-item {
    margin-bottom: 0;
    width: 100%;
}

.contact-page-block .contact-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #4c5459;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.contact-page-block .contact-link:hover {
    text-decoration: none;
    color: #FFC652;
    transform: translateY(-1px);
}

.contact-page-block .contact-value {
    color: inherit;
    font-size: 1.5rem;
    font-family: MuseoSans-700, Arial, sans-serif;
    line-height: 1;
    text-align: left;
}

.contact-page-block .contact-link img {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-page-block .contact-link:hover img {
    transform: scale(1.1);
}

.contact-page-block .working-hours {
    margin-top: 20px;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    text-align: left;
    padding-left: 0;
}

@media (max-width: 768px) {
    .contact-page-block .contact-block-title {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .contact-page-block .contact-items {
        align-items: flex-start;
        gap: 6px;
    }
    
    .contact-page-block .contact-link {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 6px 0;
    }
    
    .contact-page-block .contact-link img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .contact-page-block .contact-value {
        font-size: 1.2rem;
        text-align: left;
    }
    
    .contact-page-block .working-hours {
        font-size: 14px;
        margin-top: 15px;
        text-align: left;
    }
}

/* Login link styles */
.login-link {
    color: rgb(205, 138, 0);
    font-weight: 900;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: MuseoSans-900, Arial, sans-serif;
}

.login-link:hover {
    color: rgb(205, 138, 0);
}

.login-link:hover .login-text {
    color: rgb(205, 138, 0);
}

.login-link:hover .login-icon {
    content: url('/wp-content/themes/mapon-theme/images/login-hover.svg');
}

.login-link .login-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.login-link .login-text {
    color: rgb(205, 138, 0);
    font-weight: 900;
    font-family: MuseoSans-900, Arial, sans-serif;
    line-height: 1;
}

/* Mobile login button styles */
.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: white;
    border: none;
    color: #FFC652;
    font-weight: 700;
}

.mobile-login-btn:hover {
    background-color: #f8f9fa;
    border: none;
    color: #FFC652;
}

.mobile-login-btn .mobile-login-icon {
    width: 18px;
    height: 18px;
    filter: none;
}

/* Mobile menu spacing fix */
.mp-navbar-mobile .navbar-nav {
    gap: 0;
    margin: 0;
    padding: 0;
}

.mp-navbar-mobile .navbar-nav .nav-item {
    margin: 0 !important;
    padding: 0 !important;
}

.mp-navbar-mobile .h-100.d-flex {
    margin: 0;
    padding: 0;
}

.mp-navbar-mobile .navbar-nav.justify-content-around.h-100.w-100 {
    justify-content: flex-start !important;
}

.mp-navbar-mobile .navbar-nav .nav-item .nav-link {
    padding: 12px 0 12px 20px !important;
    margin: 0 !important;
}

.navbar-expand-sm .navbar-nav .nav-link {
    padding: 0;
}

.wpcf7-response-output {
    color: #98CA02;
    text-align: center;
    border: 0 !important;
}

/* Complianz Cookie Banner - rounded corners */
.cmplz-cookiebanner {
    border-radius: 20px !important;
    overflow: hidden;
}

.cmplz-cookiebanner .cmplz-header {
    border-radius: 20px 20px 0 0;
}

.cmplz-cookiebanner .cmplz-btn {
    border-radius: 35px !important;
}

.cmplz-cookiebanner .cmplz-categories details {
    border-radius: 10px;
}

.cmplz-cookiebanner .cmplz-categories summary {
    border-radius: 10px;
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* On Pages with banner at top — extend banner under fixed navbar (homepage-like) */
body.mp-has-hero-top-banner:not(.single-solutions):not(.single-products) {
    padding-top: 0 !important;
}

/* Banner content must clear the fixed navbar (~122px tall with the contact bar).
   Applies on homepage AND on Pages where banner extends under navbar. */
body.mp-has-navbar-homepage .hero-banner .container,
body.mp-has-hero-top-banner:not(.single-solutions):not(.single-products) .hero-banner .container {
    padding-top: 160px;
}

@media (max-width: 767px) {
    body.mp-has-navbar-homepage .hero-banner .container,
    body.mp-has-hero-top-banner:not(.single-solutions):not(.single-products) .hero-banner .container {
        padding-top: 100px;
    }
}

/* On Solution/Product singles with banner at top — make breadcrumbs flow in normal
   layout so they don't overlap the banner image (default is position:absolute,
   designed to overlay the original solution-header-block padding-top: 125px area). */
body.mp-has-hero-top-banner.single-solutions .mp-breadcrumb,
body.mp-has-hero-top-banner.single-products .mp-breadcrumb {
    position: relative;
    margin: 14px 0;
}

.hero-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

/* Hero Banner - CF7 form */
.hero-banner__form {
    margin-top: 24px;
    max-width: 620px;
}

.hero-banner__form .wpcf7-form .row {
    margin-bottom: 10px;
}

/* Consent text + policy link must stay readable on the dark overlay */
.hero-banner__form .wpcf7-acceptance .wpcf7-list-item-label {
    color: rgba(255, 255, 255, 0.9);
}

.hero-banner__form .wpcf7-acceptance a {
    color: #ffffff;
    text-decoration: underline;
}

.hero-banner__form .wpcf7-response-output {
    color: #ffffff;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-banner__content {
    max-width: 700px;
}

.hero-banner__title {
    color: #ffffff;
    font-size: 3.75rem;
    font-family: MuseoSans-700, Arial, sans-serif;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-family: MuseoSans-500, Arial, sans-serif;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-banner__btn {
    display: inline-block;
    background-color: #FFC652;
    color: #ffffff;
    font-family: MuseoSans-700, Arial, sans-serif;
    font-size: 1.125rem;
    padding: 14px 36px;
    border-radius: 35px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 198, 82, 0.3);
}

.hero-banner__btn:hover {
    background-color: #e6b24a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 198, 82, 0.4);
    text-decoration: none;
}

.hero-banner__btn:active {
    transform: translateY(0);
}

/* Hero Banner - Tablet */
@media (max-width: 991px) {
    .hero-banner {
        min-height: 400px;
    }
    
    .hero-banner .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .hero-banner__title {
        font-size: 2.5rem;
    }
    
    .hero-banner__description {
        font-size: 1.1rem;
    }
}

/* Hero Banner - Mobile */
@media (max-width: 767px) {
    .hero-banner {
        min-height: 350px;
    }
    
    .hero-banner .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .hero-banner__content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-banner__title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-banner__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-banner__btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Sections that follow the hero banner reset their own padding-top to 0
   (they were authored to butt up against a preceding mp-component with
   padding-bottom). Restore vertical breathing room when one of them is
   the first block after the banner. */
.hero-banner + .mp-component {
    padding-top: 100px;
}

@media (max-width: 767px) {
    .hero-banner + .mp-component {
        padding-top: 50px;
    }
}

/* ============================================================
   Contacts page — full-width background image behind the form
   ============================================================ */

/* When a background image is set, it covers the whole block edge-to-edge
   and the gradient stays as a fallback colour underneath. */
.mp-component-contact-page-form-block.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Form card floats over the background on its own (image column removed). */
.mp-component-contact-page-form-block .form-wrap {
    position: relative;
    z-index: 2;
}

/* Contacts page only: remove the navbar-space gap so the background image
   runs flush to the very top (under the fixed navbar), hero-banner style.
   Inner top padding then clears the fixed navbar for the form. */
body.mp-contacts-page {
    padding-top: 0 !important;
}

body.mp-contacts-page .mp-component-contact-page-form-block {
    padding-top: 160px;
}

@media (max-width: 767px) {
    body.mp-contacts-page .mp-component-contact-page-form-block {
        padding-top: 100px;
    }
}

/* Contacts info section — sits below the form hero on its own light background
   (so the form's background image never bleeds behind the dark contact text). */
.mp-component-contacts-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), #f4f4f4);
    padding-top: 50px;
}

/* ============================================================
   Subscription plans (GPSGo public API) — global/plans block
   ============================================================ */
.gpsgo-plans__heading {
    text-align: center;
    color: #4c5459;
    margin-bottom: 40px;
}

.gpsgo-plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.gpsgo-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 100%;
    padding: 40px 32px;
    background-color: #fff;
    border: 2px solid #f0f1f2;
    border-radius: 35px;
    box-shadow: 0 1px 17px 0 #f4f4f4;
    font-family: MuseoSans-500, Arial, sans-serif;
}

/* Recommended plan (highlight=true) — theme orange accent */
.gpsgo-plan--featured {
    border-color: #FFC652;
    box-shadow: 0 8px 30px 0 rgba(76, 84, 89, 0.12);
}

.gpsgo-plan__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 18px;
    border-radius: 35px;
    background-color: #FFC652;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.gpsgo-plan__title {
    font-size: 1.75rem;
    font-family: MuseoSans-700, Arial, sans-serif;
    color: #4c5459;
    margin-bottom: 6px;
}

.gpsgo-plan__tagline {
    color: #797f82;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
    min-height: 45px;
}

.gpsgo-plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    color: #4c5459;
}

.gpsgo-plan__amount {
    font-size: 2.75rem;
    font-family: MuseoSans-700, Arial, sans-serif;
    line-height: 1;
}

.gpsgo-plan__currency {
    font-size: 1.25rem;
    font-weight: 700;
}

.gpsgo-plan__period {
    font-size: 0.9375rem;
    color: #797f82;
}

.gpsgo-plan__limit {
    font-size: 0.9375rem;
    color: #797f82;
    margin-bottom: 20px;
}

.gpsgo-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    flex-grow: 1;
}

.gpsgo-plan__features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #4c5459;
    font-size: 1rem;
    line-height: 1.4;
}

.gpsgo-plan__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #FFC652;
    font-weight: 700;
}

.gpsgo-plan__cta {
    display: block;
    margin-top: auto;
    text-align: center;
    padding: 14px 28px;
    border-radius: 35px;
    background-color: #FFC652;
    color: #fff;
    font-family: MuseoSans-700, Arial, sans-serif;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gpsgo-plan__cta:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transform: translateY(-2px);
}

.gpsgo-plans-error {
    text-align: center;
    color: #797f82;
    padding: 24px;
}

@media (max-width: 991px) {
    .gpsgo-plan {
        width: 100%;
        max-width: 420px;
    }
}

/* Plans comparison table */
.gpsgo-plans-table-wrap {
    margin-top: 56px;
    overflow-x: auto;
    border: 1px solid #dcdee0;
    border-radius: 35px;
}

/* Rounded frame supplies the outer border — drop the cells' outer edges so they
   don't double up or poke past the rounded corners. */
.gpsgo-plans-table thead tr th:first-child,
.gpsgo-plans-table tbody tr td:first-child {
    border-left: 0;
}

.gpsgo-plans-table thead tr th:last-child,
.gpsgo-plans-table tbody tr td:last-child {
    border-right: 0;
}

.gpsgo-plans-table thead tr:first-child th {
    border-top: 0;
}

.gpsgo-plans-table tbody tr:last-child td {
    border-bottom: 0;
}

.gpsgo-plans-table {
    width: 100%;
    border-collapse: collapse;
    font-family: MuseoSans-500, Arial, sans-serif;
    color: #4c5459;
}

.gpsgo-plans-table th,
.gpsgo-plans-table td {
    border: 1px solid #dcdee0;
    padding: 12px 18px;
    font-size: 1rem;
    text-align: center;
}

.gpsgo-plans-table thead th {
    background-color: #f4f4f4;
    font-family: MuseoSans-700, Arial, sans-serif;
    font-size: 1.125rem;
    white-space: nowrap;
}

.gpsgo-plans-table th.gpsgo-plans-table__feature-col,
.gpsgo-plans-table td.gpsgo-plans-table__feature-col {
    text-align: left;
}

.gpsgo-plans-table__plan--featured {
    color: #FFC652;
}

.gpsgo-plans-table__yes {
    color: #98CA02;
    font-weight: 700;
    font-size: 1.25rem;
}

.gpsgo-plans-table__no {
    color: #e2342f;
    font-weight: 700;
    font-size: 1.375rem;
}

/* ============================================================
   Supported devices page (mirrored from traccar.org)
   ============================================================ */
/* Tighten the gap between a preceding section (e.g. hero banner) and the list. */
.mp-component-devices {
    padding-top: 40px;
}

.mp-component-devices h1 {
    color: #4c5459;
    font-size: 2.875rem;
    margin-bottom: 16px;
}

.gpsgo-devices__intro {
    color: #797f82;
    font-size: 1.125rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.gpsgo-devices__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.gpsgo-devices__search {
    flex: 1 1 320px;
    max-width: 480px;
    padding: 12px 22px;
    border: 1px solid #e4e5e6;
    border-radius: 35px;
    font-family: MuseoSans-500, Arial, sans-serif;
    font-size: 1rem;
    color: #4c5459;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gpsgo-devices__search:focus {
    border-color: #FFC652;
    box-shadow: 0 0 0 0.2rem rgba(255, 198, 82, 0.25);
}

.gpsgo-devices__count {
    color: #797f82;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.gpsgo-devices__table-wrap {
    overflow-x: auto;
    border: 1px solid #dcdee0;
    border-radius: 35px;
}

.gpsgo-devices-table thead tr th:first-child,
.gpsgo-devices-table tbody tr td:first-child {
    border-left: 0;
}

.gpsgo-devices-table thead tr th:last-child,
.gpsgo-devices-table tbody tr td:last-child {
    border-right: 0;
}

.gpsgo-devices-table thead tr th {
    border-top: 0;
}

.gpsgo-devices-table tbody tr:last-child td {
    border-bottom: 0;
}

.gpsgo-devices-table {
    width: 100%;
    border-collapse: collapse;
    font-family: MuseoSans-500, Arial, sans-serif;
    color: #4c5459;
}

.gpsgo-devices-table th,
.gpsgo-devices-table td {
    border: 1px solid #dcdee0;
    padding: 10px 18px;
    font-size: 1rem;
    text-align: left;
}

.gpsgo-devices-table thead th {
    position: sticky;
    top: 0;
    background-color: #f4f4f4;
    font-family: MuseoSans-700, Arial, sans-serif;
    z-index: 1;
}

.gpsgo-devices-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.gpsgo-devices__badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 35px;
    background-color: #FFC652;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    vertical-align: middle;
}

.gpsgo-devices__empty,
.gpsgo-devices-error {
    text-align: center;
    color: #797f82;
    padding: 24px;
}