/* Base Styles */
.sq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sq-modal.active {
    opacity: 1;
    visibility: visible;
}

.sq-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.sq-modal.active .sq-modal-content {
    transform: translateY(0);
}

.sq-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.sq-close-modal:hover {
    color: #333;
}

/* Form Styles */
#sq-form {
    margin-top: 20px;
}

.sq-section {
    display: none;
}

.sq-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pill Buttons */
.sq-pill-container {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.sq-pill-radio { 
    display: none; 
}

.sq-pill-label {
    padding: 12px 24px;
    background: #f5f5f5;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    border: 1px solid #ddd;
}

.sq-pill-radio:checked + .sq-pill-label {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Input Groups */
.sq-input-group {
    display: flex;
    margin: 20px 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.sq-text-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 16px;
    min-width: 0;
}

.sq-text-input:focus {
    outline: none;
}

.sq-next-btn {
    padding: 0 20px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.sq-next-btn:hover {
    background: #005d8f;
}

/* Floating Button */
.sq-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
    opacity: 0.9;
}

.sq-floating-btn:hover {
    background: #005d8f;
    transform: scale(1.1) rotate(90deg);
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .sq-modal-content {
        width: 95%;
        padding: 20px 15px;
    }
    
    .sq-pill-label {
        padding: 10px 18px;
        font-size: 15px;
    }
    
    .sq-floating-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}