/* Quick Contact Widget - Beautiful, Airy, Minimalist Design */

.quick-contact-widget {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Contact Button */
.quick-contact-trigger {
    position: relative;
}

.quick-contact-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43a09 0%, #ff6b40 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(244, 58, 9, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(244, 58, 9, 0.4);
}

.quick-contact-btn:active {
    transform: translateY(0);
}

.quick-contact-icon {
    color: white !important;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.quick-contact-btn:hover .quick-contact-icon {
    transform: scale(1.1);
}

/* Pulse Animation */
.quick-contact-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(244, 58, 9, 0.3);
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Contact Panel */
.quick-contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.quick-contact-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.quick-contact-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.quick-contact-header h5 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.quick-contact-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.quick-contact-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.quick-contact-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Quick Links */
.quick-contact-links {
    padding: 16px 24px;
}

.quick-contact-link {
    display: flex;
    align-items: center;
    padding: 3px 2px;
    margin-bottom: 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-contact-link:last-child {
    margin-bottom: 0;
}

.quick-contact-link:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
    text-decoration: none;
}

.quick-contact-widget .quick-contact-panel .link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
    color: white !important;
    flex-shrink: 0;
}
.quick-contact-widget .quick-contact-panel .link-icon .fas,
.quick-contact-widget .quick-contact-panel .link-icon .fab{
    color: white !important;
}

.whatsapp .link-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.telegram .link-icon {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
}

.email .link-icon {
    background: linear-gradient(135deg, #ea4335 0%, #c23321 100%);
}

.phone .link-icon {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
}

.link-content {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    line-height: 1.2;
}

.link-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

/* Form Section */
.quick-contact-form-section {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.quick-contact-form-section h6 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
    resize: none;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #f43a09;
    box-shadow: 0 0 0 3px rgba(244, 58, 9, 0.08);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #999;
}

.quick-submit-btn {
    background: linear-gradient(135deg, #f43a09 0%, #ff6b40 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.quick-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 58, 9, 0.3);
}

.quick-submit-btn:active {
    transform: translateY(0);
}

.quick-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.quick-contact-messages {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    margin-bottom: 12px;
}

.quick-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    animation: slideUp 0.3s ease;
}

.quick-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quick-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.quick-contact-form.loading .quick-submit-btn {
    pointer-events: none;
}

.quick-contact-form.loading .quick-submit-btn i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-contact-widget {
        bottom: 20px;
        right: 20px;
    }

    .quick-contact-panel {
        width: calc(100vw - 40px);
        max-width: 360px;
        right: -10px;
    }

    .quick-contact-messages {
        width: calc(100vw - 40px);
        max-width: 360px;
        right: -10px;
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .quick-contact-btn {
        width: 56px;
        height: 56px;
    }

    .quick-contact-icon {
        font-size: 20px;
    }

    .quick-contact-panel {
        bottom: 60px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .quick-contact-panel {
        background: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .quick-contact-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .quick-contact-header h5 {
        color: white;
    }

    .quick-contact-header p {
        color: #ccc;
    }

    .quick-contact-close {
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
    }

    .quick-contact-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .quick-contact-link:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .link-title {
        color: white;
    }

    .link-desc {
        color: #ccc;
    }

    .quick-contact-form-section {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .quick-contact-form-section h6 {
        color: white;
    }

    .form-row input,
    .form-row textarea {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
        color: rgb(29, 29, 29);
    }

    .form-row input::placeholder,
    .form-row textarea::placeholder {
        color: #999;
    }
}

/* Accessibility */
.quick-contact-btn:focus,
.quick-contact-close:focus,
.quick-submit-btn:focus {
    outline: 2px solid #f43a09;
    outline-offset: 2px;
}

.quick-contact-link:focus {
    outline: 2px solid #f43a09;
    outline-offset: 2px;
    border-radius: 12px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .quick-contact-pulse {
        animation: none;
    }

    .quick-contact-btn,
    .quick-contact-panel,
    .quick-contact-link,
    .quick-submit-btn {
        transition: none;
    }
}