/* Contact Widget (Popup) - Modern Colorful Redesign */
.contact-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 450px;
    /* Standard width for a form-only widget */
    max-width: 95vw;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    cursor: move;
    /* Indicate draggable */
    user-select: none;
    /* Prevent text selection while dragging */
    touch-action: none;
    /* Crucial for touch dragging */
}

.contact-widget input,
.contact-widget textarea,
.contact-widget button {
    cursor: text;
    /* Reset cursor for inputs */
    user-select: text;
}

.contact-widget button {
    cursor: pointer;
}

.contact-widget-content {
    /* Modern Vibrant Gradient Background */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Purple/Blue Gradient */
    /* Alternative warmer option: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); */
    /* Let's go with a rich deep colorful gradient */
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);

    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUpWidget 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    color: white;
}

/* Drag Handle Area */
.widget-drag-handle {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    /* Explicit grab cursor */
    background: rgba(255, 255, 255, 0.1);
    /* Subtle separation */
    backdrop-filter: blur(5px);
}

.widget-drag-handle:active {
    cursor: grabbing;
}

/* The little bar pill */
.handle-bar {
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/* Glassmorphism Overlay Texture */
.contact-widget-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes slideUpWidget {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Widget Content Area */
.widget-form-side {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    /* Enhance glass feel */
}

.widget-header {
    text-align: center;
    margin-bottom: 2rem;
}

.widget-header h3 {
    font-family: 'Outfit', sans-serif;
    /* Modern clean font */
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.widget-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Form Styles */
.contact-form-simple {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group-simple {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group-simple label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    font-weight: 600;
    margin-left: 5px;
}

.form-group-simple input,
.form-group-simple textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    /* Softer roundness */
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    /* Glassy input - slightly more opaque to match reference */
    background: rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.form-group-simple input::placeholder,
.form-group-simple textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group-simple input:focus,
.form-group-simple textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group-simple textarea {
    resize: none;
    height: 120px;
    /* Slightly taller */
}

/* Submit Button */
.widget-actions {
    margin-top: 1.5rem;
}

.btn-simple-submit {
    background: white;
    border: none;
    padding: 16px;
    width: 100%;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 16px;
    /* Rounder corners */
    font-weight: 800;
    color: #4A00E0;
    /* Deep Purple */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-simple-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Phone Trigger - Update to match theme? */
.contact-trigger-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    /* Match Gradient */
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 20px rgba(74, 0, 224, 0.4);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseGradient 3s infinite;
}

.contact-trigger-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

@keyframes pulseGradient {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 0, 224, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(74, 0, 224, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 0, 224, 0);
    }
}

/* Success Message */
.contact-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    height: 100%;
    min-height: 400px;
}

.success-icon-anim i {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .contact-widget {
        width: 95vw;
        bottom: 90px;
        right: 2.5vw;
        max-height: 85vh;
    }

    .contact-widget-content {
        overflow-y: auto;
    }

    .widget-form-side {
        padding: 1.5rem;
    }

    .widget-header h3 {
        font-size: 1.5rem;
    }
}