/* Sticky Contact Form Styles */
.sticky-contact-form {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid #0076ba;
}

.sticky-contact-form.hidden {
    transform: translateX(100%) translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

.form-header {
    background: #0076ba;
    color: white;
    padding: 15px 20px;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.form-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.form-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    margin-left: 10px;
}

.form-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Floating Form Button */
.floating-sticky-form-btn {
    position: fixed;
    bottom: 260px;
    right: 30px;
    background: #0076ba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(255, 95, 0, 0.4);
    transition: all 0.3s ease;
}

.floating-sticky-form-btn:hover {
    background: #e54e00;
    transform: scale(1.1);
}

.floating-sticky-form-btn i {
    font-size: 20px;
}

.form-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.form-content::-webkit-scrollbar {
    width: 4px;
}

.form-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.form-content::-webkit-scrollbar-thumb {
    background: #0076ba;
    border-radius: 2px;
}

.sticky-form-step {
    display: none;
}

.sticky-form-step.active {
    display: block;
}

.sticky-form-step h5 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.sticky-form-group {
    margin-bottom: 15px;
}

.sticky-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

.sticky-form-group input,
.sticky-form-group select,
.sticky-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.sticky-form-group input:focus,
.sticky-form-group select:focus,
.sticky-form-group textarea:focus {
    outline: none;
    border-color: #0076ba;
    box-shadow: 0 0 0 2px rgba(255, 95, 0, 0.1);
}

.sticky-form-row {
    display: flex;
    gap: 10px;
}

.sticky-form-col {
    flex: 1;
}

.sticky-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.sticky-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sticky-btn-primary {
    background: #0076ba;
    color: white;
}

.sticky-btn-primary:hover {
    background: #e54e00;
    transform: translateY(-1px);
}

.sticky-btn-secondary {
    background: #6c757d;
    color: white;
}

.sticky-btn-secondary:hover {
    background: #5a6268;
}

.sticky-btn-full {
    width: 100%;
    margin-top: 15px;
}

.form-toggle {
    display: none;
}

/* Progress indicator */
.form-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #0076ba;
    color: white;
}

.progress-step.completed {
    background: #28a745;
    color: white;
}

/* Animation for form appearance */
@keyframes slideInRight {
    from {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

.sticky-contact-form {
    animation: slideInRight 0.5s ease-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sticky-contact-form {
        right: 10px;
        width: 300px;
    }
    
    .sticky-contact-form.minimized {
        width: 50px;
        height: 50px;
    }
    
    .form-minimize-btn {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sticky-contact-form {
        right: 5px;
        width: 280px;
    }
    
    .sticky-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Loading state */
.sticky-btn.loading {
    position: relative;
    color: transparent;
}

.sticky-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}