/**
 * Floating Contact Button Stylesheet v1.7.0
 * Author: Gemini
 */

 @keyframes fcb-glow {
    0% {
        box-shadow: 0 0 3px var(--fcb-button-bg, #F47A5E),
                    0 0 5px var(--fcb-button-bg, #F47A5E),
                    0 0 8px rgba(244, 122, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 8px var(--fcb-button-bg, #F47A5E),
                    0 0 15px var(--fcb-button-bg, #F47A5E),
                    0 0 20px rgba(244, 122, 94, 0.5);
    }
    100% {
        box-shadow: 0 0 3px var(--fcb-button-bg, #F47A5E),
                    0 0 5px var(--fcb-button-bg, #F47A5E),
                    0 0 8px rgba(244, 122, 94, 0.3);
    }
}
@keyframes fcb-spinner {
    to { transform: rotate(360deg); }
}

body.fcb-modal-is-open {
    overflow: hidden;
}

.fcb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fcb-overlay.open {
    opacity: 1;
    visibility: visible;
}

.fcb-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.fcb-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fcb-button {
    background-color: var(--fcb-button-bg, #F47A5E);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
    position: relative;
    z-index: 10000;
    animation: fcb-glow 3s infinite linear;
}

.fcb-button:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

.fcb-icon img {
    width: 28px;
    height: 28px;
    display: block;
}

.fcb-modal {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--fcb-modal-bg, #1A1A1B);
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 9999;
}

.fcb-container.open .fcb-modal {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fcb-modal-header {
    background-color: var(--fcb-modal-header-bg, #212124);
    padding: 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fcb-modal-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--fcb-modal-text-primary, #FFFFFF);
}

.fcb-modal-header p {
    margin: 0;
    font-size: 14px;
    color: var(--fcb-modal-text-secondary, #a0a0a0);
    line-height: 1.5;
}

.fcb-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--fcb-modal-text-secondary, #a0a0a0);
    cursor: pointer;
    padding: 5px;
}

.fcb-modal-content { padding: 8px; }

.fcb-action-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
    background-color: var(--fcb-card-bg, #2D2D30);
}

.fcb-action-card:last-child { margin-bottom: 0; }
.fcb-action-card:hover { background-color: var(--fcb-card-hover-bg, #404040); }

.fcb-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #fff;
}

.fcb-icon-wrapper img {
    width: 24px;
    height: 24px;
}
.fcb-icon-wrapper.whatsapp { background-color: #25D366; }
.fcb-icon-wrapper.call { background-color: #34B7F1; }
.fcb-icon-wrapper.brochure { background-color: #8A63D2; }


.fcb-text-wrapper { flex-grow: 1; }
.fcb-text-wrapper h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--fcb-modal-text-primary, #FFFFFF);
}
.fcb-text-wrapper p {
    margin: 0;
    font-size: 13px;
    color: var(--fcb-modal-text-secondary, #a0a0a0);
}

.fcb-arrow {
    font-size: 24px;
    color: var(--fcb-modal-text-secondary, #a0a0a0);
    transition: transform 0.2s ease, color 0.2s ease;
}
.fcb-action-card:hover .fcb-arrow {
    transform: translateX(5px);
    color: var(--fcb-accent-color, #F2FF58);
}

/* Form Styles */
.fcb-modal.form-open .fcb-modal-header,
.fcb-modal.form-open .fcb-modal-main-content {
    display: none;
}

.fcb-form-wrapper {
    display: none;
    padding: 20px;
}
.fcb-modal.form-open .fcb-form-wrapper {
    display: block;
}

.fcb-form-header {
    border-bottom: 1px solid var(--fcb-card-bg, #2D2D30);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.fcb-form-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--fcb-modal-text-primary, #FFFFFF);
}

.fcb-form-header p {
    margin: 0;
    font-size: 14px;
    color: var(--fcb-modal-text-secondary, #a0a0a0);
    line-height: 1.5;
}

.fcb-back-btn {
    background: none;
    border: none;
    color: var(--fcb-modal-text-secondary, #a0a0a0);
    font-size: 14px;
    cursor: pointer;
    padding: 0 0 15px 0;
    display: block;
}
.fcb-back-btn:hover { color: var(--fcb-accent-color); }


.fcb-form-wrapper .wpcf7-form p {
    margin: 0 0 15px;
}

.fcb-form-wrapper .wpcf7-form-control {
    background-color: var(--fcb-card-bg, #2D2D30);
    border: 1px solid var(--fcb-card-hover-bg, #404040);
    color: var(--fcb-modal-text-primary, #FFFFFF);
    padding: 12px;
    border-radius: 8px;
    width: 100% !important;
    font-size: 14px;
    box-sizing: border-box;
}

.fcb-form-wrapper .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--fcb-accent-color);
}

.fcb-form-wrapper .wpcf7-submit {
    background-color: var(--fcb-button-bg, #F47A5E);
    color: #070708;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    width: 100% !important;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    position: relative;
    overflow: hidden;
}
.fcb-form-wrapper .wpcf7-submit:hover {
    filter: brightness(1.1);
}

/* Styles for button loading animation */
.fcb-form-wrapper .wpcf7-submit.submitting {
    opacity: 0.8;
    cursor: wait;
    color: transparent; /* Hide original text */
}

.fcb-form-wrapper .wpcf7-submit.submitting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #070708;
    border-radius: 50%;
    animation: fcb-spinner .6s linear infinite;
}

.fcb-form-wrapper .wpcf7-submit.submitting::before {
    content: 'Submitting…';
    color: #070708;
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    text-align: center;
}


/* Styles for the success message */
.fcb-success-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--fcb-modal-text-primary, #FFFFFF);
}
/* ✨ NEW: Style for the success icon image */
.fcb-success-icon {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}
.fcb-success-message h4 {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 600;
}
.fcb-success-message p {
    margin: 0;
    font-size: 14px;
    color: var(--fcb-modal-text-secondary, #a0a0a0);
}


@media (max-width: 480px) {
    .fcb-container { bottom: 15px; right: 15px; }
    .fcb-button { width: 55px; height: 55px; }
    .fcb-modal { width: calc(100vw - 30px); bottom: 75px; }
}

