/*!
 * ANKY.AI -- Proprietary License
 * Copyright (c) 2026 ANKY.AI. All rights reserved.
 *
 * This file is part of the Jatin Sethi WordPress theme, designed and built
 * by ANKY.AI (https://anky.ai) exclusively for Jatin Sethi & Co.
 * (https://jatinsethi.com). Redistribution, resale, sublicensing, or listing
 * on any third-party marketplace or public repository is strictly prohibited.
 * Use on any domain other than jatinsethi.com requires a separate written
 * license from ANKY.AI. See LICENSE.txt in the theme root.
 * Contact: licensing@anky.ai
 */

/**
 * Footer Styles - Jatin Sathi WordPress Theme
 *
 * Extracted from:
 *  - frontend/components/footer-contact-form.php (lines 118-425)
 *  - frontend/components/whatsapp-float.php (lines 34-170)
 *  - frontend/includes/footer.php (lines 276-395)
 */

/* =========================================================================
 *  1. CONTACT FORM - 2 Column Layout
 * ========================================================================= */

.contact-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    align-items: start;
}

/* ---- Left Column: Heading & Description ---- */

.form-left-content {
    padding-right: 2rem;
}

.form-heading {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-subheading {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.form-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Right Column: Form ---- */

.form-right-content {
    width: 100%;
}

.footer-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1.5rem;
}

/* ---- Phone Field ---- */

.phone-wrapper {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.country-select {
    flex: 0 0 110px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 0.75rem 0.5rem !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    height: auto !important;
    line-height: normal !important;
}

.country-select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #007bff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.country-select option {
    background: #2e335b;
    color: white;
}

.phone-input {
    flex: 1 !important;
    min-width: 0;
}

/* ---- Labels ---- */

.field-label.white {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

/* ---- Text Fields ---- */

.text-field.transparent {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.2s ease;
}

.text-field.transparent::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.text-field.transparent:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.text-field.msg {
    min-height: 120px;
    resize: vertical;
}

select.text-field.transparent option {
    background: #1e3c72;
    color: white;
}

/* ---- Form Actions ---- */

.form-actions {
    margin-top: 1.5rem;
}

/* ---- Checkbox ---- */

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.w-checkbox-input--inputType-custom.checkbox {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.w-checkbox-input--inputType-custom.checkbox:before {
    content: "\2713";
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.w-checkbox-input--inputType-custom.checkbox.checked,
input[type="checkbox"]:checked + .w-checkbox-input--inputType-custom.checkbox {
    background: #007bff;
    border-color: #007bff;
}

.w-checkbox-input--inputType-custom.checkbox.checked:before,
input[type="checkbox"]:checked + .w-checkbox-input--inputType-custom.checkbox:before {
    opacity: 1;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ---- Form Messages ---- */

.form-message {
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    color: white;
}

.success-msg {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 2px solid #4caf50;
}

.error-msg {
    background: linear-gradient(135deg, #f44336, #e57373);
    border: 2px solid #f44336;
}

.msg-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.msg-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.msg-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.msg-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

/* ---- Shake Animation ---- */

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* ---- Contact Form Responsive ---- */

@media (max-width: 991px) {
    .contact-form-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .form-left-content {
        padding-right: 0;
        text-align: center;
    }

    .form-heading {
        font-size: 2rem;
    }

    .form-subheading {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .country-select {
        flex: 0 0 90px;
    }

    .form-heading {
        font-size: 1.75rem;
    }

    .form-subheading {
        font-size: 1.1rem;
    }

    .form-description {
        font-size: 0.95rem;
    }
}

/* =========================================================================
 *  2. WHATSAPP FLOAT BUTTON
 * ========================================================================= */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    isolation: isolate;
    animation: whatsapp-entry 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
               whatsapp-pulse 2s ease-in-out 0.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float:focus {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 4px;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: rotate(15deg);
}

/* ---- Tooltip ---- */

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #2e335b;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent #2e335b;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ---- WhatsApp Animations ---- */

@keyframes whatsapp-pulse {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6),
                    0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

@keyframes whatsapp-entry {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ---- WhatsApp Responsive ---- */

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* =========================================================================
 *  3. PHONE CALL CONSENT MODAL
 * ========================================================================= */

.phone-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.phone-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.phone-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
}

.phone-modal-message {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

#phone-number-display {
    font-weight: 600;
    color: #4A90FF;
}

.phone-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.phone-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phone-modal-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.phone-modal-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.phone-modal-confirm {
    background: linear-gradient(135deg, #4A90FF 0%, #3b82f6 100%);
    color: white;
}

.phone-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 255, 0.4);
}

/* ---- Phone Modal Responsive ---- */

@media (max-width: 480px) {
    .phone-modal-content {
        padding: 25px 20px;
    }

    .phone-modal-title {
        font-size: 1.25rem;
    }

    .phone-modal-actions {
        flex-direction: column-reverse;
    }

    .phone-modal-btn {
        width: 100%;
    }
}
