:root {
    --ftp-primary: #ff914d;
    --ftp-accent: #ff914d;
    --ftp-bg: #ffffff;
    --ftp-text: #1f2937;
    --ftp-overlay: rgba(15, 23, 42, 0.6);
    --ftp-radius: 14px;
    --ftp-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* FORCE ALL FEATURES TO BE VISIBLE AND ACTIVE */
#ftp-floating-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to top right, rgba(255,145,77,.8), rgba(255,145,77,.6));
    color: #fff;
    display: flex !important; /* FORCE DISPLAY */
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px 0 0 12px;
    box-shadow: var(--ftp-shadow);
    z-index: 9998;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: .08em;
    opacity: 1 !important; /* FORCE VISIBILITY */
    visibility: visible !important; /* FORCE VISIBILITY */
}

#ftp-floating-tab .ftp-tab-icon {
    writing-mode: horizontal-tb;
}

#ftp-overlay {
    position: fixed;
    inset: 0;
    background: var(--ftp-overlay);
    z-index: 9997;
}

.ftp-hidden {
    display: none !important;
}

#ftp-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    transform: none;
    width: 100vw;
    max-width: none;
    background: var(--ftp-bg);
    color: var(--ftp-text);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--ftp-shadow);
    z-index: 9999;
    overflow: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 120px);
    box-sizing: border-box;
    padding: 8px 15px;
    will-change: opacity, transform;
    opacity: 1 !important; /* FORCE VISIBILITY */
    visibility: visible !important; /* FORCE VISIBILITY */
}

/* Open animation */
.ftp-animate-in { animation: ftpModalIn .28s ease-out; }
@keyframes ftpModalIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

#ftp-modal .ftp-close {
    position: sticky;
    top: 12px;
    float: right;
    background: transparent;
    border: 0;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: var(--ftp-text);
    z-index: 10000;
}

.ftp-modal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 24px 28px;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98));
}

.ftp-modal-left h2 {
    margin: 0 0 22px;
    font-size: clamp(28px, 3.6vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(to top right, rgba(255,145,77,.8), rgba(255,145,77,.6));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.ftp-form .ftp-row,
.ftp-form .ftp-grid { margin-bottom: 16px; }

.ftp-form select,
.ftp-form input[type="text"],
.ftp-form input[type="tel"],
.ftp-form input[type="email"] {
    width: 100%;
    padding: 18px 22px;
    border-radius: 32px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.9);
    outline: none;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.ftp-form select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg' fill='%231e293b'%3E%3Cpath d='M5 7l5 6 5-6' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px 20px;
}

.ftp-form select:focus,
.ftp-form input:focus {
    border-color: var(--ftp-accent);
    box-shadow: 0 0 0 4px rgba(56,163,241,.15);
    background: #fff;
}

.ftp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ftp-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin: 12px 0 8px;
}

