/**
 * Sticky Contact Buttons - Frontend Styles
 * Version: 1.0.0
 */

/* ===========================
   Desktop Sticky Buttons
   =========================== */

.scb-sticky-buttons {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Position: Top */
.scb-sticky-buttons.scb-position-top {
    top: 20px;
}

/* Position: Middle */
.scb-sticky-buttons.scb-position-middle {
    top: 50%;
    transform: translateY(-50%);
}

/* Position: Bottom */
.scb-sticky-buttons.scb-position-bottom {
    bottom: 20px;
}

/* Side: Left */
.scb-sticky-buttons.scb-side-left {
    left: 0;
}

.scb-sticky-buttons.scb-side-left .scb-button {
    border-radius: 0 25px 25px 0;
}

/* Side: Right */
.scb-sticky-buttons.scb-side-right {
    right: 0;
}

.scb-sticky-buttons.scb-side-right .scb-button {
    border-radius: 25px 0 0 25px;
}

/* Button Base Styles */
.scb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.scb-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scb-button i {
    font-size: 22px;
}

/* ===========================
   BUTTON SHAPES
   =========================== */

/* Shape: Circle (Default) */
.scb-shape-circle .scb-button {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.scb-shape-circle.scb-side-left .scb-button {
    border-radius: 50%;
}

.scb-shape-circle.scb-side-right .scb-button {
    border-radius: 50%;
}

/* Shape: Square */
.scb-shape-square .scb-button {
    border-radius: 8px;
    width: 50px;
    height: 50px;
}

.scb-shape-square.scb-side-left .scb-button {
    border-radius: 0 8px 8px 0;
}

.scb-shape-square.scb-side-right .scb-button {
    border-radius: 8px 0 0 8px;
}

/* Shape: Pills */
.scb-shape-pills .scb-button {
    border-radius: 30px;
    width: auto;
    min-width: 50px;
    height: 50px;
    padding: 0 20px;
    gap: 10px;
}

.scb-shape-pills.scb-side-left .scb-button {
    border-radius: 0 30px 30px 0;
}

.scb-shape-pills.scb-side-right .scb-button {
    border-radius: 30px 0 0 30px;
}

.scb-shape-pills .scb-button .scb-button-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.scb-shape-pills .scb-button i {
    font-size: 20px;
}

.scb-button i {
    font-size: 22px;
}

/* ===========================
   STYLE 1: Gradient (Default)
   =========================== */

/* Phone Button - Gradient */
.scb-style-gradient .scb-button-phone {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.scb-style-gradient .scb-button-phone:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Email Button - Gradient */
.scb-style-gradient .scb-button-email {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.scb-style-gradient .scb-button-email:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* WhatsApp Button - Gradient */
.scb-style-gradient .scb-button-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.scb-style-gradient .scb-button-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

/* ===========================
   STYLE 2: Flat
   =========================== */

.scb-style-flat .scb-button {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Phone Button - Flat */
.scb-style-flat .scb-button-phone {
    background: #667eea;
}

.scb-style-flat .scb-button-phone:hover {
    background: #5568d3;
}

/* Email Button - Flat */
.scb-style-flat .scb-button-email {
    background: #f5576c;
}

.scb-style-flat .scb-button-email:hover {
    background: #e04455;
}

/* WhatsApp Button - Flat */
.scb-style-flat .scb-button-whatsapp {
    background: #25D366;
}

.scb-style-flat .scb-button-whatsapp:hover {
    background: #1ebe57;
}

/* ===========================
   STYLE 3: Outline
   =========================== */

.scb-style-outline .scb-button {
    background: transparent;
    border: 2px solid;
    box-shadow: none;
}

.scb-style-outline .scb-button:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Phone Button - Outline */
.scb-style-outline .scb-button-phone {
    border-color: #667eea;
    color: #667eea;
}

.scb-style-outline .scb-button-phone:hover {
    background: #667eea;
    color: #ffffff;
}

.scb-style-outline .scb-button-phone i {
    color: #667eea;
}

.scb-style-outline .scb-button-phone:hover i {
    color: #ffffff;
}

/* Email Button - Outline */
.scb-style-outline .scb-button-email {
    border-color: #f5576c;
    color: #f5576c;
}

.scb-style-outline .scb-button-email:hover {
    background: #f5576c;
    color: #ffffff;
}

.scb-style-outline .scb-button-email i {
    color: #f5576c;
}

.scb-style-outline .scb-button-email:hover i {
    color: #ffffff;
}

/* WhatsApp Button - Outline */
.scb-style-outline .scb-button-whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.scb-style-outline .scb-button-whatsapp:hover {
    background: #25D366;
    color: #ffffff;
}

.scb-style-outline .scb-button-whatsapp i {
    color: #25D366;
}

.scb-style-outline .scb-button-whatsapp:hover i {
    color: #ffffff;
}

/* ===========================
   Mobile Footer Buttons
   =========================== */

.scb-mobile-footer {
    display: none;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {

    /* Hide desktop sticky buttons on mobile */
    .scb-sticky-buttons {
        display: none;
    }

    /* Show mobile footer */
    .scb-mobile-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        justify-content: space-around;
        padding: 10px 0;
    }

    .scb-mobile-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #333333;
        flex: 1;
        padding: 8px 5px;
        transition: all 0.3s ease;
    }

    .scb-mobile-button:hover,
    .scb-mobile-button:active {
        transform: scale(1.05);
    }

    .scb-mobile-button i {
        font-size: 24px;
        margin-bottom: 4px;
        display: inline-block;
        font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
        font-weight: 900;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .scb-mobile-button-whatsapp i {
        font-family: 'Font Awesome 6 Brands';
        font-weight: 400;
    }

    .scb-mobile-button span {
        font-size: 12px;
        font-weight: 500;
        display: block;
    }

    /* Mobile Button Colors */
    .scb-mobile-button-phone i {
        color: #667eea;
    }

    .scb-mobile-button-whatsapp i {
        color: #25D366;
    }

    .scb-mobile-button-email i {
        color: #f5576c;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .scb-mobile-button span {
        font-size: 11px;
    }

    .scb-mobile-button i {
        font-size: 22px;
    }
}

/* Tablet view */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .scb-button {
        width: 45px;
        height: 45px;
    }

    .scb-button i {
        font-size: 20px;
    }
}

/* ===========================
   Accessibility
   =========================== */

.scb-button:focus,
.scb-mobile-button:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .scb-sticky-buttons,
    .scb-mobile-footer {
        display: none !important;
    }
}

/* ===========================
   Animation on Load
   =========================== */

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scb-sticky-buttons.scb-side-left {
    animation: slideInFromLeft 0.5s ease-out;
}

.scb-sticky-buttons.scb-side-right {
    animation: slideInFromRight 0.5s ease-out;
}

.scb-mobile-footer {
    animation: slideInFromBottom 0.5s ease-out;
}

/* Smooth appearance for individual buttons */
.scb-button {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.scb-button:nth-child(1) {
    animation-delay: 0.1s;
}

.scb-button:nth-child(2) {
    animation-delay: 0.2s;
}

.scb-button:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===========================
   Contact Form 7 Modal
   =========================== */

.scb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.scb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scb-modal-active .scb-modal-overlay {
    opacity: 1;
}

.scb-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.scb-modal-active .scb-modal-content {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.scb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.scb-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.scb-modal-body {
    padding: 40px 30px 30px;
    overflow-y: auto;
    max-height: 90vh;
}

.scb-modal-body h2 {
    margin: 0 0 20px;
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

/* Contact Form 7 Form Styles Inside Modal */
.scb-modal-body .wpcf7 {
    margin: 0;
}

.scb-modal-body .wpcf7-form p {
    margin-bottom: 15px;
}

.scb-modal-body .wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.scb-modal-body .wpcf7-form input[type="text"],
.scb-modal-body .wpcf7-form input[type="email"],
.scb-modal-body .wpcf7-form input[type="tel"],
.scb-modal-body .wpcf7-form input[type="url"],
.scb-modal-body .wpcf7-form textarea,
.scb-modal-body .wpcf7-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.scb-modal-body .wpcf7-form input:focus,
.scb-modal-body .wpcf7-form textarea:focus,
.scb-modal-body .wpcf7-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.scb-modal-body .wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.scb-modal-body .wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scb-modal-body .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.scb-modal-body .wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

.scb-modal-body .wpcf7-response-output {
    margin: 15px 0 0;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.scb-modal-body .wpcf7-validation-errors {
    border: 1px solid #f5c6cb;
    background: #f8d7da;
    color: #721c24;
}

.scb-modal-body .wpcf7-mail-sent-ok {
    border: 1px solid #c3e6cb;
    background: #d4edda;
    color: #155724;
}

.scb-modal-body .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Mobile Modal Styles */
@media screen and (max-width: 768px) {
    .scb-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .scb-modal-body {
        padding: 35px 20px 20px;
    }

    .scb-modal-body h2 {
        font-size: 24px;
    }

    .scb-modal-close {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        font-size: 16px;
    }
}