.ytc-page-footer-custom-content {
    max-width: 1200px;
    margin: 22px auto 32px;
    padding: 28px 24px;
    color: inherit;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;

    /* Centering items vertically & horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ytc-page-footer-custom-content > * {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Device Target Visibility */
@media (max-width: 768px) {
    .ytc-custom-footer-device-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .ytc-custom-footer-device-mobile {
        display: none !important;
    }
}

:is(
    html[data-theme="dark"],
    html[data-bs-theme="dark"],
    html[data-color-scheme="dark"],
    body[data-theme="dark"],
    body[data-bs-theme="dark"],
    body[data-color-scheme="dark"],
    body.dark-mode,
    body.night-mode,
    body.sheer-dark-mode,
    .dark,
    .dark-mode,
    .night-mode
) .ytc-page-footer-custom-content {
    background: transparent;
    border-color: transparent;
    color: #e2e8f0;
    box-shadow: none;
}

:is(
    html[data-theme="dark"],
    html[data-bs-theme="dark"],
    html[data-color-scheme="dark"],
    body[data-theme="dark"],
    body[data-bs-theme="dark"],
    body[data-color-scheme="dark"],
    body.dark-mode,
    body.night-mode,
    body.sheer-dark-mode,
    .dark,
    .dark-mode,
    .night-mode
) .ytc-page-footer-custom-content a {
    color: #60a5fa;
}

.ytc-page-footer-custom-content p,
.ytc-page-footer-custom-content ul,
.ytc-page-footer-custom-content ol,
.ytc-page-footer-custom-content blockquote,
.ytc-page-footer-custom-content table,
.ytc-page-footer-custom-content pre {
    margin: 0 0 16px;
}

.ytc-page-footer-custom-content a {
    color: #1a73e8;
    text-decoration: none;
}

.ytc-page-footer-custom-content a:hover {
    text-decoration: underline;
}

.ytc-page-footer {
    background: var(--pfooter-bg, #1a1a2e);
    color: var(--pfooter-text, #cccccc);
    padding: 48px 0 32px;
    margin-top: 48px;
    width: 100%;
}

/* Contact info bar */
.ytc-pf-info-bar {
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 0 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.ytc-pf-info-item {
    font-size: 15px;
    color: var(--pfooter-text, #cccccc);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ytc-pf-info-item a {
    color: var(--pfooter-text, #cccccc);
    text-decoration: none;
    transition: color 0.2s;
}

.ytc-pf-info-item a:hover {
    color: var(--pfooter-link, #667eea);
}

.ytc-pf-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    text-decoration: none;
    line-height: 1;
    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ytc-pf-info-socials {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ytc-pf-social-link:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.ytc-pf-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ytc-pf-social-instagram svg {
    width: 19px;
    height: 19px;
}

.ytc-pf-social-youtube svg {
    width: 20px;
    height: 20px;
}

.ytc-pf-social-link .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ytc-page-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    align-items: start;
    box-sizing: border-box;
}

.ytc-page-footer[data-cols="4"] .ytc-page-footer-inner {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
}

.ytc-page-footer[data-cols="3"] .ytc-page-footer-inner {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

/* Headings */
.ytc-pf-heading {
    color: var(--pfooter-heading, #ffffff);
    font-size: var(--scdev-h5-size, 18px);
    font-weight: var(--scdev-h5-weight, 700);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pfooter-link, #667eea);
    display: inline-block;
}

/* Links */
.ytc-pf-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ytc-pf-nav li {
    margin-bottom: 8px;
}

.ytc-pf-nav a {
    color: var(--pfooter-text, #cccccc);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.ytc-pf-nav a:hover {
    color: var(--pfooter-link, #667eea);
    padding-left: 4px;
}

/* Contact form - step layout */
.ytc-pf-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ytc-pf-step {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.ytc-pf-step.active {
    display: flex;
}

.ytc-pf-step-label {
    margin: 0 0 2px 0;
    font-size: 14px;
    opacity: 0.6;
    color: var(--pfooter-text, #cccccc);
}

.ytc-pf-step-btns {
    display: flex;
    gap: 8px;
}

.ytc-pf-form input,
.ytc-pf-form textarea {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--pfooter-text, #cccccc);
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ytc-pf-form input::placeholder,
.ytc-pf-form textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.ytc-pf-form input:focus,
.ytc-pf-form textarea:focus {
    outline: none;
    border-color: var(--pfooter-link, #667eea);
}

.ytc-pf-form textarea {
    resize: vertical;
    min-height: 90px;
}

.ytc-pf-form button {
    background: var(--pfooter-link, #667eea);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    align-self: flex-start;
}

.ytc-pf-form button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.ytc-pf-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ytc-pf-back {
    background: transparent !important;
    color: var(--pfooter-text, #cccccc) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    opacity: 1 !important;
}

.ytc-pf-form-msg {
    font-size: 15px;
    min-height: 18px;
}

.ytc-pf-form-msg.success { color: #4caf50; }
.ytc-pf-form-msg.error   { color: #f44336; }

/* Map */
.ytc-pf-map-iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 8px;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 850px) {
    .ytc-page-footer-inner,
    .ytc-page-footer[data-cols="4"] .ytc-page-footer-inner,
    .ytc-page-footer[data-cols="3"] .ytc-page-footer-inner {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .ytc-page-footer {
        padding: 36px 0 24px !important;
        margin-top: 32px !important;
    }

    .ytc-page-footer-inner,
    .ytc-page-footer[data-cols="4"] .ytc-page-footer-inner,
    .ytc-page-footer[data-cols="3"] .ytc-page-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
    }

    .ytc-pf-info-bar {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
        text-align: center !important;
        padding-bottom: 16px !important;
    }

    .ytc-pf-info-socials {
        flex-basis: 100%;
        width: 100%;
        margin-top: 4px;
        justify-content: center;
    }

    .ytc-pf-social-link {
        width: 22px;
        height: 22px;
    }

    .ytc-pf-heading {
        display: inline-block;
        text-align: center;
        margin: 0 auto 14px auto;
    }

    .ytc-pf-links,
    .ytc-pf-contact,
    .ytc-pf-app-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .ytc-pf-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .ytc-pf-nav li {
        margin-bottom: 10px;
    }

    .ytc-pf-form {
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .ytc-pf-step {
        width: 100%;
        box-sizing: border-box;
    }

    .ytc-pf-form button,
    .ytc-pf-step-btns {
        align-self: center;
        justify-content: center;
        width: 100%;
    }

    .ytc-pf-step-btns button {
        flex: 1;
    }

    .ytc-pf-map,
    .ytc-pf-map-iframe {
        width: 100%;
        max-width: 100%;
    }

    .ytc-pf-map {
        overflow: hidden;
    }

    .ytc-pf-map-iframe {
        height: 180px;
    }

    .ytc-pf-app-badges-column {
        align-items: center !important;
        width: 100%;
    }

    .ytc-pf-app-badges-grid {
        justify-content: center;
        width: 100%;
    }

    .ytc-app-badge {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}

.ytc-page-footer {
    margin-bottom: 40px !important;
}

/* Mobile App & PWA Badges Column */
.ytc-pf-app-badges-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-top: 4px;
}

.ytc-pf-app-badges-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ytc-pf-app-badges-grid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ytc-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #090d16 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    width: auto;
    min-width: 165px;
}

.ytc-app-badge:hover,
.ytc-app-badge:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.5);
    background: #151d30 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.ytc-app-badge svg {
    flex-shrink: 0;
}

.ytc-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.ytc-badge-sub {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #cbd5e1 !important;
    opacity: 0.9;
}

.ytc-badge-main {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff !important;
}

.ytc-badge-pwa {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #38bdf8;
}

.ytc-badge-pwa .ytc-badge-sub {
    color: #e0f2fe !important;
    opacity: 1;
}

.ytc-pwa-icon {
    font-size: 20px;
}