.ftp-primary {
    background: linear-gradient(to top right, rgba(255,145,77,.8), rgba(255,145,77,.6));
    border: 0;
    color: #fff;
    padding: 16px 28px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(56,163,241,.35);
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

.ftp-primary:hover { filter: brightness(1.02); box-shadow: 0 16px 34px rgba(56,163,241,.38); }
.ftp-primary:active { transform: translateY(1px); }

.ftp-modal-right {
    display: grid;
    place-items: center;
    align-content: center;
    align-items: center;
    width: 100%;
}

.ftp-video-wrap {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    background: transparent;
}

.ftp-video-wrap video,
.ftp-video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ftp-gauge {
    width: min(500px, 70vw);
    aspect-ratio: 1.6/1;
    position: relative;
    background: #fff;
    border-radius: 18px;
    border: 2px solid rgba(0,0,0,.06);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}

.ftp-gauge-arc {
    position: absolute;
    inset: 10% 6% auto 6%;
    height: 54%;
    background: repeating-conic-gradient(from 200deg, rgba(30,100,181,.2) 0 8deg, transparent 8deg 12deg);
    -webkit-mask: radial-gradient(100% 100% at 50% 100%, transparent 58%, #000 59%);
            mask: radial-gradient(100% 100% at 50% 100%, transparent 58%, #000 59%);
}

.ftp-gauge-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    text-align: center;
}

.ftp-gauge-label { font-weight: 700; }
.ftp-gauge-value { font-size: 54px; font-weight: 800; }

@media (max-width: 960px) {
    .ftp-modal-inner { grid-template-columns: 1fr; padding: 24px 16px 18px; gap: 18px; max-width: 640px; }
    #ftp-floating-tab { 
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px 10px;
        border-radius: 8px 0 0 8px;
        font-size: 12px;
        letter-spacing: 0.1em;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        gap: 8px;
    }
    .ftp-video-wrap { width: 100%; max-width: none; border-radius: 18px; }
}

/* Contact Form 7 modern styles inside modal */
.ftp-form-wrap .wpcf7 form p { margin: 0 0 16px; }
.ftp-form-wrap .wpcf7 input[type="text"],
.ftp-form-wrap .wpcf7 input[type="email"],
.ftp-form-wrap .wpcf7 input[type="tel"],
.ftp-form-wrap .wpcf7 select,
.ftp-form-wrap .wpcf7 textarea {
    width: 100%;
    padding: 18px 22px;
    border-radius: 32px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.9);
    outline: none;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.ftp-form-wrap .wpcf7 select:focus,
.ftp-form-wrap .wpcf7 input:focus,
.ftp-form-wrap .wpcf7 textarea:focus {
    border-color: var(--ftp-accent);
    box-shadow: 0 0 0 4px rgba(56,163,241,.15);
    background: #fff;
}
.ftp-form-wrap .wpcf7 .wpcf7-submit {
    background: linear-gradient(to top right, rgba(255,145,77,.8), rgba(255,145,77,.6));
    border: 0;
    color: #fff;
    padding: 16px 28px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(56,163,241,.35);
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.ftp-form-wrap .wpcf7 .wpcf7-submit:hover { filter: brightness(1.02); box-shadow: 0 16px 34px rgba(56,163,241,.38); }
.ftp-form-wrap .wpcf7 .wpcf7-submit:active { transform: translateY(1px); }

/* Custom Image Support Styles */
#ftp-floating-tab[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#ftp-floating-tab[style*="background-image"] .ftp-tab-icon {
    display: none !important;
}

#ftp-modal[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

#ftp-modal[style*="background-image"] .ftp-modal-inner {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px;
    padding: 40px 24px 28px;
}

.ftp-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.ftp-logo {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Admin Image Upload Styles */
.ftp-image-upload {
    margin: 10px 0;
}

.ftp-image-preview {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ftp-image-preview img {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    background: #f9f9f9;
}

.ftp-upload-image {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.ftp-upload-image:hover {
    background: #005a87;
}

.ftp-remove-image {
    background: #dc3232;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.ftp-remove-image:hover {
    background: #a00;
}

/* Responsive adjustments for custom images */
@media (max-width: 960px) {
    #ftp-modal[style*="background-image"] .ftp-modal-inner {
        margin: 10px;
        padding: 24px 16px 18px;
    }
    
    .ftp-logo {
        max-width: 150px;
        max-height: 60px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    #ftp-floating-tab {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 7px 9px;
        border-radius: 7px 0 0 7px;
        font-size: 11px;
        gap: 6px;
    }
    
    .ftp-modal-inner {
        padding: 20px 12px 16px;
        gap: 16px;
    }
    
    .ftp-form input[type="text"],
    .ftp-form input[type="tel"],
    .ftp-form input[type="email"],
    .ftp-form select {
        padding: 14px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .ftp-primary {
        padding: 14px 24px;
        font-size: 15px;
    }
}


